1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-25 13:50:12 +03:00

mkfs-util: Use GID_FMT

This commit is contained in:
Daan De Meyer
2022-11-21 10:46:12 +01:00
parent 922576e452
commit 29ec4bce0e

View File

@ -118,10 +118,10 @@ static int setup_userns(uid_t uid, gid_t gid) {
return log_error_errno(r, "Failed to write 'deny' to /proc/self/setgroups: %m");
r = write_string_filef("/proc/self/gid_map", WRITE_STRING_FILE_DISABLE_BUFFER,
UID_FMT " " UID_FMT " " UID_FMT, 0u, gid, 1u);
GID_FMT " " GID_FMT " " GID_FMT, 0u, gid, 1u);
if (r < 0)
return log_error_errno(r,
"Failed to write mapping for "UID_FMT" to /proc/self/gid_map: %m",
"Failed to write mapping for "GID_FMT" to /proc/self/gid_map: %m",
gid);
return 0;