Description of problem: When a path component refers to a symlink that would exceed the MAXSYMLINKS limit, namei complains and drops that component, but it continues following the remainder of the path. Furthermore, it follows symlinks in the remainder of the path without complaining, which can lead to infinite recursion and a segmentation fault. Namei should abort path resolution as soon as the MAXSYMLINKS limit is first exceeded. Additionally, it might be nice if namei enforced the kernel's limit of 8 levels of symlink recursion; maybe this should be a separate request for enhancement. Version-Release number of selected component (if applicable): util-linux-2.13-0.44 How reproducible: Always Steps to Reproduce: $ mkdir foo $ cd foo $ ln -s x x $ namei x/x Actual output: f: x l x -> x l x -> x (18 lines snipped) l x -> x *** EXCEEDED UNIX LIMIT OF SYMLINKS *** l x -> x l x -> x (353 lines snipped) l x -> x Segmentation fault Expected output: f: x l x -> x l x -> x (18 lines snipped) l x -> x *** EXCEEDED UNIX LIMIT OF SYMLINKS ***