[hackers] [sbase] Actually print usage if kill -l is invoked with more than 1 arg || sin
commit 88f26b222b34c239b7e95606a57d5af193a65216
Author: sin <sin_AT_2f30.org>
Date: Tue Nov 11 16:09:07 2014 +0000
Actually print usage if kill -l is invoked with more than 1 arg
diff --git a/kill.c b/kill.c
index 2ab0af8..eb4659a 100644
--- a/kill.c
+++ b/kill.c
_AT_@ -71,7 +71,8 @@ main(int argc, char *argv[])
for (i = 0; i < LEN(sigs); i++)
puts(sigs[i].name);
exit(0);
- }
+ } else if (argc > 1)
+ usage();
errno = 0;
sig = strtol(argv[0], &end, 0);
if (*end == '\0' && errno == 0) {
Received on Tue Nov 11 2014 - 17:09:28 CET
This archive was generated by hypermail 2.3.0
: Tue Nov 11 2014 - 17:12:10 CET