diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/s6-rc/s6-rc-init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc-init.c b/src/s6-rc/s6-rc-init.c index e7ef023..98d07e5 100644 --- a/src/s6-rc/s6-rc-init.c +++ b/src/s6-rc/s6-rc-init.c @@ -99,8 +99,10 @@ int main (int argc, char const *const *argv) lfn[llen] = 0 ; if (symlink(satmp.s + dirlen, lfn) < 0) { + char tmp[satmp.len - dirlen] ; + byte_copy(tmp, satmp.len - dirlen, satmp.s + dirlen) ; cleanup() ; - strerr_diefu4sys(111, "symlink ", satmp.s + dirlen, " to ", lfn) ; + strerr_diefu4sys(111, "symlink ", tmp, " to ", lfn) ; } |