aboutsummaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
Diffstat (limited to 'uidswap.c')
-rw-r--r--uidswap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/uidswap.c b/uidswap.c
index 6ed3024d0180..793688eb5817 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -163,9 +163,9 @@ restore_uid(void)
* as well.
*/
if (setuid(getuid()) == -1)
- fatal("%s: setuid failed: %s", __func__, strerror(errno));
+ fatal_f("setuid failed: %s", strerror(errno));
if (setgid(getgid()) == -1)
- fatal("%s: setgid failed: %s", __func__, strerror(errno));
+ fatal_f("setgid failed: %s", strerror(errno));
#endif /* SAVED_IDS_WORK_WITH_SETEUID */
if (setgroups(saved_egroupslen, saved_egroups) == -1)
@@ -212,7 +212,7 @@ permanently_set_uid(struct passwd *pw)
/* Try restoration of GID if changed (test clearing of saved gid) */
if (old_gid != pw->pw_gid && pw->pw_uid != 0 &&
(setgid(old_gid) != -1 || setegid(old_gid) != -1))
- fatal("%s: was able to restore old [e]gid", __func__);
+ fatal_f("was able to restore old [e]gid");
#endif
/* Verify GID drop was successful */
@@ -226,7 +226,7 @@ permanently_set_uid(struct passwd *pw)
/* Try restoration of UID if changed (test clearing of saved uid) */
if (old_uid != pw->pw_uid &&
(setuid(old_uid) != -1 || seteuid(old_uid) != -1))
- fatal("%s: was able to restore old [e]uid", __func__);
+ fatal_f("was able to restore old [e]uid");
#endif
/* Verify UID drop was successful */