Unlink credential cache file
authorBill Sommerfeld <wesommer@mit.edu>
Tue, 30 Jan 1990 02:44:18 +0000 (02:44 +0000)
committerBill Sommerfeld <wesommer@mit.edu>
Tue, 30 Jan 1990 02:44:18 +0000 (02:44 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@194 dc483132-0cff-0310-8789-dd5450dbe970

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

index 596c4c6a6ef3c2b88cc3ccf8a702feed794785db..3b6c584d01e65f16bd3f33fd5ce20a7a6419697f 100644 (file)
@@ -41,7 +41,10 @@ krb5_error_code krb5_fcc_destroy(id)
 #else
      lseek(((krb5_fcc_data *) id->data)->fd, 0, L_SET);
 #endif
-
+     ret = unlink(((krb5_fcc_data *) id->data)->filename);
+     if (ret < 0)
+        return errno;
+     
      ret = fstat(((krb5_fcc_data *) id->data)->fd, &buf);
      if (ret < 0)
          return errno;