Attached is the same patch, but for after postfix has been installed.

I'm guessing the last one was designed for the source of the
package. This patch has indentation and filename (/etc/init.d/postfix)
for patching postfix after it has been installed, for people like me who
came upon this and just want to easily apply it to their system.

sudo patch -p0 < postfix-copy-host.conf-to-chroot.patch

--- postfix.orig	2014-05-18 23:23:15.000000000 -0700
+++ /etc/init.d/postfix	2014-05-19 00:01:15.702338089 -0700
@@ -149,7 +149,7 @@
 	fi
 
 	FILES="etc/localtime etc/services etc/resolv.conf etc/hosts \
-	    etc/nsswitch.conf etc/nss_mdns.config"
+	    etc/nsswitch.conf etc/nss_mdns.config etc/host.conf"
 	for file in $FILES; do
 	    [ -d ${file%/*} ] || mkdir -p ${file%/*}
 	    if [ -f /${file} ]; then rm -f ${file} && cp /${file} ${file}; fi

Reply via email to