Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 18 Oct 2014 22:20:56 -0400
From: Rich Felker <>
Subject: Re: do_tzset() prevents reusing the same name of a timezone

On Sat, Oct 18, 2014 at 12:20:05AM +0400, Королев Сергей wrote:
> Hi, all.
> I have a question about do_tzset() function implementation (musl v1.1.5).
> The function has the following conditions to prevent timezone file remapping
> if (old_tz && !strcmp(s, old_tz)) return;

All this line does is prevent any reloading if the TZ variable has not
changed since do_tzset() was last called.

> which do not allow to use "TZ" environment variable pointing to the same
> file (e.g. /etc/localtime). But some distros replace this file directly or
> use it as a symlink.
> Is this limitation a bug or a feature?

Can you clarify what problem you're actually experiencing?
/etc/localtime is currently supported/used if TZ is unset or set to
the empty string.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.