diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-06-17 18:47:16 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-06-17 18:47:16 +0000 |
commit | b1f1a6d91e196a52ce5336e8e98a6889c3267c0b (patch) | |
tree | 7431ae016e2f22a96ceb3d7908902682c2546468 /src/init | |
parent | c7f2b164392fb75208fbd355188a6f93065a5662 (diff) | |
download | s6-linux-init-b1f1a6d91e196a52ce5336e8e98a6889c3267c0b.tar.xz |
Fix compile issue
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/s6-linux-init-maker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c index 007bd94..41e2b95 100644 --- a/src/init/s6-linux-init-maker.c +++ b/src/init/s6-linux-init-maker.c @@ -239,9 +239,9 @@ static int make_init_script (buffer *b) || buffer_puts(b, bindir) < 0 || buffer_puts(b, "/cd /\numask 0") < 0 || buffer_put(b, fmt, uint_ofmt(fmt, initial_umask)) < 0 - || buffer_puts(b, "\nif { s6-echo -- ") < 0) + || buffer_puts(b, "\nif { s6-echo -- ") < 0 || !string_quote(&satmp, BANNER, sizeof(BANNER) - 1) < 0) return 0 ; - if (buffer_puts(b, satmp.s, satmp.len) < 0) goto err ; + if (buffer_put(b, satmp.s, satmp.len) < 0) goto err ; satmp.len = sabase ; if (buffer_puts(b, " }\nif { s6-mount -nwt tmpfs -o mode=0755 tmpfs ") < 0 || !string_quote(&satmp, slashrun, str_len(slashrun))) return 0 ; |