diff options
| author | John Kohl <jtkohl@mit.edu> | 1990-05-02 15:49:16 +0000 |
|---|---|---|
| committer | John Kohl <jtkohl@mit.edu> | 1990-05-02 15:49:16 +0000 |
| commit | 394cb43be956b9bb04c79141f1c675ade6dd819f (patch) | |
| tree | 71ec5c245adba7875b180e008f84e2dd2f5787bb /src | |
| parent | 292d3deb330c928502905f1d8f13847f5c5f0289 (diff) | |
don't create the cache when resolving
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@673 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/ccache/file/fcc_reslv.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/krb5/ccache/file/fcc_reslv.c b/src/lib/krb5/ccache/file/fcc_reslv.c index 1a4b93d9c..45d5a630b 100644 --- a/src/lib/krb5/ccache/file/fcc_reslv.c +++ b/src/lib/krb5/ccache/file/fcc_reslv.c @@ -45,7 +45,6 @@ krb5_fcc_resolve (id, residual) char *residual; { krb5_ccache lid; - int ret; lid = (krb5_ccache) malloc(sizeof(struct _krb5_ccache)); if (lid == NULL) @@ -75,13 +74,8 @@ krb5_fcc_resolve (id, residual) /* Set up the filename */ strcpy(((krb5_fcc_data *) lid->data)->filename, residual); - /* Make sure we can open the file name */ - ret = open(((krb5_fcc_data *) lid->data)->filename, O_CREAT|O_RDWR,0600); - if (ret == -1) - return errno; - else { - close(ret); - *id = lid; - return KRB5_OK; - } + /* other routines will get errors on open, and callers must expect them, + if cache is non-existent/unusable */ + *id = lid; + return KRB5_OK; } |
