From: Tom Yu Date: Fri, 1 Aug 2003 21:05:35 +0000 (+0000) Subject: * kinit.c (main): Apply patch from Stephen Grau to correctly X-Git-Tag: krb5-1.4-beta1~781 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e4e82b704127e01fbccc2747c48f8e70c9e18c5;p=krb5.git * kinit.c (main): Apply patch from Stephen Grau to correctly 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 --- diff --git a/src/clients/kinit/ChangeLog b/src/clients/kinit/ChangeLog index 962c7a529..bf365e02f 100644 --- a/src/clients/kinit/ChangeLog +++ b/src/clients/kinit/ChangeLog @@ -1,3 +1,8 @@ +2003-08-01 Tom Yu + + * kinit.c (main): Apply patch from Stephen Grau to correctly + return non-zero for certain error conditions. + 2003-05-29 Ken Raeburn * kinit.c (KRB4_BACKUP_DEFAULT_LIFE_SECS): Update to one day. diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index f00049419..422c87d7d 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -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; }