summaryrefslogtreecommitdiff
path: root/debian/patches/8.13/8.13.3/cpu_hog.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/8.13/8.13.3/cpu_hog.patch')
-rw-r--r--debian/patches/8.13/8.13.3/cpu_hog.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/8.13/8.13.3/cpu_hog.patch b/debian/patches/8.13/8.13.3/cpu_hog.patch
new file mode 100644
index 0000000..bcde4c2
--- /dev/null
+++ b/debian/patches/8.13/8.13.3/cpu_hog.patch
@@ -0,0 +1,38 @@
+# This is a patch for deliver.c to update it to deliver.8.13.4
+#
+# To apply this patch:
+# STEP 1: Chdir to the source directory.
+# STEP 2: Run the 'applypatch' program with this patch file as input.
+#
+# If you do not have 'applypatch', it is part of the 'makepatch' package
+# that you can fetch from the Comprehensive Perl Archive Network:
+# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
+# In the above URL, 'x' should be 2 or higher.
+#
+# To apply this patch without the use of 'applypatch':
+# STEP 1: Chdir to the source directory.
+# STEP 2: Run the 'patch' program with this file as input.
+#
+#### End of Preamble ####
+
+#### Patch data follows ####
+diff -c 'deliver.orig' 'deliver.c'
+Index: ./deliver.orig
+Prereq: 8.983
+*** ./sendmail-8.13.3/sendmail/deliver.c Mon Mar 14 20:50:56 2005
+--- ./deliver.8.13.4 Mon Mar 14 20:51:12 2005
+***************
+*** 5684,5689 ****
+--- 5684,5693 ----
+ !(m->m_argv[0] != NULL && strcmp(m->m_argv[0], "TCP") == 0))
+ return "localhost";
+
++ /* an empty host does not have MX records */
++ if (*host == '\0')
++ return "_empty_";
++
+ /*
+ ** Check to see if this uses IPC -- if not, it can't have MX records.
+ */
+#### End of Patch data ####
+