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.
Rich