summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-30 23:34:07 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-30 23:34:07 +0000
commit815a8763316c10a23dd14e33803ccd323ba006cc (patch)
treefbd8ac3446e52cdc348dabc1101be1a151f19879
parentFor bug #164532, don't rely on ${USERLAND} since the portage tree might be em... (diff)
downloadportage-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
-rwxr-xr-xbin/ebuild.sh6
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() {