diff options
-rw-r--r-- | src/util/disk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index e2c3594e5..bef35c899 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -1729,7 +1729,11 @@ GNUNET_DISK_file_open (const char *fn, enum GNUNET_DISK_OpenFlags flags, | |||
1729 | mode = translate_unix_perms (perm); | 1729 | mode = translate_unix_perms (perm); |
1730 | } | 1730 | } |
1731 | 1731 | ||
1732 | fd = open (expfn, oflags | O_LARGEFILE, mode); | 1732 | fd = open (expfn, oflags |
1733 | #if O_CLOEXEC | ||
1734 | | O_CLOEXEC | ||
1735 | #endif | ||
1736 | | O_LARGEFILE, mode); | ||
1733 | if (fd == -1) | 1737 | if (fd == -1) |
1734 | { | 1738 | { |
1735 | if (0 == (flags & GNUNET_DISK_OPEN_FAILIFEXISTS)) | 1739 | if (0 == (flags & GNUNET_DISK_OPEN_FAILIFEXISTS)) |