projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fedcac1
)
For bug #164617, don't change permissions on ${WORKDIR} with unpack(). (trunk r5842)
author
Zac Medico
<zmedico@gentoo.org>
Tue, 30 Jan 2007 23:34:07 +0000
(23:34 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 30 Jan 2007 23:34:07 +0000
(23:34 -0000)
svn path=/main/branches/2.1.2/; revision=5843
bin/ebuild.sh
patch
|
blob
|
history
diff --git
a/bin/ebuild.sh
b/bin/ebuild.sh
index 4bf8de4007d0fbc677fb7504e78fd8be179d3666..3317996b452507117c3ff6c3f5220440e5abc448 100755
(executable)
--- 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() {