projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make force option work
[rrdtool.git]
/
src
/
rrd_restore.c
diff --git
a/src/rrd_restore.c
b/src/rrd_restore.c
index
61b82c1
..
36372b3
100644
(file)
--- a/
src/rrd_restore.c
+++ b/
src/rrd_restore.c
@@
-415,7
+415,11
@@
rrd_write(char *file_name, rrd_t *rrd, char force_overwrite)
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;
+#else
+ fdflags = O_WRONLY|O_CREAT;
+#endif
if (force_overwrite == 0) {
fdflags |= O_EXCL;
}