From: Tom Yu Date: Tue, 15 Aug 2006 19:27:08 +0000 (+0000) Subject: * src/clients/ksu/main.c (sweep_up): Don't check return value of X-Git-Tag: krb5-1.6-alpha1~177 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ecffe318b6cc29df4e9024c797a345bea50c9b5;p=krb5.git * 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: 4137 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18438 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); }