From cf61d62db6c7ae947e3eead4018e8c59e3c9b740 Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Tue, 7 Jul 2015 10:47:33 +0200 Subject: [PATCH] unpack: improve chmod speed, bug#554084 --- bin/phase-helpers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index efd2cfa..bf3ae1f 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -531,8 +531,8 @@ unpack() { done # Do not chmod '.' since it's probably ${WORKDIR} and PORTAGE_WORKDIR_MODE # should be preserved. - find . -mindepth 1 -maxdepth 1 ! -type l -print0 | \ - ${XARGS} -0 chmod -fR a+rX,u+w,g-w,o-w + find . -mindepth 1 '!' -type l '!' -perm /a+rX,u+w,g-w,o-w -print0 | \ + ${XARGS} -0 chmod -f a+rX,u+w,g-w,o-w } econf() { -- 2.0.5