diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-04-06 15:32:52 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-04-06 15:32:52 +0000 |
commit | 8579eaa22890476c55b8dd640f8325d3e59b9517 (patch) | |
tree | 6d0eaeab936630a733a3bfed6761304131b935bb | |
parent | 6f3914f7ce6018c0bbd5c8829acbd853dccde190 (diff) | |
download | s6-rc-8579eaa22890476c55b8dd640f8325d3e59b9517.tar.xz |
bugfix: s6-rc-compile didn't enforce service name restriction
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | src/s6-rc/s6-rc-compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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") ; } |