diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-30 23:34:07 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-30 23:34:07 +0000 |
commit | 815a8763316c10a23dd14e33803ccd323ba006cc (patch) | |
tree | fbd8ac3446e52cdc348dabc1101be1a151f19879 /bin | |
parent | fedcac13e7a440edad3f6280f9ec1f1828a258e9 (diff) | |
download | portage-815a8763316c10a23dd14e33803ccd323ba006cc.tar.gz portage-815a8763316c10a23dd14e33803ccd323ba006cc.tar.bz2 portage-815a8763316c10a23dd14e33803ccd323ba006cc.zip |
For bug #164617, don't change permissions on ${WORKDIR} with unpack(). (trunk r5842)
svn path=/main/branches/2.1.2/; revision=5843
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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() { |