Properly handle symlinks (hardlinks and .so only files were already ok):
authorschwarze <schwarze@openbsd.org>
Sat, 19 Apr 2014 02:29:12 +0000 (02:29 +0000)
committerschwarze <schwarze@openbsd.org>
Sat, 19 Apr 2014 02:29:12 +0000 (02:29 +0000)
commitf91dff1e6e4ba4a3008724d7b40277abf8682f41
treede82fa9ebc84a481b78680a999b69cf88bbaae94
parent143cedbbb5931c72fe516e48392a9203fe83567d
Properly handle symlinks (hardlinks and .so only files were already ok):
Use the file name of the symlink but the inode number of the file pointed to,
such that we get multiple mlinks records but not multiple mpages records.
Also make sure they do not point outside the tree we are processing.

Issue found by kili@ in desktop-file-edit(1), thanks!
usr.bin/mandoc/mandocdb.c