Blame SOURCES/postfix-3.4.4-chroot-example-fix.patch

eaa7a1
--- a/examples/chroot-setup/LINUX2	2006-01-01 15:53:58.000000000 -0800
eaa7a1
+++ b/examples/chroot-setup/LINUX2	2016-11-27 00:45:52.145301784 -0800
eaa7a1
@@ -45,14 +45,14 @@
eaa7a1
 # 20060101 /lib64 support by Keith Owens.
eaa7a1
 #
eaa7a1
 
eaa7a1
-CP="cp -p"
eaa7a1
+CP="cp -p -Z"
eaa7a1
 
eaa7a1
 cond_copy() {
eaa7a1
   # find files as per pattern in $1
eaa7a1
   # if any, copy to directory $2
eaa7a1
   dir=`dirname "$1"`
eaa7a1
   pat=`basename "$1"`
eaa7a1
-  lr=`find "$dir" -maxdepth 1 -name "$pat"`
eaa7a1
+  lr=`find "$dir/" -maxdepth 1 -name "$pat"`
eaa7a1
   if test ! -d "$2" ; then exit 1 ; fi
eaa7a1
   if test "x$lr" != "x" ; then $CP $1 "$2" ; fi
eaa7a1
 } 
eaa7a1
@@ -63,8 +63,8 @@
eaa7a1
 POSTFIX_DIR=${POSTFIX_DIR-/var/spool/postfix}
eaa7a1
 cd ${POSTFIX_DIR}
eaa7a1
 
eaa7a1
-mkdir -p etc lib usr/lib/zoneinfo
eaa7a1
-test -d /lib64 && mkdir -p lib64
eaa7a1
+mkdir -p -Z etc lib usr/lib/zoneinfo
eaa7a1
+test -d /lib64 && mkdir -p -Z lib64
eaa7a1
 
eaa7a1
 # find localtime (SuSE 5.3 does not have /etc/localtime)
eaa7a1
 lt=/etc/localtime
eaa7a1
@@ -88,4 +88,3 @@
eaa7a1
   cond_copy '/lib64/libdb.so*' lib64
eaa7a1
 fi
eaa7a1
 
eaa7a1
-postfix reload