This commit was generated by cvs2svn to compensate for changes in r69836,
which included commits to RCS files with non-trunk default branches.
This commit is contained in:
commit
45afb7befd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69837
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user