mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
core: make use of uid_is_valid() when checking for UID validity
This commit is contained in:
parent
3db99289c1
commit
92b25bcabb
@ -1862,7 +1862,7 @@ static int exec_child(
|
||||
return r;
|
||||
}
|
||||
|
||||
if (uid == UID_INVALID || gid == GID_INVALID) {
|
||||
if (!uid_is_valid(uid) || !gid_is_valid(gid)) {
|
||||
*exit_status = EXIT_USER;
|
||||
return -ESRCH;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user