mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
user-util: validate the right field
This commit is contained in:
parent
afd08d7740
commit
829854afa5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue