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
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);
}