diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-08-30 01:46:35 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-08-30 01:46:35 +0000 |
commit | 4e98534bb61d55bf727abab827804413816e10f2 (patch) | |
tree | dacc4d80795e9129a941653c7c0d31f7ffb39897 /bin/csh/error.c | |
parent | 28da9623e1de63ef51e014e75d1ec3eb77f7fc6c (diff) |
prevent core dumps when stderror() is called before reslab is initialized
Diffstat (limited to 'bin/csh/error.c')
-rw-r--r-- | bin/csh/error.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/error.c b/bin/csh/error.c index a6edb98a91a..982de021feb 100644 --- a/bin/csh/error.c +++ b/bin/csh/error.c @@ -1,4 +1,4 @@ -/* $OpenBSD: error.c,v 1.2 1997/11/15 21:51:28 todd Exp $ */ +/* $OpenBSD: error.c,v 1.3 2000/08/30 01:46:34 mickey Exp $ */ /* $NetBSD: err.c,v 1.6 1995/03/21 09:02:47 cgd Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: error.c,v 1.2 1997/11/15 21:51:28 todd Exp $"; +static char rcsid[] = "$OpenBSD: error.c,v 1.3 2000/08/30 01:46:34 mickey Exp $"; #endif #endif /* not lint */ @@ -398,7 +398,7 @@ stderror(id, va_alist) /* * Go away if -e or we are a child shell */ - if (exiterr || child) + if (!exitset || exiterr || child) xexit(1); /* |