1
0
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:
Lennart Poettering 2016-07-29 16:22:30 +02:00
parent 3db99289c1
commit 92b25bcabb

View File

@ -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;
}