From owner-freebsd-stable Tue Jul 9 13:51: 3 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 5286B37B400 for ; Tue, 9 Jul 2002 13:50:56 -0700 (PDT) Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0888043E09 for ; Tue, 9 Jul 2002 13:50:56 -0700 (PDT) (envelope-from DougB@FreeBSD.org) Received: from zoot.corp.yahoo.com (zoot.corp.yahoo.com [216.145.52.89]) by mrout2.yahoo.com (8.11.6/8.11.6/y.out) with ESMTP id g69KomR00567; Tue, 9 Jul 2002 13:50:48 -0700 (PDT) Received: from localhost (dougb@localhost) by zoot.corp.yahoo.com (8.12.5/8.12.5/Submit) with ESMTP id g69KojGq024741; Tue, 9 Jul 2002 13:50:45 -0700 (PDT) Date: Tue, 9 Jul 2002 13:50:45 -0700 (PDT) From: Doug Barton To: Dmitry Morozovsky Cc: Erik Trulsson , Eugene Grosbein , Subject: Re: system immutable files make mergemaster look funny In-Reply-To: <20020709164425.J77578-100000@woozle.rinet.ru> Message-ID: <20020709135037.G24728-100000@zoot.corp.yahoo.com> 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 I'll take a look at this, thanks. Doug On Tue, 9 Jul 2002, Dmitry Morozovsky wrote: > 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 *** > ------------------------------------------------------------------------ > > -- "We have known freedom's price. We have shown freedom's power. And in this great conflict, ... we will see freedom's victory." - George W. Bush, President of the United States State of the Union, January 28, 2002 Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message