diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-03 05:07:10 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-04 23:10:13 +0100 |
commit | f5fbe71d956957ca7ceb6777aed05a416fc83a43 (patch) | |
tree | 67358d417604030867a979f216bbb79939a37844 /src/notify | |
parent | table: drop last SIZE_MAX from table_set_sort() and table_set_display() (diff) | |
download | systemd-f5fbe71d956957ca7ceb6777aed05a416fc83a43.tar.xz systemd-f5fbe71d956957ca7ceb6777aed05a416fc83a43.zip |
tree-wide: use UINT64_MAX or friends
Diffstat (limited to 'src/notify')
-rw-r--r-- | src/notify/notify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notify/notify.c b/src/notify/notify.c index 1309d8f4e0..40cbc296bd 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -241,11 +241,11 @@ static int run(int argc, char* argv[]) { ucred data, and sd_pid_notify() uses the real UID for filling in ucred. */ if (arg_gid != GID_INVALID && - setregid(arg_gid, (gid_t) -1) < 0) + setregid(arg_gid, GID_INVALID) < 0) return log_error_errno(errno, "Failed to change GID: %m"); if (arg_uid != UID_INVALID && - setreuid(arg_uid, (uid_t) -1) < 0) + setreuid(arg_uid, UID_INVALID) < 0) return log_error_errno(errno, "Failed to change UID: %m"); if (arg_pid > 0) |