freebsd-skq/usr.bin/find
jilles 9033033601 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)
2014-01-12 23:17:56 +00:00
..
extern.h Add an option for finding sparse files. 2013-03-03 20:10:56 +00:00
find.1 MFC r260336,r260355: find: Fix -lname and -ilname: 2014-01-12 23:17:56 +00:00
find.c find: Implement real -ignore_readdir_race. 2012-07-25 21:59:10 +00:00
find.h find: Include nanoseconds when comparing timestamps of files. 2013-03-17 22:51:58 +00:00
function.c MFC r260336,r260355: find: Fix -lname and -ilname: 2014-01-12 23:17:56 +00:00
getdate.y Fix world after byacc import: 2012-05-22 16:33:10 +00:00
ls.c Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t. 2012-09-27 23:31:19 +00:00
main.c find: Run when cwd cannot be opened, except with -execdir or -delete. 2013-02-10 18:56:37 +00:00
Makefile Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00
misc.c Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
operator.c Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
option.c Add an option for finding sparse files. 2013-03-03 20:10:56 +00:00