diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-07-29 16:22:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-08-18 22:49:48 +0200 |
commit | 92b25bcabb75846928f5ea1417808dab981d5e25 (patch) | |
tree | 886d9f6d01184bb20b2a8b9bef19f798b491407e /src/core | |
parent | 3db99289c153b0a648c035d63c8b523f6d8f8e96 (diff) |
core: make use of uid_is_valid() when checking for UID validity
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 6019df7ea6..18bb421cab 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -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; } |