Date: Tue, 20 Nov 2001 01:54:11 +0000 From: Brian Somers <brian@freebsd-services.com> To: "Akinori MUSHA" <knu@iDaemons.org> Cc: Brian Somers <brian@freebsd-services.com>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@freebsd-services.com Subject: Re: cvs commit: src/share/man/man1 builtin.1 src/bin/sh Makefile builtins.def sh.1 src/bin/test test.1 test.c Message-ID: <200111200154.fAK1sCv33540@hak.lan.Awfulhak.org> In-Reply-To: Message from "Akinori MUSHA" <knu@iDaemons.org> of "Tue, 20 Nov 2001 05:03:10 %2B0900." <86itc68r5t.wl@archon.local.idaemons.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> At Mon, 19 Nov 2001 18:30:52 +0000, > Brian Somers wrote: > > This breaks sh: > > > > $ echo "program-not-found; test" | sh > > > > When testcmd() is given an argv[] of { "test", NULL } *and* an error > > has occurred, things go pear shaped. > > Thanks for catching it! Actually, even this: > > $ sh -c 'ls; test' > > coredumped. I found it to be a longstanding bug of test(1) which had > never been exposed, and fixed it by adding an argc/argv boundary > check. Wow, that was fast :*) Thanks ! > -- > / > /__ __ Akinori.org / MUSHA.org > / ) ) ) ) / FreeBSD.org / Ruby-lang.org > Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp > > "Somewhere out of a memory.. of lighted streets on quiet nights.." -- Brian <brian@freebsd-services.com> <brian@Awfulhak.org> http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org> Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111200154.fAK1sCv33540>