diff options
author | minoura <minoura> | 2002-01-31 15:02:22 +0000 |
---|---|---|
committer | minoura <minoura> | 2002-01-31 15:02:22 +0000 |
commit | 2646b6e0593075262427d17a79e27389fc668403 (patch) | |
tree | 903130a9c585d78978e481b1cf76095a5e8c5ce6 /shells/tcsh/patches | |
parent | 5b2b59b3e10082fc4379973adbc7aaba71667be1 (diff) | |
download | pkgsrc-2646b6e0593075262427d17a79e27389fc668403.tar.gz |
Changes from basesrc/bin/csh/dol.c:1.18-1.19.
> Fix problem where
> % echo $20000000000
> Segmentation fault (core dumped)
I believe the problem is already known to the maintainer of tcsh
(=christos).
Diffstat (limited to 'shells/tcsh/patches')
-rw-r--r-- | shells/tcsh/patches/patch-ak | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/shells/tcsh/patches/patch-ak b/shells/tcsh/patches/patch-ak new file mode 100644 index 00000000000..decec9a87ea --- /dev/null +++ b/shells/tcsh/patches/patch-ak @@ -0,0 +1,17 @@ +$NetBSD: patch-ak,v 1.1 2002/01/31 15:02:23 minoura Exp $ + +--- sh.dol.c.orig Thu Jul 26 00:48:04 2001 ++++ sh.dol.c Thu Jan 31 16:09:37 2002 +@@ -585,10 +585,8 @@ + c = DgetC(0); + } while (Isdigit(c)); + unDredc(c); +- if (subscr < 0) { +- dolerror(vp->v_name); +- return; +- } ++ if (subscr < 0) ++ stderror(ERR_RANGE); + if (subscr == 0) { + if (bitset) { + dolp = dolzero ? STR1 : STR0; |