From: Tom Yu Date: Tue, 15 Aug 2006 20:53:48 +0000 (+0000) Subject: pull up r18438 from trunk X-Git-Tag: krb5-1.4.4-beta1~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a408f6163d2286f40fcc5ed0433ff1d8213bc759;p=krb5.git 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 --- 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); }