From b1f1a6d91e196a52ce5336e8e98a6889c3267c0b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 17 Jun 2015 18:47:16 +0000 Subject: Fix compile issue --- src/init/s6-linux-init-maker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/init/s6-linux-init-maker.c') 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 ; -- cgit v1.2.3