From 50f5f2c27b746f07ea9531da81e82e794363d520 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 26 Sep 2021 18:47:47 +0000 Subject: Trivial bugfix Signed-off-by: Laurent Bercot --- src/init/s6-linux-init-maker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- cgit v1.2.3