otherwise the unlink() will fail.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7531
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Feb 24 19:16:23 1996 Theodore Y. Ts'o <tytso@dcl>
+
+ * fcc_destry.c (krb5_fcc_destroy): For MS-DOS filesystems, you
+ must close the file before unlinking it, otherwise the
+ unlink() will fail.
+
Thu Feb 15 14:55:56 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* fcc_skip.c (krb5_fcc_skip_header): If version is not FVNO_4, do not
size -= i; /* We've read this much */
}
+ if (OPENCLOSE(id)) {
+ (void) close(((krb5_fcc_data *)id->data)->fd);
+ ((krb5_fcc_data *) id->data)->fd = -1;
+ }
+
ret = unlink(((krb5_fcc_data *) id->data)->filename);
if (ret < 0) {
kret = krb5_fcc_interpret(context, errno);
- if (OPENCLOSE(id)) {
- (void) close(((krb5_fcc_data *)id->data)->fd);
- ((krb5_fcc_data *) id->data)->fd = -1;
- kret = ret;
- }
goto cleanup;
}