From 53678ac937a20397d96ce0cff8aa52f333219543 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 30 Jan 2007 23:28:51 +0000 Subject: For bug #164617, don't change permissions on ${WORKDIR} with unpack(). svn path=/main/trunk/; revision=5842 --- bin/ebuild.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 4bf8de400..3317996b4 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -454,7 +454,11 @@ unpack() { ;; esac done - chmod -Rf a+rX,u+w,g-w,o-w . + local previous_dotglob=$(shopt -p dotglob) + # Do not chmod '.' since it's probably ${WORKDIR} and PORTAGE_WORKDIR_MODE + # should be preserved. + chmod -Rf a+rX,u+w,g-w,o-w * + eval ${previous_dotglob} } strip_duplicate_slashes() { -- cgit v1.2.3-1-g7c22