Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/crypto/dist/krb4/lib/krb Pullup 1.2 [assar]:
details: https://anonhg.NetBSD.org/src/rev/751f1fdd7617
branches: netbsd-1-5
changeset: 490295:751f1fdd7617
user: tv <tv%NetBSD.org@localhost>
date: Tue Dec 12 21:56:15 2000 +0000
description:
Pullup 1.2 [assar]:
(tf_create): remove the overwriting of the old ticket file
diffstat:
crypto/dist/krb4/lib/krb/tf_util.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
diffs (33 lines):
diff -r b06f13b5b438 -r 751f1fdd7617 crypto/dist/krb4/lib/krb/tf_util.c
--- a/crypto/dist/krb4/lib/krb/tf_util.c Tue Dec 12 21:31:20 2000 +0000
+++ b/crypto/dist/krb4/lib/krb/tf_util.c Tue Dec 12 21:56:15 2000 +0000
@@ -21,7 +21,7 @@
#include "krb_locl.h"
-RCSID("$Id: tf_util.c,v 1.1.1.1 2000/06/16 18:45:56 thorpej Exp $");
+RCSID("$Id: tf_util.c,v 1.1.1.1.2.1 2000/12/12 21:56:15 tv Exp $");
#define TOO_BIG -1
@@ -249,20 +249,6 @@
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;
Home |
Main Index |
Thread Index |
Old Index