From 554b9ff392dc11f454acce8932edab9921a1a951 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 12 Mar 1999 23:53:02 +0000 Subject: [PATCH] * main.c (main): Fix cleanup code for setluid() failure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11276 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/ksu/ChangeLog | 4 ++++ src/clients/ksu/main.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 647a84a4b..44dc8989d 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 12 18:52:18 1999 Tom Yu + + * main.c (main): Fix cleanup code for setluid() failure. + Thu Mar 4 18:46:55 1999 Tom Yu * heuristic.c (get_authorized_princ_names): Fix to not call diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 44c270350..de7cef67d 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -807,7 +807,8 @@ krb5_seteuid(0); /*So we have some chance of sweeping up*/ */ if (setluid((uid_t) pwd->pw_uid) < 0) { perror("setuid"); - sleepexit(1); + sweep_up(ksu_context, use_source_cache, cc_target); + exit(1); } #endif /* HAVE_SETLUID */ -- 2.26.2