diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-31 00:10:30 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-31 00:10:30 +0000 |
commit | 0c8831a6b66ee55f31c4690d669e1a1c6f74458f (patch) | |
tree | d2ed3a4dc4c7ac989e009651738033edf975855c | |
parent | 8966679d61510276dbd3399c10b2246cf00c615c (diff) | |
download | portage-0c8831a6b66ee55f31c4690d669e1a1c6f74458f.tar.gz portage-0c8831a6b66ee55f31c4690d669e1a1c6f74458f.tar.bz2 portage-0c8831a6b66ee55f31c4690d669e1a1c6f74458f.zip |
Use find + xargs to avoid a potential 'Argument list too long' from bash. (trunk r5844:5845)
svn path=/main/branches/2.1.2/; revision=5846
-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() { |