summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-02-27 01:02:52 +0000
committerLaurent Bercot <ska@appnovation.com>2022-02-27 01:02:52 +0000
commita802a70ea4e720e8325e13e89a4915eef64a3c87 (patch)
tree81b10e982273817700dae17f83a7cb4f29eb29ec /src/init
parentdbbf64f5e5ff8f5cc3c2e6432f74cf6c27fe3362 (diff)
downloads6-linux-init-a802a70ea4e720e8325e13e89a4915eef64a3c87.tar.xz
Noclamp the stage 1 envdir
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/init')
-rw-r--r--src/init/s6-linux-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/s6-linux-init.c b/src/init/s6-linux-init.c
index 4fcbdcb..d0bb442 100644
--- a/src/init/s6-linux-init.c
+++ b/src/init/s6-linux-init.c
@@ -269,7 +269,7 @@ int main (int argc, char const **argv, char const *const *envp)
if (!hiercopy(fn, S6_LINUX_INIT_TMPFS))
strerr_diefu3sys(111, "copy ", fn, " to " S6_LINUX_INIT_TMPFS) ;
memcpy(fn + dirlen + 1, ENVSTAGE1, sizeof(ENVSTAGE1)) ;
- if (envdir_verbatim_chomp(fn, &envmodifs) == -1)
+ if (envdir_internal(fn, &envmodifs, SKALIBS_ENVDIR_VERBATIM | SKALIBS_ENVDIR_NOCLAMP, '\n') == -1)
strerr_warnwu2sys("envdir ", fn) ;
}
if (envdumpdir && !env_dump(envdumpdir, 0700, envp))