From 7e4e82b704127e01fbccc2747c48f8e70c9e18c5 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 1 Aug 2003 21:05:35 +0000 Subject: [PATCH] * 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 --- src/clients/kinit/ChangeLog | 5 +++++ src/clients/kinit/kinit.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.26.2