From 45a98f5977ecea130f332759821b1052f8b9a0a9 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Sun, 31 Aug 2008 21:15:28 +0200
Subject: Correcting chroot call to process config/binary_rootfs/excludes in
 chrooted builds.

---
 helpers/lh_binary_rootfs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs
index 387bf80..419b264 100755
--- a/helpers/lh_binary_rootfs
+++ b/helpers/lh_binary_rootfs
@@ -94,7 +94,7 @@ then
 	if [ -f config/binary_rootfs/excludes ]
 	then
 		cp config/binary_rootfs/excludes chroot/chroot/excludes
-		Chroot chroot/chroot "cat /excludes | xargs rm -rf"
+		chroot chroot/chroot /usr/bin/env -i xargs --arg-file=/excludes rm -rf
 		rm -f chroot/chroot/excludes
 	fi
 
-- 
cgit v1.0