From: John Kohl Date: Wed, 2 May 1990 15:49:16 +0000 (+0000) Subject: don't create the cache when resolving X-Git-Tag: krb5-1.0-alpha2~723 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=394cb43be956b9bb04c79141f1c675ade6dd819f;p=krb5.git don't create the cache when resolving git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@673 dc483132-0cff-0310-8789-dd5450dbe970 --- 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; }