On Wednesday 02 February 2011 04:34, Rob Landley wrote:
> On 02/01/2011 08:32 PM, Denys Vlasenko wrote:
> > On Tuesday 01 February 2011 19:00, Rob Landley wrote:
> >> When /proc isn't mounted, the /proc/self/exe exec will fail. In that
> >> case, busybox should probably just fall back to the normal $PATH
> >> behavior instead of failing.
> >
> > Another option is to patch kernel so that exec("/proc/self/exe")
> > never fails. See examples/linux-2.6.30_proc_self_exe.patch
>
> Magic path bad. Something like exec(NULL) would be better but it's too
> close to a common error. Perhaps exec(".") is a better special case.
The advantage of magic "/proc/self/exe" path is that *no hacking
in userspace needed*. Old usersace just works better now.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox