Hi again,

the comment of Luciano Miguel Ferraira Rocha led
me to locate this bug, which has been unnoticed
at least since Busybox 1.4.0. The existing code
outputs, after 'kill -l' within ash, those numbers
that do NOT correspond to an implemented signal.
This minimal patch restores output to the lettered
names of existing signals, one to each line. Of
course, one could ponder on a more refined output,
but that probably exeeds the intentions of 'ash'.

Regards,    Mats E A
--- ash.c.orig	2007-04-11 16:25:57.206837280 +0200
+++ ash.c	2007-04-11 16:26:55.076039824 +0200
@@ -3573,7 +3573,7 @@
 		if (!*argv) {
 			for (i = 1; i < NSIG; i++) {
 				name = get_signame(i);
-				if (isdigit(*name))
+				if (!isdigit(*name))
 					out1fmt(snlfmt, name);
 			}
 			return 0;
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to