summaryrefslogtreecommitdiff
path: root/src/init/s6-linux-init-maker.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-09-26 18:47:47 +0000
committerLaurent Bercot <ska@appnovation.com>2021-09-26 18:47:47 +0000
commit50f5f2c27b746f07ea9531da81e82e794363d520 (patch)
treebb2ed733ed3741399013124a7e5f6b20ccff580c /src/init/s6-linux-init-maker.c
parent14b27c8c0c59f540b1209649c16fdcd9de9839ea (diff)
downloads6-linux-init-50f5f2c27b746f07ea9531da81e82e794363d520.tar.xz
Trivial bugfix
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/init/s6-linux-init-maker.c')
-rw-r--r--src/init/s6-linux-init-maker.c2
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 2cfb35e..d7b4a42 100644
--- a/src/init/s6-linux-init-maker.c
+++ b/src/init/s6-linux-init-maker.c
@@ -517,7 +517,7 @@ static int utmpd_script (buffer *b, char const *aux)
EXECLINE_EXTBINPREFIX "fdmove -c 2 1\n") < 0) return 0 ;
if (utmp_user)
{
- if (!buffer_puts(b, S6_EXTBINPREFIX "s6-setuidgid ") < 0
+ if (buffer_puts(b, S6_EXTBINPREFIX "s6-setuidgid ") < 0
|| !string_quote(&satmp, utmp_user, strlen(utmp_user))) return 0 ;
if (buffer_put(b, satmp.s + sabase, satmp.len - sabase) < 0) goto err ;
satmp.len = sabase ;