From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 28 01:49:20 2011 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98225106564A; Mon, 28 Mar 2011 01:49:20 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by mx1.freebsd.org (Postfix) with ESMTP id 206E98FC12; Mon, 28 Mar 2011 01:49:20 +0000 (UTC) Received: from labgw2.phaedrus.sandvine.com (192.168.222.22) by WTL-EXCH-1.sandvine.com (192.168.196.31) with Microsoft SMTP Server id 14.0.694.0; Sun, 27 Mar 2011 21:38:29 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 10332) id 17E2F33C00; Sun, 27 Mar 2011 21:38:29 -0400 (EDT) Date: Sun, 27 Mar 2011 21:38:29 -0400 From: Ed Maste To: David Wolfskill Message-ID: <20110328013829.GA54785@sandvine.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20110327222732.GA1514@albert.catwhisker.org> User-Agent: Mutt/1.4.2.1i Cc: hackers@FreeBSD.org, Doug Barton , edwin@freebsd.org Subject: Re: Keeping /etc/localtime up-to-date X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2011 01:49:20 -0000 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). -Ed