diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2014-01-05 23:01:28 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2014-01-05 23:01:28 +0000 |
commit | e810bef7417cf0b8fb400cb02d2821dc0b8a2cd2 (patch) | |
tree | b4df40028a96c27e13ec1f1ab4e104b18b8803d0 /usr.bin/find/find.1 | |
parent | 02c7dba91926f0279f1e5b170bb481472418c2d0 (diff) | |
download | src-e810bef7417cf0b8fb400cb02d2821dc0b8a2cd2.tar.gz src-e810bef7417cf0b8fb400cb02d2821dc0b8a2cd2.zip |
find: Fix two more problems with -lname and -ilname:
* 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.
Also, avoid some readlink() calls on files that are obviously not symlinks
(because of fts(3) restrictions, not all of them).
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=260355
Diffstat (limited to 'usr.bin/find/find.1')
-rw-r--r-- | usr.bin/find/find.1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index cffeacf7ef51..1abe8251fac2 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. |