aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-04-17 16:44:14 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-04-17 16:44:14 +0000
commite8689b969f84ead4f34f3b40545b0b5fab4729c5 (patch)
tree4c2cdf6779dd76fbb3dcb676dab16e4b1c19aa41
parent2cde838634410277e59562959ed3ee9989622d0d (diff)
downloadmailfromd-e8689b969f84ead4f34f3b40545b0b5fab4729c5.tar.gz
mailfromd-e8689b969f84ead4f34f3b40545b0b5fab4729c5.tar.bz2
Bug fixes (sync with trunk)release_3_1_patches
git-svn-id: file:///svnroot/mailfromd/branches/release_3_1_patches@1358 7a8a7f39-df28-0410-adc6-e0d955640f24
-rw-r--r--ChangeLog8
-rw-r--r--src/bi_dns.m42
-rw-r--r--src/engine.c5
3 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b02def2..1b47ade2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1 +1,9 @@
+2007-04-17 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/engine.c (mailfromd_daemon): Do not call
+ mu_daemon_remove_pidfile, this results in a
+ duplicate free at exit (compensate for mailutils bug)
+ Issue informational messages on program startup and shutdown.
+ * src/bi_dns.m4 (getmx): Fix iteration over mxbuf
+
2007-04-16 Sergey Poznyakoff <gray@gnu.org.ua>
diff --git a/src/bi_dns.m4 b/src/bi_dns.m4
index a2639a2b..96f9d36e 100644
--- a/src/bi_dns.m4
+++ b/src/bi_dns.m4
@@ -86,3 +86,3 @@ MF_DEFUN(getmx, STRING, STRING domain, OPTIONAL, NUMBER resolve)
- for (i = 0, ns = 0, p = s; mxbuf[i]; i++) {
+ for (i = 0, ns = 0, p = s; i < MAXMXCOUNT && mxbuf[i]; i++) {
size_t len = strlen(mxbuf[i]);
diff --git a/src/engine.c b/src/engine.c
index 5548dd87..c9c5d0da 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -1258,2 +1258,4 @@ mailfromd_daemon()
+ mu_error("mailfromd version %s starting", PACKAGE_VERSION);
+
priv_setup();
@@ -1288,4 +1290,2 @@ mailfromd_daemon()
rc = smfi_main();
- mu_error("OK. REMOVING PIDFILE");
- mu_daemon_remove_pidfile();
} else {
@@ -1296,2 +1296,3 @@ mailfromd_daemon()
}
+ mu_error("mailfromd terminating");
exit(rc);

Return to:

Send suggestions and report system problems to the System administrator.