summaryrefslogtreecommitdiff
path: root/src/supervision/s6-svdir-unlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/supervision/s6-svdir-unlink.c')
-rw-r--r--src/supervision/s6-svdir-unlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/supervision/s6-svdir-unlink.c b/src/supervision/s6-svdir-unlink.c
index 88eedbe..0e8699e 100644
--- a/src/supervision/s6-svdir-unlink.c
+++ b/src/supervision/s6-svdir-unlink.c
@@ -31,6 +31,8 @@ int main (int argc, char const *const *argv)
}
if (argc < 2) dieusage() ;
+ if (!argv[1][0] || argv[1][0] == '.' || argv[1][0] == '/')
+ strerr_dief1x(100, "invalid service name") ;
s6_supervise_unlink(argv[0], argv[1], options) ;
return 0 ;
}