if (gid != (gid_t)-1) {
if (setregid(gid, gid) < 0) {
virReportSystemError(err = errno,
- _("cannot change to '%d' group"),
+ _("cannot change to '%u' group"),
(unsigned int) gid);
goto error;
}
}
if (rc) {
- virReportSystemError(err = rc, _("cannot getpwuid_r(%d)"),
+ virReportSystemError(err = rc, _("cannot getpwuid_r(%u)"),
(unsigned int) uid);
goto error;
}
if (!pwd_result) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("getpwuid_r failed to retrieve data "
- "for uid '%d'"),
+ "for uid '%u'"),
(unsigned int) uid);
err = EINVAL;
goto error;
# endif
if (setreuid(uid, uid) < 0) {
virReportSystemError(err = errno,
- _("cannot change to uid to '%d'"),
+ _("cannot change to uid to '%u'"),
(unsigned int) uid);
goto error;
}