summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthew Hancher <mdh@mit.edu>1998-08-12 03:41:07 +0000
committerMatthew Hancher <mdh@mit.edu>1998-08-12 03:41:07 +0000
commit27b937f67d71cbdcbd3ce997f1bb765a52607734 (patch)
tree4aa8389ec50425514441c08ebe247f9609537245 /src
parent673c4bbb47ccb2b63d3409af30cfbf480ef33216 (diff)
downloadkrb5-27b937f67d71cbdcbd3ce997f1bb765a52607734.tar.gz
krb5-27b937f67d71cbdcbd3ce997f1bb765a52607734.tar.xz
krb5-27b937f67d71cbdcbd3ce997f1bb765a52607734.zip
Tue Aug 11 23:38:53 1998 Matthew D Hancher <mdh@mit.edu>
* 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
Diffstat (limited to 'src')
-rw-r--r--src/clients/klist/ChangeLog5
-rw-r--r--src/clients/klist/klist.c2
2 files changed, 6 insertions, 1 deletions
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 <mdh@mit.edu>
+
+ * 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 <epeisach@kangaroo.mit.edu>
* 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));