diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-01 23:39:42 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-01 23:39:42 +0000 |
commit | a419104e34c389cadb330e5f4180e8cb9404bcc8 (patch) | |
tree | 720f5c4cbd4f0c81d8f999d79014e8cc845e8c56 /apps/app_voicemail.c | |
parent | 9018acdf6f91fc8591af8b6f5df2f05ab1bdc4dd (diff) |
Merged revisions 127245 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r127245 | mmichelson | 2008-07-01 18:38:12 -0500 (Tue, 01 Jul 2008) | 13 lines
Merged revisions 127244 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r127244 | mmichelson | 2008-07-01 18:36:40 -0500 (Tue, 01 Jul 2008) | 5 lines
Add error message to failed open(2) calls inside the copy() function of
app_voicemail. This idea came as part of my work in helping to resolve
issue #12764.
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@127246 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 362e0ce64..3ac097769 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1694,11 +1694,11 @@ static int copy(char *infile, char *outfile) if (link(infile, outfile)) { #endif if ((ifd = open(infile, O_RDONLY)) < 0) { - ast_log(LOG_WARNING, "Unable to open %s in read-only mode\n", infile); + ast_log(LOG_WARNING, "Unable to open %s in read-only mode: %s\n", infile, strerror(errno)); return -1; } if ((ofd = open(outfile, O_WRONLY | O_TRUNC | O_CREAT, VOICEMAIL_FILE_MODE)) < 0) { - ast_log(LOG_WARNING, "Unable to open %s in write-only mode\n", outfile); + ast_log(LOG_WARNING, "Unable to open %s in write-only mode: %s\n", outfile, strerror(errno)); close(ifd); return -1; } |