Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5097
Modified Files:
Tag: MonetDB_1-20
gdk_posix.mx
Log Message:
Add mode argument to open with O_CREAT flag.
Please check whether the mode has an appropriate value.
Index: gdk_posix.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_posix.mx,v
retrieving revision 1.143.2.1
retrieving revision 1.143.2.2
diff -u -d -r1.143.2.1 -r1.143.2.2
--- gdk_posix.mx 14 Oct 2007 20:31:33 -0000 1.143.2.1
+++ gdk_posix.mx 21 Nov 2007 11:30:36 -0000 1.143.2.2
@@ -1039,7 +1039,7 @@
void *
MT_mmap_open(MT_mmap_hdl *hdl, char *path, int mode, off_t off, size_t len,
size_t nremaps)
{
- int fd = open(path, O_CREAT | ((mode & MMAP_WRITE) ? O_RDWR :
O_RDONLY));
+ int fd = open(path, O_CREAT | ((mode & MMAP_WRITE) ? O_RDWR :
O_RDONLY), 0664);
void *ret = (void *) -1L;
(void) nremaps;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins