summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe56909)
raw | patch | inline | side by side (parent: fe56909)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 23 Mar 2004 21:34:28 +0000 (21:34 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 23 Mar 2004 21:34:28 +0000 (21:34 +0000) |
program/src/rrd_restore.c | patch | blob | history |
index 2c9a280909df2645d73706538e67a22e3c23d221..61b82c16e4fa88660e33420dbdbb4243eb307909 100644 (file)
if (strcmp("-",file_name)==0){
rrd_file= stdout;
} else {
- fdflags = O_WRONLY|O_CREAT;
+ fdflags = O_WRONLY|O_CREAT|O_BINARY|O_EXCL;
if (force_overwrite == 0) {
fdflags |= O_EXCL;
}