/[base]
ViewVC logotype

Revision 192381


Jump to revision: Previous Next
Author: avg
Date: Tue May 19 14:23:54 2009 UTC (15 years, 1 month ago)
Changed paths: 1
Log Message:
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)


Changed paths

Path Details
Directoryhead/usr.bin/find/function.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27