tree-wide: use UINT64_MAX or friends
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user