Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 13:50:45 -0700 (PDT)
From:      Doug Barton <DougB@FreeBSD.org>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        Erik Trulsson <ertr1013@student.uu.se>, Eugene Grosbein <eugen@www.svzserv.kemerovo.su>, <stable@FreeBSD.org>
Subject:   Re: system immutable files make mergemaster look funny
Message-ID:  <20020709135037.G24728-100000@zoot.corp.yahoo.com>
In-Reply-To: <20020709164425.J77578-100000@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020709135037.G24728-100000>