tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] Fix system() behaviour when parameter is NULL
On Thu, Aug 28, 2008 at 12:18 PM, Ignatios Souvatzis <is%netbsd.org@localhost>
wrote:
>> R_OK might be needed if _PATH_BSHELL_ is actually a shell script :-)
> Won't it fail when the interpreter is NOT a shell script and only
> installed as --x--x--x?
Simple test:
07:51 tmp$ cp /bin/sh ~/bin
09:40 tmp$ sudo chown root:wheel ~/bin/sh
Password:
09:40 tmp$ sudo chmod 111 ~/bin/sh
09:40 tmp$ ~/bin/sh -c "echo It works."
It works.
--
With Best Regards,
Andy Shevchenko
Home |
Main Index |
Thread Index |
Old Index