summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {