/* This is used to reset the ugid back with the saved values There is nothing much we can do checking error values here.  */
static void resetugid(int suid, int sgid)
/* This is used to reset the ugid back with the saved values There is nothing much we can do checking error values here.  */
static void resetugid(int suid, int sgid)
{
    if (setresgid(-1, sgid, sgid) == -1) {
        abort();
    }
    if (setresuid(-1, suid, suid) == -1) {
        abort();
    }
}