--- index.c 2001/01/18 20:30:50 1.7
+++ index.c 2001/01/19 14:56:33 1.8
@@ -1,6 +1,6 @@
/*
$Source: /v/ossp/cvs/ossp-pkg/petidomo/index.c,v $
- $Revision: 1.7 $
+ $Revision: 1.8 $
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
@@ -21,6 +21,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
+#include <errno.h>
#include "libtext/text.h"
#include "petidomo.h"
@@ -53,7 +54,7 @@
fh = vOpenMailer(envelope, address, NULL);
if (fh == NULL) {
- syslog(LOG_ERR, "Failed to send mail to \"%s\": %m", address);
+ syslog(LOG_ERR, "Failed to send mail to \"%s\": %s", address, strerror(errno));
return -1;
}
fprintf(fh, "From: %s (Petidomo Mailing List Server)\n", from);
|