exim: update to 4.97.1
[feed/packages.git] / mail / exim / patches / 300-avoid-time-printf.patch
diff --git a/mail/exim/patches/300-avoid-time-printf.patch b/mail/exim/patches/300-avoid-time-printf.patch
new file mode 100644 (file)
index 0000000..f4f1c88
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/transports/smtp.c
++++ b/src/transports/smtp.c
+@@ -938,7 +938,7 @@ if (  sx->early_pipe_active
+     if (!(er = dbfn_read_enforce_length(dbm_file, ehlo_resp_key, sizeof(dbdata_ehlo_resp))))
+       debug_printf("no ehlo-resp record!\n");
+     else
+-      debug_printf("ehlo-resp record is %d seconds old\n", time(NULL) - er->time_stamp);
++      debug_printf("ehlo-resp record is %.0f seconds old\n", difftime(time(NULL), er->time_stamp));
+     }
+   dbfn_delete(dbm_file, ehlo_resp_key);