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