From 7d0823fbb41a39474020ffff20ea7fe572f7d777 Mon Sep 17 00:00:00 2001 From: minoura Date: Thu, 31 Jan 2002 15:02:22 +0000 Subject: 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). --- shells/tcsh/distinfo | 3 ++- shells/tcsh/patches/patch-ak | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 shells/tcsh/patches/patch-ak diff --git a/shells/tcsh/distinfo b/shells/tcsh/distinfo index 8a149c9925d..884b508d41f 100644 --- a/shells/tcsh/distinfo +++ b/shells/tcsh/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2001/12/17 19:26:24 tron Exp $ +$NetBSD: distinfo,v 1.7 2002/01/31 15:02:22 minoura Exp $ SHA1 (tcsh-6.11.tar.gz) = bfc2ccd2d9e04975308cdf0a50b7383e580594b6 Size (tcsh-6.11.tar.gz) = 716863 bytes @@ -7,3 +7,4 @@ SHA1 (patch-ac) = 5e7424ad50ddcd7e75c04d3c64c2136cc360bbdf SHA1 (patch-af) = 8db810383f043e65858b5925988cac5fd193c948 SHA1 (patch-ag) = e71ea3d9dd4ea70040ab18702260d3c8890b9da9 SHA1 (patch-aj) = e06125ea332549c4f72b08b72e4f9aae8778209a +SHA1 (patch-ak) = fddc3b0d20f7012b8486a845c3e4a9ad5bf7b7ff 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; -- cgit v1.2.3