* Fix broken comment ; it's setuid() that must suceed not the setleuid
authorSam Hartman <hartmans@mit.edu>
Sat, 2 Nov 1996 05:43:35 +0000 (05:43 +0000)
committerSam Hartman <hartmans@mit.edu>
Sat, 2 Nov 1996 05:43:35 +0000 (05:43 +0000)
equivelent under AIX.

* You want to destroy v4 tickets if you are converting them just as if
you are getting them directly.

* Attempt to be more reasonable about printing out errors in in_tkt.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9283 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/login.c

index 494259188b71bae53615d9cee33311c8d02c52ac..1cf3eb8c752ed6ce019d9530dad44e3718cf4af3 100644 (file)
@@ -1,3 +1,14 @@
+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
index 1f7240348593fd2dba25dd1c4afc121cc13f0528..26d56348b66b64da73efc1e7c5bc5f9278b4a174 100644 (file)
@@ -998,7 +998,7 @@ destroy_tickets()
                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 */
 }
@@ -1724,11 +1724,11 @@ int rewrite_ccache = 1; /*try to write out ccache*/
            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);
@@ -1762,7 +1762,7 @@ int rewrite_ccache = 1; /*try to write out ccache*/
             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,