Ticket #48816: patch-sudo.c.diff

File patch-sudo.c.diff, 545 bytes (added by youvegotmoxie@…, 9 years ago)

Addresses https://trac.macports.org/ticket/40644

  • src/sudo.c

     
    10231023        goto done;
    10241024    }
    10251025#else
    1026     if (seteuid(details->euid) != 0 || setuid(details->euid) != 0) {
    1027         sudo_warn(U_("unable to change to runas uid (%u, %u)"), details->uid,
    1028             details->euid);
     1026    if (seteuid(details->euid) != 0) {
     1027        sudo_warn(U_("unable to change to runas uid (%u, %u)"),
     1028    (unsigned int)details->euid, (unsigned int)details->euid);
    10291029        goto done;
    10301030    }
    10311031#endif /* !HAVE_SETRESUID && !HAVE_SETREUID */