From 394cb43be956b9bb04c79141f1c675ade6dd819f Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 2 May 1990 15:49:16 +0000 Subject: [PATCH] don't create the cache when resolving git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@673 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/file/fcc_reslv.c | 14 ++++---------- 1 file 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; } -- 2.26.2