From: Zac Medico Date: Tue, 30 Jan 2007 23:34:07 +0000 (-0000) Subject: For bug #164617, don't change permissions on ${WORKDIR} with unpack(). (trunk r5842) X-Git-Tag: v2.1.2-r6~6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=815a8763316c10a23dd14e33803ccd323ba006cc;p=portage.git For bug #164617, don't change permissions on ${WORKDIR} with unpack(). (trunk r5842) svn path=/main/branches/2.1.2/; revision=5843 --- 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() {