diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-24 14:54:15 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-24 14:54:15 +0000 |
commit | eed8f99badcf66b530bbdf245fa03fdc553380c6 (patch) | |
tree | 3cbf6442eb442cbb29eb31ffc710baf29b2ceae8 /src/supervision | |
parent | 61e47c49ff4c1f94b3ac482a0077bc9781df3ce2 (diff) | |
download | s6-eed8f99badcf66b530bbdf245fa03fdc553380c6.tar.xz |
Fix off-by-one in s6-svdt-clear
Diffstat (limited to 'src/supervision')
-rw-r--r-- | src/supervision/s6-svdt-clear.c | 2 |
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 ; |