[patch] prevent ash executing non-files

Rich Felker dalias at aerifal.cx
Sun Sep 10 17:56:34 UTC 2006


On Sun, Sep 10, 2006 at 05:14:11PM +0200, walter harms wrote:
> hi list,
> while testing i noticed that ash happy executed non-regular
> files like / even returning success. this patch will prevent
> that. it used stat() to find the type and errors anything that
> is not a file.
> btw: links do still work. i tested it.

what is the purpose of this? the kernel will return an error anyway
and this patch just makes bb larger.

rich




More information about the busybox mailing list