summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-07-29 16:22:30 +0200
committerLennart Poettering <lennart@poettering.net>2016-08-18 22:49:48 +0200
commit92b25bcabb75846928f5ea1417808dab981d5e25 (patch)
tree886d9f6d01184bb20b2a8b9bef19f798b491407e
parent3db99289c153b0a648c035d63c8b523f6d8f8e96 (diff)
core: make use of uid_is_valid() when checking for UID validity
-rw-r--r--src/core/execute.c2
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;
}