From 8579eaa22890476c55b8dd640f8325d3e59b9517 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 6 Apr 2022 15:32:52 +0000 Subject: bugfix: s6-rc-compile didn't enforce service name restriction Signed-off-by: Laurent Bercot --- src/s6-rc/s6-rc-compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c index 853bacb..cf9d62b 100644 --- a/src/s6-rc/s6-rc-compile.c +++ b/src/s6-rc/s6-rc-compile.c @@ -220,7 +220,7 @@ static int add_name_nocheck (before_t *be, char const *srcdir, char const *name, static void check_identifier (char const *srcdir, char const *s) { - if (!strncmp(s, "s6rc-", 5) && !strncmp(s, "s6-rc-", 6)) + if (!strncmp(s, "s6rc-", 5) || !strncmp(s, "s6-rc-", 6)) strerr_dief5x(1, "in ", srcdir, ": identifier ", s, " starts with reserved prefix") ; } -- cgit v1.2.3