From: Zac Medico Date: Sat, 3 Feb 2007 11:13:03 +0000 (-0000) Subject: Use ! -type l to exclude symlinks better. Thanks to marienz. X-Git-Tag: v2.2_pre1~1758 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=73c17b163c763f39525bc56560c8ceaa8ddb0e40;p=portage.git Use ! -type l to exclude symlinks better. Thanks to marienz. svn path=/main/trunk/; revision=5878 --- 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() {