From: Nils Durner Date: Sat, 29 Aug 2009 17:21:16 +0000 (+0000) Subject: MinGW X-Git-Tag: initial-import-from-subversion-38251~23580 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4f9a375af60b2c7a54e6e835c51da100aa8baa5;p=oweals%2Fgnunet.git MinGW --- diff --git a/src/util/disk.c b/src/util/disk.c index 66a811de9..ef7a62351 100644 --- a/src/util/disk.c +++ b/src/util/disk.c @@ -1097,9 +1097,11 @@ GNUNET_DISK_file_open (const char *fn, int flags, ...) access = 0; disp = OPEN_ALWAYS; - if (flags & GNUNET_DISK_OPEN_READ) + if (GNUNET_DISK_OPEN_READWRITE == (flags & GNUNET_DISK_OPEN_READWRITE)) + access = FILE_READ_DATA | FILE_WRITE_DATA; + else if (flags & GNUNET_DISK_OPEN_READ) access = FILE_READ_DATA; - if (flags & GNUNET_DISK_OPEN_WRITE) + else if (flags & GNUNET_DISK_OPEN_WRITE) access = FILE_WRITE_DATA; if (flags & GNUNET_DISK_OPEN_FAILIFEXISTS)