tree-wide: use UINT64_MAX or friends

This commit is contained in:
Yu Watanabe
2021-03-05 07:10:13 +09:00
parent ef1e0b9a46
commit f5fbe71d95
150 changed files with 530 additions and 528 deletions
+2 -2
View File
@@ -2508,7 +2508,7 @@ static int write_credential(
* user can no longer chmod() the file to gain write access. */
return r;
if (fchown(fd, uid, (gid_t) -1) < 0)
if (fchown(fd, uid, GID_INVALID) < 0)
return -errno;
}
}
@@ -2626,7 +2626,7 @@ static int acquire_credentials(
if (!ownership_ok)
return r;
if (fchown(dfd, uid, (gid_t) -1) < 0)
if (fchown(dfd, uid, GID_INVALID) < 0)
return -errno;
}
}