summaryrefslogtreecommitdiff
path: root/fxotune.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-21 08:21:44 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-21 08:21:44 +0000
commit4ac94bd902d935f06175933fb02a7e28c4290f7a (patch)
tree59f8c8fc36e1ef4a3d12fb5f60c639977216e4e1 /fxotune.c
parent45b1feb65aa8308d491cb4138c0618d84e68b3d2 (diff)
* Add an explicit mode to the callto open (the default one that is used
anyway). * Clarify error message. closes #10505 on Zaptel 1.4. Merged revisions 2914 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2915 5390a7c7-147a-4af0-8ec9-7488f05a26cb
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;
}