diff options
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/adduser.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |