aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssar Westerlund <assar@FreeBSD.org>2000-12-10 21:01:33 +0000
committerAssar Westerlund <assar@FreeBSD.org>2000-12-10 21:01:33 +0000
commitee695f07e219a80adee805e5a03a592ff2bb5558 (patch)
tree2e05b0ea5fbc0e49a72ce09645a48dc1f2351d7e
parent7a7ff9f80d33b1e3d60068aecda75a282e836b81 (diff)
downloadsrc-ee695f07e219a80adee805e5a03a592ff2bb5558.tar.gz
src-ee695f07e219a80adee805e5a03a592ff2bb5558.zip
merge fix from vendor for not overwriting old ticket file
Notes
Notes: svn path=/vendor-crypto/kerberosIV/dist/; revision=69836
-rw-r--r--crypto/kerberosIV/lib/krb/tf_util.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/crypto/kerberosIV/lib/krb/tf_util.c b/crypto/kerberosIV/lib/krb/tf_util.c
index c738757d6b03..5528c4966e94 100644
--- a/crypto/kerberosIV/lib/krb/tf_util.c
+++ b/crypto/kerberosIV/lib/krb/tf_util.c
@@ -249,20 +249,6 @@ tf_init(char *tf_name, int rw)
int
tf_create(char *tf_name)
{
- struct stat statbuf;
- char garbage[BUFSIZ];
-
- fd = open(tf_name, O_RDWR | O_BINARY, 0);
- if (fd >= 0) {
- if (fstat (fd, &statbuf) == 0) {
- int i;
-
- for (i = 0; i < statbuf.st_size; i += sizeof(garbage))
- write (fd, garbage, sizeof(garbage));
- }
- close (fd);
- }
-
if (unlink (tf_name) && errno != ENOENT)
return TKT_FIL_ACC;