summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e35f35)
raw | patch | inline | side by side (parent: 0e35f35)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 18 Apr 2004 10:21:31 +0000 (10:21 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 18 Apr 2004 10:21:31 +0000 (10:21 +0000) |
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index 61b82c16e4fa88660e33420dbdbb4243eb307909..89f34c2753917f2d6a5e67eec1a1982ac6ecdb0c 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
if (strcmp("-",file_name)==0){
rrd_file= stdout;
} else {
- fdflags = O_WRONLY|O_CREAT|O_BINARY|O_EXCL;
+#ifdef WIN32
+ fdflags = O_RDWR|O_BINARY|O_CREAT|O_EXCL;
+#else
+ fdflags = O_WRONLY|O_CREAT|O_EXCL;
+#endif
if (force_overwrite == 0) {
fdflags |= O_EXCL;
}