From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0F232138D0D for ; Tue, 7 Jul 2015 09:18:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43008E0857; Tue, 7 Jul 2015 09:17:57 +0000 (UTC) Received: from smtp.salomon.at (smtp.salomon.at [193.186.16.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BFF39E084A for ; Tue, 7 Jul 2015 09:17:56 +0000 (UTC) Received: from samail03.wamas.com ([172.28.2.2] helo=mailhost.salomon.at) by smtp.salomon.at with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1ZCP0k-0008Vb-M3; Tue, 07 Jul 2015 11:17:55 +0200 Received: from [172.28.41.34] (helo=s01en24) by mailhost.salomon.at with smtp (Exim 4.77) (envelope-from ) id 1ZCP0j-00088O-4w; Tue, 07 Jul 2015 11:17:54 +0200 Received: by s01en24 (sSMTP sendmail emulation); Tue, 07 Jul 2015 11:17:53 +0200 From: Michael Haubenwallner To: gentoo-portage-dev@lists.gentoo.org Cc: Michael Haubenwallner Subject: [gentoo-portage-dev] [PATCH] unpack: avoid useless chmods to improve speed Date: Tue, 7 Jul 2015 11:17:38 +0200 Message-Id: <1436260658-25879-1-git-send-email-haubi@gentoo.org> X-Mailer: git-send-email 2.0.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: ca14af15-32ef-44e0-aaa1-55222ef82d72 X-Archives-Hash: b16d1bdecc3c39ffc67f376582dff3de X-Gentoo-Bug: 554084 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=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