From a408f6163d2286f40fcc5ed0433ff1d8213bc759 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 15 Aug 2006 20:53:48 +0000 Subject: [PATCH] pull up r18438 from trunk r18438@cathode-dark-space: tlyu | 2006-08-15 15:27:08 -0400 ticket: 4137 * src/clients/ksu/main.c (sweep_up): Don't check return value of krb5_seteuid(0), as it is not harmful for it to fail, and it will fail after setuid(target_user). Correct error message. ticket: 4138 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@18440 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/ksu/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 241aa7692..f3d844069 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -892,9 +892,10 @@ static void sweep_up(context, cc) const char * cc_name; struct stat st_temp; - if (krb5_seteuid(0) < 0 || krb5_seteuid(target_uid) < 0) { + krb5_seteuid(0); + if (krb5_seteuid(target_uid) < 0) { com_err(prog_name, errno, - "while returning to source uid for destroying ccache"); + "while changing to target uid for destroying ccache"); exit(1); } -- 2.26.2