diff options
Diffstat (limited to 'uidswap.c')
-rw-r--r-- | uidswap.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -117,8 +117,7 @@ restore_uid(void) | |||
117 | #ifdef SAVED_IDS_WORK_WITH_SETEUID | 117 | #ifdef SAVED_IDS_WORK_WITH_SETEUID |
118 | /* Set the effective uid back to the saved privileged uid. */ | 118 | /* Set the effective uid back to the saved privileged uid. */ |
119 | if (seteuid(saved_euid) < 0) | 119 | if (seteuid(saved_euid) < 0) |
120 | fatal("seteuid %u: %.100s", (u_int) saved_euid, | 120 | fatal("seteuid %u: %.100s", (u_int) saved_euid, strerror(errno)); |
121 | strerror(errno)); | ||
122 | if (setegid(saved_egid) < 0) | 121 | if (setegid(saved_egid) < 0) |
123 | fatal("setegid %u: %.100s", (u_int) saved_egid, | 122 | fatal("setegid %u: %.100s", (u_int) saved_egid, |
124 | strerror(errno)); | 123 | strerror(errno)); |