From d62288093b034beb51f511510c26e44786a817f9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 11 May 1994 16:12:15 +0000 Subject: [PATCH] Don't recursively search symlinks to `.'. From-SVN: r7271 --- gcc/fixincludes | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/fixincludes b/gcc/fixincludes index 95d48575309..d602bc5e0e2 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -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