summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-03 11:13:03 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-03 11:13:03 +0000
commit73c17b163c763f39525bc56560c8ceaa8ddb0e40 (patch)
tree301350c88c50bb829165be276caa9e9e4e7b5537
parent82bf9540f2c1c53b7027dbe5924b6c2032951a11 (diff)
downloadportage-73c17b163c763f39525bc56560c8ceaa8ddb0e40.tar.gz
portage-73c17b163c763f39525bc56560c8ceaa8ddb0e40.tar.bz2
portage-73c17b163c763f39525bc56560c8ceaa8ddb0e40.zip
Use ! -type l to exclude symlinks better. Thanks to marienz.
svn path=/main/trunk/; revision=5878
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 3afa031e2..e0be4c17d 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -456,11 +456,7 @@ unpack() {
done
# Do not chmod '.' since it's probably ${WORKDIR} and PORTAGE_WORKDIR_MODE
# should be preserved.
- local myfile
- find . -mindepth 1 -maxdepth 1 -print0 | while read -d $'\0' myfile; do
- [ -L "${myfile}" ] && continue # find can't exclude symlinks by itself.
- chmod -fR a+rX,u+w,g-w,o-w "${myfile}"
- done
+ find . -mindepth 1 ! -type l -print0 | ${XARGS} chmod -f a+rX,u+w,g-w,o-w
}
strip_duplicate_slashes() {