summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-03-24 14:54:15 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-03-24 14:54:15 +0000
commiteed8f99badcf66b530bbdf245fa03fdc553380c6 (patch)
tree3cbf6442eb442cbb29eb31ffc710baf29b2ceae8 /src
parent61e47c49ff4c1f94b3ac482a0077bc9781df3ce2 (diff)
downloads6-eed8f99badcf66b530bbdf245fa03fdc553380c6.tar.xz
Fix off-by-one in s6-svdt-clear
Diffstat (limited to 'src')
-rw-r--r--src/supervision/s6-svdt-clear.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-svdt-clear.c b/src/supervision/s6-svdt-clear.c
index 4db4858..e6fe21b 100644
--- a/src/supervision/s6-svdt-clear.c
+++ b/src/supervision/s6-svdt-clear.c
@@ -8,7 +8,7 @@
int main (int argc, char const *const *argv)
{
- if (argc < 1) dieusage() ;
+ if (argc < 2) dieusage() ;
if (!s6_dtally_write(argv[1], 0, 0))
strerr_diefu2sys(111, "clear death tally for service ", argv[1]) ;
return 0 ;