From 6484a6c8a2ff823be4fe8fd03c7ea76e371788ed Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 9 Jun 2015 21:03:23 +0000 Subject: Fix nosetsid file copy ("noseth" bug) --- src/s6-rc/s6-rc-compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c index e86f4a8..9ddd371 100644 --- a/src/s6-rc/s6-rc-compile.c +++ b/src/s6-rc/s6-rc-compile.c @@ -946,7 +946,7 @@ static void write_servicedir (char const *compiled, char const *srcdir, char con unsigned int srclen = str_len(src) ; unsigned int dstlen = str_len(dst) ; struct stat st ; - char dstfn[clen + 19 + dstlen] ; + char dstfn[clen + 23 + dstlen] ; char srcfn[srcdirlen + srclen + 11] ; byte_copy(dstfn, clen, compiled) ; byte_copy(dstfn + clen, 13, "/servicedirs/") ; @@ -982,7 +982,7 @@ static void write_servicedir (char const *compiled, char const *srcdir, char con else { int fd ; - byte_copy(dstfn + clen + 14 + dstlen, 5, "nosetsid") ; + byte_copy(dstfn + clen + 14 + dstlen, 9, "nosetsid") ; fd = open_trunc(dstfn) ; if (fd < 0) { -- cgit v1.2.3