Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 2009 00:18:46 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        hackers@freebsd.org, Edwin Groothuis <edwin@FreeBSD.org>
Subject:   Re: svn commit: r193635 - head/etc
Message-ID:  <86ab455gop.fsf@ds4.des.no>
In-Reply-To: <4A3A88BD.5030703@FreeBSD.org> (Doug Barton's message of "Thu, 18 Jun 2009 11:34:37 -0700")
References:  <200906071326.n57DQvSG095104@svn.freebsd.org> <86iqiudm63.fsf@ds4.des.no> <4A3A88BD.5030703@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton <dougb@FreeBSD.org> writes:
> Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
> > Great, now mergemaster blew away my ntp.conf and installed this one
> > instead.  Apparently, it thinks AUTO_UPGRADE means it's fine to
> > overwrite an existing file with a new one...
> Yes, that's exactly what the option means. The problem comes in
> because it's a new file, which means that there is no record of it in
> the mtree file, so it does not show up as "changed."

Hmm, I'm not sure I follow, since I'm not familiar with the innards of
mergemaster, but can you tell it's new?  If you can, you can check if
there's already a file of the same name before installing the new one?

> FWIW, this is one of the reasons that I resisted the idea of using
> mtree for this function, and continue to resist the idea of the -U
> option being the default.

I didn't realize it was the default - but I really, really like it.  It
makes mergemaster a *lot* easier to use.

> There is no way that I can see to have mtree list the files that have
> _not_ changed, which would be the safest way to implement this
> option.

Doesn't sound unsurmountable.

> Meanwhile I'm sure you were able to restore from backups

Of course (not that there was much to restore - just "server ntp.des.no
iburst maxpoll 6"), and now that I know about it, I can list it in
IGNORE_FILES along with motd and printcap.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ab455gop.fsf>