Keeping /etc/localtime up-to-date
David Wolfskill
david at catwhisker.org
Mon Mar 28 12:19:14 UTC 2011
On Sun, Mar 27, 2011 at 09:38:29PM -0400, Ed Maste wrote:
> On Sun, Mar 27, 2011 at 03:27:32PM -0700, David Wolfskill wrote:
>
> > There are other ways to do it, of course -- e.g., the first time the
> > utility is run, it could actually ask, but then cache the information in
> > some place so it could look there first (and if it finds a cached
> > answer, avoid asking again unless it's told to ignore the cache -- as
> > might be reasonable if the machine is moved to a different time zone.
>
> That's what tzsetup does in HEAD - the name of the selected timezone file
> is stored in /var/db/zoneinfo, and tzsetup -r can be used to copy in an
> updated file:
>
> -r Reinstall the zoneinfo file installed last time. The
> name is obtained from /var/db/zoneinfo.
>
> It looks like this hasn't been MFC'd, although I'm not sure why. The
> change came in from svn rev 198267 by edwin (CC'd).
Thanks for pointing that out -- I had failed to consider that the
behavior might have changed in head.
It does seem to me that an MFC would be useful and harmless, based only
on the above information.
Peace,
david
--
David H. Wolfskill david at catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110328/655e6c9a/attachment.pgp
More information about the freebsd-hackers
mailing list