[hackers] [sbase] Fix kill -l || sin
commit 46e5545f30d872456ec526fd043ee0f30b7a3194
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:54:57 CET
This archive was generated by hypermail 2.3.0
: Tue Nov 11 2014 - 01:00:14 CET