find . -xtype l
will skip broken links pointing to files in inaccessible directories. You can just search for links to inaccessible files:
find . -type l ! -readable
This works correctly for cyclic symlinks and is also more efficient than using -exec test …
with find
command.