diff options
Diffstat (limited to 'src/basic/user-util.c')
-rw-r--r-- | src/basic/user-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/user-util.c b/src/basic/user-util.c index 1cea96242e..ae6f13a8cf 100644 --- a/src/basic/user-util.c +++ b/src/basic/user-util.c @@ -322,7 +322,7 @@ int get_user_creds( if (ret_shell) *ret_shell = (FLAGS_SET(flags, USER_CREDS_CLEAN) && (isempty(p->pw_shell) || - !path_is_valid(p->pw_dir) || + !path_is_valid(p->pw_shell) || !path_is_absolute(p->pw_shell) || is_nologin_shell(p->pw_shell))) ? NULL : p->pw_shell; |