diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-09-17 10:57:41 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-09-17 10:57:41 +0000 |
commit | 947a321baf2e00396de86015ada698ec842824ff (patch) | |
tree | 87a0b50b4a4ed7f6c46bc6f34a3446b5dbf2d85e | |
parent | d67ad445ec853f1c3ed84389ecbd5c52fd94cd2a (diff) | |
download | zsh-947a321baf2e00396de86015ada698ec842824ff.tar.gz zsh-947a321baf2e00396de86015ada698ec842824ff.tar.xz zsh-947a321baf2e00396de86015ada698ec842824ff.zip |
19096: crash unloading zsh/system
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Src/Modules/system.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 9cefd5a4f..fb8e17537 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-09-17 Peter Stephenson <pws@csr.com> + + * 19096: Src/Modules/system.c: Unloading zsh/system could crash + the shell because the set and unset elements for the errnos + array weren't installed. + 2003-09-15 Vin Shelton <acs@alumni.princeton.edu> * Doc/Zsh/contrib.yo: Fix capitalization to make makeinfo happy. diff --git a/Src/Modules/system.c b/Src/Modules/system.c index 174bf133d..91811ae79 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -391,6 +391,8 @@ boot_(Module m) PM_HIDE|PM_HIDEVAL|PM_REMOVABLE))) return 1; pm_nos->gets.afn = errnosgetfn; + pm_nos->sets.afn = arrsetfn; + pm_nos->unsetfn = stdunsetfn; if (!addbuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab))) { tidyparam(pm_nos); |