From 73c17b163c763f39525bc56560c8ceaa8ddb0e40 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 3 Feb 2007 11:13:03 +0000 Subject: [PATCH] Use ! -type l to exclude symlinks better. Thanks to marienz. svn path=/main/trunk/; revision=5878 --- bin/ebuild.sh | 6 +----- 1 file changed, 1 insertion(+), 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() { -- 2.26.2