[17012] in Kerberos_V5_Development
Re: prevalence of "right" time zones without timegm()?
daemon@ATHENA.MIT.EDU (Andrew Bartlett)
Thu Jul 7 19:58:17 2011
From: Andrew Bartlett <abartlet@samba.org>
To: Tom Yu <tlyu@mit.edu>
Date: Fri, 08 Jul 2011 09:58:10 +1000
In-Reply-To: <ldvhb6xk6i8.fsf@cathode-dark-space.mit.edu>
Message-ID: <1310083092.20213.34.camel@ruth>
Mime-Version: 1.0
Cc: tridge@samba.org, lha@samba.org, "krbdev@mit.edu" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
On Thu, 2011-07-07 at 19:36 -0400, Tom Yu wrote:
> Andrew Bartlett <abartlet@samba.org> writes:
>
> > Perhaps I wasn't clear. Microsoft prepared some default Fedora Linux
> > installations for us. They selected the west coat US timezone (as you
> > would). This was not some special setup, it was a default setup. That
> > is why I'm so concerned about the idea of punting this as 'user error'.
>
> Ah. Thank you for that information. This needs further
> investigation. Red Hat people, do you have any insight as to why the
> Fedora installer might do something like that?
Well, it wasn't an installer issue, at the time, I reproduced it locally
by setting a Seattle time-zone. Perhaps there was a bug in the Fedora
tz db at that particular moment, or some other quirk.
> I wouldn't characterize my proposal as punting this as "user error";
> My proposal should make a definite improvement over the current
> situation on systems where timegm() is natively available. That's one
> of the reasons I'm trying to get more information on how often "right"
> time zones get configured (whether by explicit user action or by OS
> installer behavior) on systems that lack a native timegm().
I'm still incredibly wary of having any behaviour that breaks things so
subtly depending on a timezone setting.
If you must try and use the system function (meaning that the internal
implementation is almost never tested) always use a matching pair of
either internal or system timegm() and gmtime() functions.
Andrew Bartlett
--
Andrew Bartlett <abartlet@samba.org>
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev