summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b023911)
raw | patch | inline | side by side (parent: b023911)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 3 Apr 2002 05:32:31 +0000 (05:32 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 3 Apr 2002 05:32:31 +0000 (05:32 +0000) |
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index 770e22f23f61f23abe86a17ea282ec7530a5b41b..e24cc8e990d2ac4cf8f466241555c5d26f7a8db4 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
if (strcmp("-",file_name)==0){
*rrd_file= *stdout;
} else {
- int fd = open(file_name,O_RDWR|O_CREAT|O_EXCL);
+ int fd = open(file_name,O_RDWR|O_CREAT|O_EXCL,0666);
if (fd == -1 || (rrd_file = fdopen(fd,"wb")) == NULL) {
rrd_set_error("creating '%s': %s",file_name,strerror(errno));
rrd_free(rrd);