diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-01-09 14:35:54 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-01-09 14:35:54 +0000 |
commit | 724fc63f4736d620173e733a3b35c003a0d82ff8 (patch) | |
tree | 387fe913faf86e3baa1544773a2fba38958bca49 /src/instance/s6-instance-create.c | |
parent | 09750ce3525129a676dec4f579aea3ad2eca1b19 (diff) | |
download | s6-724fc63f4736d620173e733a3b35c003a0d82ff8.tar.xz |
First batch of fixes, more to come >.>
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/instance/s6-instance-create.c')
-rw-r--r-- | src/instance/s6-instance-create.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/instance/s6-instance-create.c b/src/instance/s6-instance-create.c index 2e97618..40b8a83 100644 --- a/src/instance/s6-instance-create.c +++ b/src/instance/s6-instance-create.c @@ -71,7 +71,7 @@ int main (int argc, char const *const *argv) namelen = strlen(argv[1]) ; if (!argv[0][0]) strerr_dief1x(100, "invalid service path") ; - if (!argv[1][0] || argv[1][0] == '.' || byte_in(argv[1], namelen, " \t\f\r\n", 5) < 5) + if (!argv[1][0] || argv[1][0] == '.' || byte_in(argv[1], namelen, " \t\f\r\n", 5) < namelen) strerr_dief1x(100, "invalid instance name") ; checkinstanced(argv[0]) ; @@ -90,7 +90,7 @@ int main (int argc, char const *const *argv) if (s6_supervise_link_names_g(".", (char const *const *)&sv, argv + 1, 1, options, &tto) == -1) { cleanup(sv) ; - strerr_diefu4sys(errno == ETIMEDOUT ? 99 : 111, "creatre instance of ", argv[0], " named ", argv[1]) ; + strerr_diefu4sys(errno == ETIMEDOUT ? 99 : 111, "create instance of ", argv[0], " named ", argv[1]) ; } } return 0 ; |