From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 20 23:37:55 2005 Return-Path: X-Original-To: freebsd-bugs@FreeBSD.org Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58CBF16A41F for ; Tue, 20 Dec 2005 23:37:55 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCAC943D4C for ; Tue, 20 Dec 2005 23:37:52 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([68.67.248.52]) by mta9.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051220233752.YLPS14388.mta9.adelphia.net@default.chvlva.adelphia.net> for ; Tue, 20 Dec 2005 18:37:52 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 477A2B5CD; Tue, 20 Dec 2005 18:37:58 -0500 (EST) Date: Tue, 20 Dec 2005 18:37:58 -0500 From: Parv To: freebsd-bugs@FreeBSD.org Message-ID: <20051220233758.GC21167@holestein.holy.cow> Mail-Followup-To: freebsd-bugs@FreeBSD.org References: <200512202330.jBKNUAna040615@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512202330.jBKNUAna040615@freefall.freebsd.org> Cc: Subject: Re: bin/90687: [patch] side effect of -delete option of find(1) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 23:37:55 -0000 in message <200512202330.jBKNUAna040615@freefall.freebsd.org>, wrote Parv thusly... > > The following reply was made to PR bin/90687; it has been noted by GNATS. > > From: Parv > To: Anatoli Klassen > Cc: FreeBSD-gnats-submit@FreeBSD.org > Subject: Re: bin/90687: [patch] side effect of -delete option of find(1) > Date: Tue, 20 Dec 2005 18:29:42 -0500 > > in message <20051220145417.1B52D1DA14@26th.net>, > wrote Anatoli Klassen thusly... > > > > > > >Environment: > > System: FreeBSD mercury.26th.net 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Wed Jul 27 12:58:07 CEST 2005 root@mercury.26th.net:/usr/obj/usr/src/sys/MERCURY i386 > > > > >Description: > > If -delete option is used it cancel -L option silently. So find does > > something different as it does with just -print option. The result could be > > deleting of all symbolic links instead of broken ones only even if user has > > already validated this with previous -print run. > > > > >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. ... > Refer to "-L" option description ... Argh, never mind. After sending my previous message, I realized that problem was not misunderstanding of "-L" option. And yes, i did observe the behaviour as described above. Sorry Anatoli K, the bug database, and rest of bug monitoring people. - Parv --