From 681efe20d327e9e6774b174a617d66bbb9d21f48 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 8 Mar 2011 21:00:36 +0100 Subject: use user's shell instead of hardwired "/bin/sh" (android needs this) Signed-off-by: Denys Vlasenko --- loginutils/adduser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'loginutils') diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 9d3d9cb..0c675ca 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -132,7 +132,8 @@ int adduser_main(int argc UNUSED_PARAM, char **argv) } pw.pw_gecos = (char *)"Linux User,,,"; - pw.pw_shell = (char *)DEFAULT_SHELL; + /* We assume that newly created users "inherit" root's shell setting */ + pw.pw_shell = (char *)get_shell_name(); pw.pw_dir = NULL; /* exactly one non-option arg */ -- cgit v1.1