diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-31 00:07:38 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-31 00:07:38 +0000 |
commit | 4dc080b9ebfd3d4439a6e6d9ff67ddc04a4931d1 (patch) | |
tree | f1c84f1c380f025ab99e4faca5a630135b0d4fa0 | |
parent | 53678ac937a20397d96ce0cff8aa52f333219543 (diff) | |
download | portage-4dc080b9ebfd3d4439a6e6d9ff67ddc04a4931d1.tar.gz portage-4dc080b9ebfd3d4439a6e6d9ff67ddc04a4931d1.tar.bz2 portage-4dc080b9ebfd3d4439a6e6d9ff67ddc04a4931d1.zip |
Use find + xargs to avoid a potential 'Argument list too long' from bash. Thanks to solar for reporting.
svn path=/main/trunk/; revision=5845
-rwxr-xr-x | bin/ebuild.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 3317996b4..aa3c1281f 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -454,11 +454,9 @@ unpack() { ;; esac done - 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} + find . -mindepth 1 -print0 | ${XARGS} -0 chmod -f a+rX,u+w,g-w,o-w } strip_duplicate_slashes() { |