From: Matthew Hancher Date: Wed, 12 Aug 1998 03:41:07 +0000 (+0000) Subject: Tue Aug 11 23:38:53 1998 Matthew D Hancher X-Git-Tag: krb5-1.1-beta1~585 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=27b937f67d71cbdcbd3ce997f1bb765a52607734;p=krb5.git Tue Aug 11 23:38:53 1998 Matthew D Hancher * klist.c (do_ccache): Properly check the return value of krb5_cc_set_flags() so the right thing happens if there is no CC. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10802 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/klist/ChangeLog b/src/clients/klist/ChangeLog index e09e58ad3..3150210e4 100644 --- a/src/clients/klist/ChangeLog +++ b/src/clients/klist/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 11 23:38:53 1998 Matthew D Hancher + + * klist.c (do_ccache): Properly check the return value of + krb5_cc_set_flags() so the right thing happens if there is no CC. + Mon Mar 30 17:08:07 1998 Ezra Peisach * klist.c (main): Exit with a 0 exit status if everything okay diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index c19efe0c1..6d05f822d 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -276,7 +276,7 @@ void do_ccache(name) flags = 0; /* turns off OPENCLOSE mode */ if ((code = krb5_cc_set_flags(kcontext, cache, flags))) { - if (code == ENOENT) { + if (code == KRB5_FCC_NOFILE) { if (!status_only) com_err(progname, code, "(ticket cache %s)", krb5_cc_get_name(kcontext, cache));