summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-01-12 23:17:56 +0000
committerjilles <jilles@FreeBSD.org>2014-01-12 23:17:56 +0000
commit903303360199d3f0f46d10851d99474f4ffd38b3 (patch)
tree7d0b39d28f73ca5c95a2e7167b845ce3991c248d /include
parent97eeccbbec459c522449bc9c8294eed46984d260 (diff)
downloadFreeBSD-src-903303360199d3f0f46d10851d99474f4ffd38b3.zip
FreeBSD-src-903303360199d3f0f46d10851d99474f4ffd38b3.tar.gz
MFC r260336,r260355: find: Fix -lname and -ilname:
* Take into account that readlink() does not add a terminating '\0'. * Do not match symlinks that are followed because of -H or -L. This is explicitly documented in GNU find's info file and is like -type l. * Fix matching symlinks in subdirectories when fts changes directories. As before, symlinks of length PATH_MAX or more are not handled correctly. (These can only be created on other operating systems.) Also, avoid some readlink() calls on files that are obviously not symlinks (because of fts(3) restrictions, not all of them). PR: bin/185393 Submitted by: Ben Reser (parts, original version)
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud