aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-01 21:09:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-01 21:09:27 +0200
commite9aba3e7ea4936278188555332654796e5b5e873 (patch)
tree5b072096feee2aecaa4adb395cd590cd227a67a8
parentba4fbca8a81d765f81aefc74db7f73ec9ded3550 (diff)
downloadbusybox-w32-e9aba3e7ea4936278188555332654796e5b5e873.tar.gz
busybox-w32-e9aba3e7ea4936278188555332654796e5b5e873.tar.bz2
busybox-w32-e9aba3e7ea4936278188555332654796e5b5e873.zip
ash: fix 'trap - 65'
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 9681111cc..22c726043 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -12967,7 +12967,7 @@ trapcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
12967 exitcode = 0; 12967 exitcode = 0;
12968 while (*ap) { 12968 while (*ap) {
12969 signo = get_signum(*ap); 12969 signo = get_signum(*ap);
12970 if (signo < 0) { 12970 if (signo < 0 || signo >= NSIG) {
12971 /* Mimic bash message exactly */ 12971 /* Mimic bash message exactly */
12972 ash_msg("%s: invalid signal specification", *ap); 12972 ash_msg("%s: invalid signal specification", *ap);
12973 exitcode = 1; 12973 exitcode = 1;