[Bug 1255] Standalone shell hush can no longer exec applets
bugzilla at busybox.net
bugzilla at busybox.net
Sun Mar 21 21:15:35 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=1255
--- Comment #2 from Simon Griffin <grifsim at gmail.com> 2010-03-21 21:15:34 UTC ---
(In reply to comment #1)
> You also need CONFIG_FEATURE_PREFER_APPLETS=y
>
Yes, I have that one enabled as well. Pretty much goes without saying since
FEATURE_SH_STANDALONE depends on: (MSH || LASH || HUSH || ASH) &&
FEATURE_PREFER_APPLETS
> I see the following behavior: "cp" fails as expected (I dont have this applet
> enabled, and PATH is ""), but enabled applet "fsck.minix" works:
>
> # PATH= ./busybox hush
>
>
> BusyBox v1.17.0.git (2010-03-21 19:15:47 CET) hush - the humble shell
>
> /.1/usr/srcdevel/bbox/fix/busybox.z7 # cp
> hush: can't execute 'cp': No such file or directory
> /.1/usr/srcdevel/bbox/fix/busybox.z7 # fsck.minix
> BusyBox v1.17.0.git (2010-03-21 19:15:47 CET) multi-call binary.
>
> Usage: fsck.minix [-larvsmf] BLOCKDEV
>
> /.1/usr/srcdevel/bbox/fix/busybox.z7 #
>
Here is what I get using your .config:
~/src/busybox-git$ PATH= ./busybox hush
BusyBox v1.17.0.git (2010-03-21 21:53:25 CET) hush - the humble shell
/home/simon/src/busybox-git $ cp
hush: can't execute 'cp': No such file or directory
/home/simon/src/busybox-git $ fsck.minix
BusyBox v1.17.0.git (2010-03-21 21:53:25 CET) multi-call binary.
Usage: fsck.minix [-larvsmf] BLOCKDEV
/home/simon/src/busybox-git $ exec fsck.minix
hush: can't execute 'fsck.minix': No such file or directory
~/src/busybox-git$
No problem at all until I try to "exec" an applet that worked without "exec".
This only fails with hush, never ash, and only from commit
3ef4f77620a9f5f9a7c1247e29ea9c14e07b8a30 and onwards.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list