diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-21 08:00:25 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-21 08:00:25 +0000 |
commit | be8fb05d8cdc6f03a2fefa777fcec7c4ca916ad5 (patch) | |
tree | 95a8dce219ced24bb071e566fd6b75720d524477 /fxotune.c | |
parent | 7655b309d3d8c83dca42ad13d9763024c97b0f15 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |