From 7c1a5c0b1bb9abf9d8292c26e7f0a602fc55aa83 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Tue, 4 May 2010 14:30:23 +0200 Subject: [PATCH] don't use chown -R --- build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build b/build index 6aebce4..05f2ca0 100755 --- a/build +++ b/build @@ -1923,7 +1923,8 @@ if test \( -n "$RPMS" -o -n "$DEBS" \) -a -n "$CREATE_BASELIBS" -a \( -d "$BUILD # (and force distro version if CREATE_BASELIBS=internal) if test -f $BUILD_ROOT/usr/lib/build/mkbaselibs -o "$CREATE_BASELIBS" != internal ; then mount -n -tproc none $BUILD_ROOT/proc 2> /dev/null - chown -R "$ABUILD_UID:$ABUILD_GID" "$BUILD_ROOT$TOPDIR" + # don't use -R as extracted sources, build root etc might be below $TOPDIR + chown "$ABUILD_UID:$ABUILD_GID" "$BUILD_ROOT$TOPDIR"/* "$BUILD_ROOT$TOPDIR"/RPMS/* || true create_baselibs fi fi -- 2.7.4