don't create the cache when resolving
authorJohn Kohl <jtkohl@mit.edu>
Wed, 2 May 1990 15:49:16 +0000 (15:49 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 2 May 1990 15:49:16 +0000 (15:49 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@673 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/file/fcc_reslv.c

index 1a4b93d9cdfe9b3461a64f531a63549313be064b..45d5a630ba91bf9de7dc88aefaeee76d385dc32a 100644 (file)
@@ -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;
 }