summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fxotune.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxotune.c b/fxotune.c
index f623b81..00e0f4c 100644
--- a/fxotune.c
+++ b/fxotune.c
@@ -353,10 +353,10 @@ set:
fputs(usage, stdout);
return -1;
}
- configfd = open(configfile, O_CREAT|O_TRUNC|O_WRONLY);
+ configfd = open(configfile, O_CREAT|O_TRUNC|O_WRONLY, 0666);
if (configfd < 0) {
- fprintf(stderr, "open: %s\n", strerror(errno));
+ fprintf(stderr, "Cannot generate config file %s: open: %s\n", configfile, strerror(errno));
return -1;
}