[BusyBox] [patch] ash tryexec() problem with shell scripts

Vladimir N. Oleynik dzo at simtreas.ru
Mon Sep 1 08:20:02 UTC 2003


Jean,

>>I can`t reproduce your problem.
> 
> 
> Try the following:
> 
> # pwd
> /
> # echo "echo argh" > bin/file_in_your_path
> # chmod +x bin/file_in_your_path 
> # type file_in_your_path 
> file_in_your_path is a tracked alias for /bin/file_in_your_path
> # file_in_your_path 
> /bin/sh: Can't open file_in_your_path

Have you "r" permision?

> # strace -f -e execve sh -c file_in_your_path 
> [pid  2017] execve("/bin/file_in_your_path", ["file_in_your_path"],
> [/* 14 vars */]) = -1 ENOEXEC (Exec format error)
> [pid  2017] execve("/bin/sh", ["/bin/sh", "file_in_your_path"], [/* 14
> vars */]) = 0

Its demonstrating true work ;-)


--w
vodz




More information about the busybox mailing list