Change-Id: Id5ae2dc1e2e7a9055f79af3970c2ac03653e1e06
Signed-off-by: manish.r <manish.r@samsung.com>
return -1;
}
- char * const args[] = {
+ char * args[] = {
USER_DAEMON_COMMAND,
"-",
NULL,
};
+ if (rootshell_mode == 1)
+ {
+ args[1]="-l";
+ }
ret_fd = create_userprocess(USER_DAEMON_COMMAND, &pid, (char * const*)args, (char * const*)envp);
#if 0 // FIXME: should call login command instead of /bin/sh
if (should_drop_privileges()) {