mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Issue 6919 - clarify error message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1697,9 +1697,8 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *c
|
|||||||
ast_log(LOG_DEBUG, "Attaching file '%s', format '%s', uservm is '%d', global is %d\n", attach, format, attach_user_voicemail, ast_test_flag((&globalflags), VM_ATTACH));
|
ast_log(LOG_DEBUG, "Attaching file '%s', format '%s', uservm is '%d', global is %d\n", attach, format, attach_user_voicemail, ast_test_flag((&globalflags), VM_ATTACH));
|
||||||
/* Make a temporary file instead of piping directly to sendmail, in case the mail
|
/* Make a temporary file instead of piping directly to sendmail, in case the mail
|
||||||
command hangs */
|
command hangs */
|
||||||
p = vm_mkftemp(tmp);
|
if ((p = vm_mkftemp(tmp)) == NULL) {
|
||||||
if (p == NULL) {
|
ast_log(LOG_WARNING, "Unable to launch '%s' (can't create temporary file)\n", mailcmd);
|
||||||
ast_log(LOG_WARNING, "Unable to launch '%s'\n", mailcmd);
|
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
gethostname(host, sizeof(host)-1);
|
gethostname(host, sizeof(host)-1);
|
||||||
@@ -1817,10 +1816,10 @@ static int sendpage(char *srcemail, char *pager, int msgnum, char *context, char
|
|||||||
char tmp[80] = "/tmp/astmail-XXXXXX";
|
char tmp[80] = "/tmp/astmail-XXXXXX";
|
||||||
char tmp2[256];
|
char tmp2[256];
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
FILE *p = vm_mkftemp(tmp);
|
FILE *p;
|
||||||
|
|
||||||
if (p == NULL) {
|
if ((p = vm_mkftemp(tmp)) == NULL) {
|
||||||
ast_log(LOG_WARNING, "Unable to launch '%s'\n", mailcmd);
|
ast_log(LOG_WARNING, "Unable to launch '%s' (can't create temporary file)\n", mailcmd);
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
gethostname(host, sizeof(host)-1);
|
gethostname(host, sizeof(host)-1);
|
||||||
|
Reference in New Issue
Block a user