freebsd-dev/usr.bin/find
Andriy Gapon 05e605b764 find: do not silently disable -L when -delete is used
First of all, current behavior is not documented and confusing,
and it can be very dangerous in the following sequence:
find -L . -type l
find -L . -type l -delete
(the second line is even suggested by find(1)).

Instead simply refuse to proceed when -L and -delete are both used.
A descriptive error message is provided.
The following command can be safely used to remove broken links:
find -L . -type l -print0 | xargs rm -0

To do:		update find(1)
PR:		bin/90687
Obtained from:	Anatoli Klassen <anatoli@aksoft.net>
Approved by:	jhb (mentor)
2009-05-19 14:23:54 +00:00
..
extern.h Implement a number of primaries present in GNU find, but not present 2008-02-23 16:29:04 +00:00
find.1 Fix SYNOPSIS and usage(). 2008-03-03 08:32:58 +00:00
find.c The last execution of -exec {} + is not done if the -exec primary is 2006-05-14 20:23:01 +00:00
find.h Implement a number of primaries present in GNU find, but not present 2008-02-23 16:29:04 +00:00
function.c find: do not silently disable -L when -delete is used 2009-05-19 14:23:54 +00:00
getdate.y Fixes for gcc4.x. 2005-08-25 13:44:02 +00:00
ls.c
main.c Fix SYNOPSIS and usage(). 2008-03-03 08:32:58 +00:00
Makefile
misc.c
operator.c
option.c Implement a number of primaries present in GNU find, but not present 2008-02-23 16:29:04 +00:00