[hackers] [sbase] Fix kill -l || sin
commit 0444d16475c22a2377ab408ed67fb8a4d753931e
Author: sin <sin_AT_2f30.org>
Date: Mon Nov 10 23:52:55 2014 +0000
Fix kill -l
diff --git a/kill.c b/kill.c
index 9948cb2..59ef221 100644
--- a/kill.c
+++ b/kill.c
_AT_@ -57,11 +57,11 @@ main(int argc, char *argv[])
usage();
} ARGEND;
- if(argc < 1)
+ if(argc < 1 && !lflag)
usage();
if(lflag) {
- sig = (argc > 0) ? 0 : estrtol(argv[0], 0);
+ sig = (argc > 0) ? estrtol(argv[0], 0) : 0;
if(sig > 128)
sig = WTERMSIG(sig);
for(i = 0; i < LEN(sigs); i++)
Received on Tue Nov 11 2014 - 00:56:16 CET
This archive was generated by hypermail 2.3.0
: Tue Nov 11 2014 - 01:00:15 CET