Fix format string integer type in error message.

This commit is contained in:
Darren Tucker 2019-07-18 13:40:12 +10:00
parent ed46a0c070
commit 22b9b3e944
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ setresgid(gid_t rgid, gid_t egid, gid_t sgid)
} }
if (setgid(rgid) < 0) { if (setgid(rgid) < 0) {
saved_errno = errno; saved_errno = errno;
error("setgid %ul: %.100s", (u_long)rgid, strerror(errno)); error("setgid %lu: %.100s", (u_long)rgid, strerror(errno));
errno = saved_errno; errno = saved_errno;
ret = -1; ret = -1;
} }