opnsense-ports/sysutils/freefilesync/files/patch-zen_file__io.cpp
Franco Fichtner 3f91a69bbd */*: sync with upstream
Taken from: HardenedBSD
2018-03-03 11:10:08 +01:00

12 lines
570 B
C++

--- ../../zen/file_io.cpp.orig 2018-03-01 11:10:56.764684000 +0200
+++ ../../zen/file_io.cpp 2018-03-01 11:12:35.599889000 +0200
@@ -305,8 +305,7 @@
{
const FileHandle fh = getHandle();
//don't use potentially inefficient ::posix_fallocate!
- const int rv = ::fallocate(fh, //int fd,
- 0, //int mode,
+ const int rv = ::posix_fallocate(fh, //int fd,
0, //off_t offset
expectedSize); //off_t len
if (rv != 0)