make it a hard (repeatable) error. This also reduces the chance we
accidentally delete valuable data.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7150
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Dec 1 17:07:24 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * rc_io.c (krb5_rc_io_creat): In case of permission problems,
+ don't unlink the old replay cache; make it a hard
+ (repeatable) error. This also reduces the chance we
+ accidentally delete valuable data.
+
Mon Nov 27 14:52:23 1995 Tom Yu <tlyu@dragons-lair.MIT.EDU>
* rc_dfl.c (krb5_rc_dfl_init): default lifespan to
case EACCES:
case EROFS:
case EEXIST:
- retval = KRB5_RC_IO_PERM; goto fail;
+ retval = KRB5_RC_IO_PERM; goto no_unlink;
default:
retval = KRB5_RC_IO_UNKNOWN; goto fail;
{
fail:
(void) unlink(d->fn);
+ no_unlink:
FREE(d->fn);
d->fn = NULL;
(void) close(d->fd);