diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-01 23:38:12 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-01 23:38:12 +0000 |
commit | 46ddc4f63a48d929ae3d9f9259a0979703aca896 (patch) | |
tree | 278f42aa93cc7d8af8b66e1cdeb4bc8984b3636c /apps | |
parent | 011a5fcff5d4d4aae3e4dd952f61fb6c8b9f7b4d (diff) |
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/trunk@127245 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 e3f7391b6..291d6f7d9 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2069,11 +2069,11 @@ static int copy(char *infile, char *outfile) if (link(infile, outfile)) { #endif if ((ifd = open(infile, O_RDONLY)) < 0) { - ast_log(AST_LOG_WARNING, "Unable to open %s in read-only mode\n", infile); + ast_log(AST_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(AST_LOG_WARNING, "Unable to open %s in write-only mode\n", outfile); + ast_log(AST_LOG_WARNING, "Unable to open %s in write-only mode: %s\n", outfile, strerror(errno)); close(ifd); return -1; } |