From owner-freebsd-questions@FreeBSD.ORG Wed Nov 14 20:34:16 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 11CD79D3 for ; Wed, 14 Nov 2012 20:34:16 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id B2B408FC14 for ; Wed, 14 Nov 2012 20:34:15 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id qAEKYE6A032344 for ; Wed, 14 Nov 2012 13:34:15 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Message-ID: <50A40046.1070307@dreamchaser.org> Date: Wed, 14 Nov 2012 13:34:14 -0700 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120609 Thunderbird/13.0 MIME-Version: 1.0 To: FreeBSD Mailing List Subject: rm -rf and flags (schg, sunlnk) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Wed, 14 Nov 2012 13:34:15 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 20:34:16 -0000 Assuming one makes a mirror of a file system for backup purposes, then renames the mirror and makes another one, then attempts to remove the original using "rm -rf", the rm will fail if any of the files have the schg or sunlnk bits set. Is there an easy way around this problem other than traversing the whole subtree, finding files with the flags set and unsetting them? thanks, Gary