summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-30 23:28:51 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-30 23:28:51 +0000
commit53678ac937a20397d96ce0cff8aa52f333219543 (patch)
treecb66625c2ff4c803d20af736c67c922731e8dd29 /bin
parentd6419a7081d617e596cc463114b777f90a739d5f (diff)
downloadportage-53678ac937a20397d96ce0cff8aa52f333219543.tar.gz
portage-53678ac937a20397d96ce0cff8aa52f333219543.tar.bz2
portage-53678ac937a20397d96ce0cff8aa52f333219543.zip
For bug #164617, don't change permissions on ${WORKDIR} with unpack().
svn path=/main/trunk/; revision=5842
Diffstat (limited to 'bin')
-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() {