Date: Tue, 20 Nov 2001 05:03:10 +0900 From: "Akinori MUSHA" <knu@iDaemons.org> To: Brian Somers <brian@freebsd-services.com> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org 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: <86itc68r5t.wl@archon.local.idaemons.org> In-Reply-To: <200111191830.fAJIUqv15801@hak.lan.Awfulhak.org> References: <knu@FreeBSD.org> <200111171910.fAHJABJ92986@freefall.freebsd.org> <200111191830.fAJIUqv15801@hak.lan.Awfulhak.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.
--
/
/__ __ 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.."
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?86itc68r5t.wl>
