On Sunday 06 March 2011 19:22, Dudy Kohen wrote:
> In your suggestion you made some assumptions that are not applicable for
> Android:
> Android does not have an /etc/passwd file.

Where did I made an assumption that this file must exist?


> > ./util-linux/script.c- }
> > ./util-linux/script.c- shell = getenv("SHELL");
> > ./util-linux/script.c- if (shell == NULL) {
> > ./util-linux/script.c: shell = DEFAULT_SHELL;
> > --
> >
> > Should we try to retrieve current user's shell
> (getpwuid(getuid())->pw_shell)
> > before falling back to DEFAULT_SHELL?

I do hope getpwuid(getuid()) on android returns valid struct passwd*?

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

Reply via email to