+Fri Nov 1 23:11:21 1996 Sam Hartman <hartmans@planet-zorp.MIT.EDU>
+
+ * login.c: print out system error if -1 returns.
+ (destroy_tickets): Destroy krb4 tickets if we are converting as
+ well as just for initial tickets.
+
+Fri Nov 1 21:00:01 1996 Sam Hartman <hartmans@mit.edu>
+
+ * login.c: Have the this call must succeed comment before setuid,
+ not the AIX login uid setting.
+
Thu Oct 31 22:14:00 1996 Sam Hartman <hartmans@planet-zorp.MIT.EDU>
* krlogind.c (doit): Remove tab3 because it isn't very useful and
krb5_cc_destroy (c, cache);
}
#ifdef KRB4_GET_TICKETS
- if (login_krb4_get_tickets)
+ if (login_krb4_get_tickets||login_krb4_convert)
dest_tkt();
#endif /* KRB4_GET_TICKETS */
}
setluid((uid_t) pwd->pw_uid);
}
#endif /* HAVE_SETLUID */
- /* This call MUST succeed */
#ifdef _IBMR2
setuidx(ID_LOGIN, pwd->pw_uid);
#endif
+ /* This call MUST succeed */
if(setuid((uid_t) pwd->pw_uid) < 0) {
perror("setuid");
sleepexit(1);
if (retval != KSUCCESS) {
syslog(LOG_ERR,
"%s while re-initializing V4 ticket cache as user",
- error_message(retval));
+ error_message((retval == -1)?errno:retval));
goto skip_output_tkfile;
}
retval = krb_save_credentials(save_v4creds.service,