Fix getcap utility in recursive mode

When scanning filesystem subtree with symbolic links to parent
directories the old code would get into an infinite loop. This fixes
the code to not follow symbolic links.

Relevant bugzilla entry:
   https://bugzilla.redhat.com/show_bug.cgi?id=454987

[Ed., Minor style modifications by Andrew]
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
1 file changed