summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-09 21:03:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-09 21:03:23 +0000
commit6484a6c8a2ff823be4fe8fd03c7ea76e371788ed (patch)
tree4fe6b742ca9c1db660f98b649cb6f082500bfb1c
parent8fdde03a3e6bd2febe7caf99d9df470d7a5d52cd (diff)
downloads6-rc-6484a6c8a2ff823be4fe8fd03c7ea76e371788ed.tar.xz
Fix nosetsid file copy ("noseth" bug)
-rw-r--r--src/s6-rc/s6-rc-compile.c4
1 files changed, 2 insertions, 2 deletions
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)
{