On Thu, Sep 20, 2001 at 04:12:23PM +0100, Antony T Curtis wrote:
> Michael Nottebrock wrote:
> > 
> > Randy Bush wrote:
> >  > happened on three separate systems cvsupped this afternoon
> >  >
> >  > [...]
> >  >
> >  > MAKEDEV: arith: syntax error: à [...]
> >  >
> >  > [...]
> > 
> > Looks to me as if this is a really old bug surfacing here. Reference
> > 
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=30637
> > 
> > and
> > 
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=24443
> 
> Is the above PR a reasonable fix and is it safe for people to apply this
> change to /usr/src/bin/sh/expand.c ?
> 
> If it is a good fix - any chance it would be committed?

yes, that's it:

Index: expand.c
===================================================================
RCS file: /usr/cvs/FreeBSD/src/bin/sh/expand.c,v
retrieving revision 1.31.2.1
diff -u -r1.31.2.1 expand.c
--- expand.c    2000/06/14 13:42:25     1.31.2.1
+++ expand.c    2001/09/21 10:49:11
@@ -397,7 +397,7 @@
        CHECKSTRSPACE(12 - 2, expdest);
        USTPUTC('\0', expdest);
        start = stackblock();
-       p = expdest;
+       p = expdest - 1;
        while (*p != CTLARI && p >= start)
                --p;
        if (*p != CTLARI)


-- Thomas Zenker
   c/o Lennartz electronic GmbH
   Bismarckstrasse 136, D-72072 Tuebingen, Germany
   Phone:  +49-(0)7071-93550
   Email:  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to