ls -l segfault + [PATCH]

Denis Vlasenko vda.linux at googlemail.com
Mon Mar 19 14:38:14 PDT 2007


On Monday 19 March 2007 21:57, Luciano Miguel Ferreira Rocha wrote:
> On Mon, Mar 19, 2007 at 09:50:14PM +0100, Denis Vlasenko wrote:
> > Thus far it seems to be a bug in glibc (maybe only on ppc,
> > or only glibc 2.3.6, or only glibc 2.3.6-on-ppc).
> 
> Actually, as I say later in the thread, the POSIX and C standard only
> allow setvbuf after opening the file pointer and before any other

Yes, I saw the mail after I sent a reply...

> operation. So doing any setvbuf on an applet will imply that it isn't
> safe for direct calling instead of exec'ing. Even if ash doesn't do a
> setvbuf (ls ; ls).

Yes you are correct.
--
vda


More information about the busybox mailing list