Don't recursively search symlinks to `.'.

From-SVN: r7271
This commit is contained in:
Ian Lance Taylor 1994-05-11 16:12:15 +00:00
parent d7715b7064
commit d62288093b

View File

@ -112,12 +112,15 @@ do
# add that dir to $newdirs
if [ -d $d1 ]
then
newdirs="$newdirs $d1"
files="$files $d1"
if [ "`ls -ld $d1 | sed -n 's/.*-> //p'`" != "." ]
then
newdirs="$newdirs $d1"
fi
fi
done
done
files="$files $newdirs"
dirs="$newdirs"
done