Changeset: 8768e0a39573 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8768e0a39573
Modified Files:
gdk/gdk_posix.c
Branch: Mar2025
Log Message:
When mmapping a file, it must already exist, so no O_CREAT needed.
diffs (12 lines):
diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c
--- a/gdk/gdk_posix.c
+++ b/gdk/gdk_posix.c
@@ -326,7 +326,7 @@ MT_mmap(const char *path, int mode, size
int fd;
void *ret;
- fd = open(path, O_CREAT | ((mode & MMAP_WRITE) ? O_RDWR : O_RDONLY) |
O_CLOEXEC, MONETDB_MODE);
+ fd = open(path, ((mode & MMAP_WRITE) ? O_RDWR : O_RDONLY) | O_CLOEXEC,
MONETDB_MODE);
if (fd < 0) {
GDKsyserror("open %s failed\n", path);
return NULL;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]