From owner-freebsd-stable Tue Jul 9 5:47:41 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0988037B4DE; Tue, 9 Jul 2002 05:47:27 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5946E43E09; Tue, 9 Jul 2002 05:47:25 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (marck@localhost) by woozle.rinet.ru (8.11.6/8.11.6) with ESMTP id g69ClK180532; Tue, 9 Jul 2002 16:47:21 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Tue, 9 Jul 2002 16:47:20 +0400 (MSD) From: Dmitry Morozovsky To: Erik Trulsson , Cc: Eugene Grosbein , Subject: Re: system immutable files make mergemaster look funny In-Reply-To: <20020709121500.GA13059@falcon.midgard.homeip.net> Message-ID: <20020709164425.J77578-100000@woozle.rinet.ru> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 9 Jul 2002, Erik Trulsson wrote: ET> > Do you wish to delete what is left of /var/tmp/temproot? [no] yes ET> > rm: /var/tmp/temproot/var/empty: Operation not permitted ET> > rm: /var/tmp/temproot/var: Directory not empty ET> > rm: /var/tmp/temproot: Directory not empty ET> > *** /var/tmp/temproot has been deleted ET> > ET> > ET> > Obviously, last sentence isn't true :-) ET> ET> Obviously?? It is actually true: /var/tmp/temproot actually is deleted ET> afterwards (at least for a recent -stable). ET> ET> What mergemaster does when deleting is the following: ET> ET> rm -rf ET> chflags -R ET> rm -rf ET> ET> The only problem is that those diagnostics from 'rm' might be a bit ET> misleading and/or annoying but everything works fine. Well maybe then first rm -rf should be redirected to /dev/null? Index: mergemaster.sh =================================================================== RCS file: /home/ncvs/src/usr.sbin/mergemaster/mergemaster.sh,v retrieving revision 1.6.2.14 diff -u -r1.6.2.14 mergemaster.sh --- mergemaster.sh 30 Jun 2002 19:01:35 -0000 1.6.2.14 +++ mergemaster.sh 9 Jul 2002 12:45:39 -0000 @@ -398,7 +398,7 @@ CVS_ID_TAG=FreeBSD delete_temproot () { - rm -rf "${TEMPROOT}" + rm -rf "${TEMPROOT}" >/dev/null 2>&1 chflags -R 0 "${TEMPROOT}" rm -rf "${TEMPROOT}" } Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message