diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2007-07-04 01:49:17 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2007-07-04 01:49:17 +0000 |
| commit | 934a694a051776eae565aa69ba2aea0dd6608c27 (patch) | |
| tree | c04b3dc9b1e50983057f9b38dcc15cdbfb7044a1 /src/lib | |
| parent | 6cf434bc27bdda737f11ff04106b1483ce05a4d5 (diff) | |
| download | krb5-934a694a051776eae565aa69ba2aea0dd6608c27.tar.gz krb5-934a694a051776eae565aa69ba2aea0dd6608c27.tar.xz krb5-934a694a051776eae565aa69ba2aea0dd6608c27.zip | |
Save a detailed message for FCC_NOFILE including the file name
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19663 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/ccache/cc_file.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index 2858323317..fc9094b6e8 100644 --- a/src/lib/krb5/ccache/cc_file.c +++ b/src/lib/krb5/ccache/cc_file.c @@ -1240,8 +1240,19 @@ krb5_fcc_open_file (krb5_context context, krb5_ccache id, int mode) } f = THREEPARAMOPEN (data->filename, open_flag | O_BINARY, 0600); - if (f == NO_FILE) - return krb5_fcc_interpret (context, errno); + if (f == NO_FILE) { + switch (errno) { + case ENOENT: + retval = KRB5_FCC_NOFILE; + fprintf(stderr, "stuffing error message in context %p\n", context); + krb5_set_error_message(context, retval, + "Credentials cache file '%s' not found", + data->filename); + return retval; + default: + return krb5_fcc_interpret (context, errno); + } + } data->mode = mode; |
