*/
unlimit_nproc();
-#ifdef HAVE_SETRESUID
+#if defined(HAVE_SETRESUID)
if (setresuid(details->uid, details->euid, details->euid) != 0) {
- sudo_warn(U_("unable to change to runas uid (%u, %u)"), details->uid,
- details->euid);
+ sudo_warn(U_("unable to change to runas uid (%u, %u)"),
+ (unsigned int)details->uid, (unsigned int)details->euid);
goto done;
}
#elif defined(HAVE_SETREUID)
}
#else
if (seteuid(details->euid) != 0 || setuid(details->euid) != 0) {
- sudo_warn(U_("unable to change to runas uid (%u, %u)"), details->uid,
- details->euid);
+ sudo_warn(U_("unable to change to runas uid (%u, %u)"),
+ (unsigned int)details->uid, (unsigned int)details->euid);
goto done;
}
#endif /* !HAVE_SETRESUID && !HAVE_SETREUID */