On Sunday 27 March 2011 23:28, Seb wrote:
> Le Sun, 27 Mar 2011 22:16:29 +0200
> Denys Vlasenko <[email protected]> a écrit:
> 
> > Hmm. Can you run "strace -s99 -oLOG su - unibug" and post
> > resulting LOG file?
> 
> Sure I can, attached.

Your version of su passes wrong argv[0] to the shell:


execve("/bin/su", ["su", "-", "unibug"], [/* 37 vars */]) = 0
...
setgroups32(1, [1000])                  = 0
setuid32(1000)                          = 0
chdir("/tmp")                           = 0
open("/etc/environment", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or 
directory)
close(3)                                = 0
execve("/bin/ash", ["-su"], [/* 10 vars */]) = 0
                   ^^^^^^^
                   ???!
...


-- 
vda

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to