Discussion:
[PATCH] mkstemp: open file with O_LARGEFILE
Enrico Scholz
2011-03-12 22:05:08 UTC
Permalink
File descriptor is returned to application which might apply 64 bit
operations on it. These operations will fail when O_LARGEFILE was not
set.

Signed-off-by: Enrico Scholz <***@informatik.tu-chemnitz.de>
---
libcruft/mkstemp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libcruft/mkstemp.c b/libcruft/mkstemp.c
index 7dc19d4..226dec4 100644
--- a/libcruft/mkstemp.c
+++ b/libcruft/mkstemp.c
@@ -1,3 +1,4 @@
+#define _FILE_OFFSET_BITS 64
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
--
1.7.4
Loading...