diff options
Diffstat (limited to 'src/notify/notify.c')
-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) |