summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b044f47)
raw | patch | inline | side by side (parent: b044f47)
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) |
program/src/rrd_restore.c | patch | blob | history |
index 770e22f23f61f23abe86a17ea282ec7530a5b41b..e24cc8e990d2ac4cf8f466241555c5d26f7a8db4 100644 (file)
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);