diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/init/s6-linux-init-maker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c index 2aa28da..71d82cb 100644 --- a/src/init/s6-linux-init-maker.c +++ b/src/init/s6-linux-init-maker.c @@ -108,7 +108,7 @@ static int finish_script (buffer *b) if (in_namespace) { - if (buffer_puts(b, "ifelse { redirfd -r 0 ") < 0 + if (buffer_puts(b, "ifelse { redirfd -w 2 /dev/null redirfd -r 0 ") < 0 || buffer_put(b, satmp.s + sabase, satmp.len - sabase) < 0 || buffer_puts(b, "/" EXITCODENAME " exit 0 }\n{ redirfd -r 0 ") < 0 || buffer_put(b, satmp.s + sabase, satmp.len - sabase) < 0 |