summaryrefslogtreecommitdiff
path: root/debian/patches/8.13/8.13.3/cpu_hog.patch
diff options
context:
space:
mode:
authorRichard A Nelson (Rick) <cowboy@debian.org>2005-03-08 01:50:00 +0000
committerAndreas Beckmann <debian@abeckmann.de>2012-10-01 19:58:47 +0200
commit2675f50bcc1c32cf0d43b95471430ca29bf76700 (patch)
treef61a41c863ee4e1328192681d594f85da0a1ae0c /debian/patches/8.13/8.13.3/cpu_hog.patch
parentb8c9d9d14db0b72b65a54a4285066e2024ea4a03 (diff)
downloadsendmail-debian/8.13.3-9.tar.gz
Imported Debian patch 8.13.3-9debian/8.13.3-9
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 ####
+