Date: Tue, 19 May 2009 14:23:54 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/find function.c Message-ID: <200905191423.n4JENv4D054329@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
avg 2009-05-19 14:23:54 UTC FreeBSD src repository Modified files: usr.bin/find function.c Log: SVN rev 192381 on 2009-05-19 14:23:54Z by avg 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) Revision Changes Path 1.61 +5 -5 src/usr.bin/find/function.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905191423.n4JENv4D054329>