From eed8f99badcf66b530bbdf245fa03fdc553380c6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 24 Mar 2018 14:54:15 +0000 Subject: Fix off-by-one in s6-svdt-clear --- src/supervision/s6-svdt-clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ; -- cgit v1.2.3