to create a new rcache. This allows better recovery from corrupt
rcache files.
ticket: 6018
target_version: 1.6.4
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20536
dc483132-0cff-0310-8789-
dd5450dbe970
(void) strcpy(d->fn, dir);
(void) strcat(d->fn, PATH_SEPARATOR);
(void) strcat(d->fn, *fn);
+ unlink(d->fn);
d->fd = THREEPARAMOPEN(d->fn, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL |
O_BINARY, 0600);
} else {
strerror(errno));
return KRB5_RC_IO_UNKNOWN;
}
- if (count == 0)
+ if (count != num)
return KRB5_RC_IO_EOF;
return 0;
}