ls -l segfault + [PATCH]

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Mon Mar 19 20:57:43 UTC 2007


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
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).

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070319/bd79cd6a/attachment-0002.pgp 


More information about the busybox mailing list