Commit d6228809 by Ian Lance Taylor

Don't recursively search symlinks to `.'.

From-SVN: r7271
parent d7715b70
...@@ -112,12 +112,15 @@ do ...@@ -112,12 +112,15 @@ do
# add that dir to $newdirs # add that dir to $newdirs
if [ -d $d1 ] if [ -d $d1 ]
then then
files="$files $d1"
if [ "`ls -ld $d1 | sed -n 's/.*-> //p'`" != "." ]
then
newdirs="$newdirs $d1" newdirs="$newdirs $d1"
fi fi
fi
done done
done done
files="$files $newdirs"
dirs="$newdirs" dirs="$newdirs"
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment