summaryrefslogtreecommitdiffstats
path: root/crypto/kerberosIV
diff options
context:
space:
mode:
authorassar <assar@FreeBSD.org>2000-12-10 21:01:33 +0000
committerassar <assar@FreeBSD.org>2000-12-10 21:01:33 +0000
commit7e5f2377be4220b42ea18ddd0112a4a64320943a (patch)
tree2e05b0ea5fbc0e49a72ce09645a48dc1f2351d7e /crypto/kerberosIV
parent32ce969d51756de86d53a1779b7fd3c5e8102afc (diff)
downloadFreeBSD-src-7e5f2377be4220b42ea18ddd0112a4a64320943a.zip
FreeBSD-src-7e5f2377be4220b42ea18ddd0112a4a64320943a.tar.gz
merge fix from vendor for not overwriting old ticket file
Diffstat (limited to 'crypto/kerberosIV')
-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 c738757..5528c49 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;
OpenPOWER on IntegriCloud