summaryrefslogtreecommitdiff
path: root/fxotune.c
diff options
context:
space:
mode:
Diffstat (limited to 'fxotune.c')
-rw-r--r--fxotune.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxotune.c b/fxotune.c
index 9e12f3a..8999010 100644
--- a/fxotune.c
+++ b/fxotune.c
@@ -824,10 +824,10 @@ static int do_calibrate(int startdev, int enddev, int calibtype, char* configfil
char zapdev[80] = "";
struct wctdm_echo_coefs coefs;
- 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;
}