diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-29 04:09:22 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-29 04:09:22 +0000 |
commit | 48e72123566c3d7650be6571b80f9f70b41c6724 (patch) | |
tree | 0d23d0de2abdb77ca3971067b7984db08dcd8da6 /bin/ksh/trap.c | |
parent | f3f5bf3ebf1aaee9195c0d49323beb781e0c1676 (diff) |
Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions of
some that we had already fixed locally.
o typeset -f FUNC doesn't print follows command (and expression) substitutions.
o when re-allocating memory, too much may be copied from old memory.
o set -o printed some options sans names.
o emacs mode: <esc>. in very fist command causes core dump.
o pdksh dumps core after a cd command.
o typeset -i reports on array elements that have no value
(at&t ksh reports on array base name - no index).
o ulimit -ctn unlimittttted kills shell (resource exceeded).
o ". /dev/null" says access denied.
o flag field in aliases incorrectly changed (all flags set instead of
clearing ISSET) in exec.c(flushcom).
o ${#array[*]} prints largest index instead of number of (set) elements
in an array (ksh88 does the former).
o sys_siglist[] doesn't always have NSIG non-null entries...
Diffstat (limited to 'bin/ksh/trap.c')
-rw-r--r-- | bin/ksh/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/trap.c b/bin/ksh/trap.c index f1efe6451d9..9b9076caf2b 100644 --- a/bin/ksh/trap.c +++ b/bin/ksh/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.6 1997/09/01 18:30:13 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.7 1998/10/29 04:09:21 millert Exp $ */ /* * signal handling @@ -32,7 +32,7 @@ inittraps() /* Use system description, if available, for unknown signals... */ for (i = 0; i < NSIG; i++) - if (!sigtraps[i].name && sys_siglist[i][0]) + if (!sigtraps[i].name && sys_siglist[i] && sys_siglist[i][0]) sigtraps[i].mess = sys_siglist[i]; #endif /* HAVE_SYS_SIGLIST */ |