bin/90687: [patch] side effect of -delete option of find(1)

David Taylor davidt at yadt.co.uk
Thu Dec 22 15:50:07 PST 2005


The following reply was made to PR bin/90687; it has been noted by GNATS.

From: David Taylor <davidt at yadt.co.uk>
To: Anatoli Klassen <anatoli at aksoft.net>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: bin/90687: [patch] side effect of -delete option of find(1)
Date: Thu, 22 Dec 2005 23:49:02 +0000

 On Tue, 20 Dec 2005, Anatoli Klassen wrote:
 > 
 > >How-To-Repeat:
 > 	Create a file, symbolic link to it and a broken symbolic link:
 > 	touch a && ln -s a b && ln -s c d
 > 
 > 	Now detect all broken links:
 > 	find -L . -type l
 > 	- works fine, shows that "d" is broken.
 > 
 > 	Then try to delete the broken links
 > 	find -L . -type l -delete
 > 	- all links are deleted, not only broken ones.
 
 I'm also seeing this problem, and I just noticed that this is
 given as an example in the find(1) manpage:
 
 EXAMPLES
 ..
      find -L /usr/ports/packages -type l -delete
              Delete all broken symbolic links in /usr/ports/packages.
 ..
 
 -- 
 David Taylor


More information about the freebsd-bugs mailing list