summaryrefslogtreecommitdiff
path: root/fxotune.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-21 08:00:25 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-21 08:00:25 +0000
commitbe8fb05d8cdc6f03a2fefa777fcec7c4ca916ad5 (patch)
tree95a8dce219ced24bb071e566fd6b75720d524477 /fxotune.c
parent7655b309d3d8c83dca42ad13d9763024c97b0f15 (diff)
* Add an explicit mode to the callto open (the default one that is used
anyway). * Clarify error message. Closes #10505 on Zaptel 1.2. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2914 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 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;
}