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
find.1 Fix SYNOPSIS and usage(). 2008-03-03 08:32:58 +00:00
find.c
find.h
function.c find: do not silently disable -L when -delete is used 2009-05-19 14:23:54 +00:00
getdate.y
ls.c
main.c Fix SYNOPSIS and usage(). 2008-03-03 08:32:58 +00:00
Makefile
misc.c
operator.c
option.c