* kinit.c (main): Apply patch from Stephen Grau to correctly
authorTom Yu <tlyu@mit.edu>
Fri, 1 Aug 2003 21:05:35 +0000 (21:05 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 1 Aug 2003 21:05:35 +0000 (21:05 +0000)
return non-zero for certain error conditions.

ticket: 1437
target_version: 1.3.2
tags: pullup

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

src/clients/kinit/ChangeLog
src/clients/kinit/kinit.c

index 962c7a52963ce09deb62759b50eb14d2e01ed863..bf365e02f74e00cc0cbe54d93b3180f35206bc6c 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-01  Tom Yu  <tlyu@mit.edu>
+
+       * kinit.c (main): Apply patch from Stephen Grau to correctly
+       return non-zero for certain error conditions.
+
 2003-05-29  Ken Raeburn  <raeburn@mit.edu>
 
        * kinit.c (KRB4_BACKUP_DEFAULT_LIFE_SECS): Update to one day.
index f0004941906fbcde662cc7a43ce13a552609fdc5..422c87d7de701054f718cfd70f2d3169ae99fa41 100644 (file)
@@ -1123,7 +1123,8 @@ main(argc, argv)
     k5_end(&k5);
     k4_end(&k4);
 
-    if ((got_k5 && !authed_k5) || (got_k4 && !authed_k4))
+    if ((got_k5 && !authed_k5) || (got_k4 && !authed_k4) ||
+       (!got_k5 && !got_k4))
        exit(1);
     return 0;
 }