diff options
author | Denys Vlasenko | 2017-07-01 21:09:27 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-01 21:09:27 +0200 |
commit | e9aba3e7ea4936278188555332654796e5b5e873 (patch) | |
tree | 5b072096feee2aecaa4adb395cd590cd227a67a8 /shell | |
parent | ba4fbca8a81d765f81aefc74db7f73ec9ded3550 (diff) | |
download | busybox-e9aba3e7ea4936278188555332654796e5b5e873.zip busybox-e9aba3e7ea4936278188555332654796e5b5e873.tar.gz |
ash: fix 'trap - 65'
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 9681111..22c7260 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -12967,7 +12967,7 @@ trapcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) exitcode = 0; while (*ap) { signo = get_signum(*ap); - if (signo < 0) { + if (signo < 0 || signo >= NSIG) { /* Mimic bash message exactly */ ash_msg("%s: invalid signal specification", *ap); exitcode = 1; |