>> sub wanted { (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) && -d _ &&
>> system( "/usr/afsws/bin/fs lsmount -dir $name" ); }

juan_leon> sub wanted { (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) &&
juan_leon> $nlink >= 2 && system("/usr/afsws/bin/fs lsmount -dir $name"); }

juan_leon> With this you will avoid going through symbolic links... and avoid
juan_leon> possible endless loops.

juan_leon> "-d $_" will return '1' for a symbolic linked directory.

Then you need both; "-d $_ && $nlink >= 2".
Not everything with more than one link is a directory!

Reply via email to