summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/find.1
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 /usr.bin/find/find.1
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 'usr.bin/find/find.1')
-rw-r--r--usr.bin/find/find.14
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
index cffeacf..1abe825 100644
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -31,7 +31,7 @@
.\" @(#)find.1 8.7 (Berkeley) 5/9/95
.\" $FreeBSD$
.\"
-.Dd November 18, 2012
+.Dd January 5, 2014
.Dt FIND 1
.Os
.Sh NAME
@@ -520,6 +520,8 @@ Like
.Ic -name ,
but the contents of the symbolic link are matched instead of the file
name.
+Note that this only matches broken symbolic links
+if symbolic links are being followed.
This is a GNU find extension.
.It Ic -ls
This primary always evaluates to true.
OpenPOWER on IntegriCloud