mirror of
https://github.com/opnsense/src.git
synced 2026-04-25 16:18:54 -04:00
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
1 changed files with 0 additions and 14 deletions
|
|
@ -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 a new issue