From 4b19653adbb46fb6e795386586b2419c97407e27 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 18 May 2004 18:51:55 +0000 Subject: [PATCH] make force option work git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@254 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_restore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/src/rrd_restore.c b/program/src/rrd_restore.c index 89f34c27..36372b3b 100644 --- a/program/src/rrd_restore.c +++ b/program/src/rrd_restore.c @@ -416,9 +416,9 @@ rrd_write(char *file_name, rrd_t *rrd, char force_overwrite) rrd_file= stdout; } else { #ifdef WIN32 - fdflags = O_RDWR|O_BINARY|O_CREAT|O_EXCL; + fdflags = O_RDWR|O_BINARY|O_CREAT; #else - fdflags = O_WRONLY|O_CREAT|O_EXCL; + fdflags = O_WRONLY|O_CREAT; #endif if (force_overwrite == 0) { fdflags |= O_EXCL; -- 2.30.2