From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6359 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?0JrQvtGA0L7Qu9C10LIg0KHQtdGA0LPQtdC5?= Newsgroups: gmane.linux.lib.musl.general Subject: do_tzset() prevents reusing the same name of a timezone file Date: Sat, 18 Oct 2014 00:20:05 +0400 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf303bf70c3d45f80505a4175a X-Trace: ger.gmane.org 1413577226 20119 80.91.229.3 (17 Oct 2014 20:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2014 20:20:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6372-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 17 22:20:19 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XfE0Z-0005Ix-2i for gllmg-musl@plane.gmane.org; Fri, 17 Oct 2014 22:20:19 +0200 Original-Received: (qmail 5255 invoked by uid 550); 17 Oct 2014 20:20:18 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5245 invoked from network); 17 Oct 2014 20:20:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=8imiVwNy2+fEM6D4ohYdUa8woYgX5xg/qUICtJcP4uE=; b=0IppMqBiua9H01aZjiV3GhLZQVOpFelH6hn1ETRfvJS1La3UyU43F21fJgMwrsOUWq /MjIW3Ka1pj3Zm71ZWqROoBo2uu+IGdfN/NGhQs+8qRzTIRohx3co5EMsQr5yG/x1WSR z0amhGdEImef6OYti5skWonzMVGjtz7i8zFTUVmsbeBi79BsUR8Cl++LHmFHN0eUyjx3 M9VX2qUv0RCWJ79Fsv9gaHxO5fzaUeDthCtxFtNmdOe1+/LSYyV8gdYSIc8adtjRHv/c 88VFKVgrMINFX/nUoy77SbknfGp+nJUhT7EEyD+N9TgZ+J1wwDIU2H4tq+a2ZFuxdxM+ T9iw== X-Received: by 10.42.210.6 with SMTP id gi6mr12754317icb.20.1413577206218; Fri, 17 Oct 2014 13:20:06 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:6359 Archived-At: --20cf303bf70c3d45f80505a4175a Content-Type: text/plain; charset=UTF-8 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; 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? Thanks. --20cf303bf70c3d45f80505a4175a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi, all.

I have a question about do_tzs= et() function implementation (musl v1.1.5). The function has the following = conditions to prevent timezone file remapping

if (old_tz &&a= mp; !strcmp(s, old_tz)) return;
<=
br>
which do not allow to use "TZ" environment variab= le pointing to the same file (e.g. /etc/localtime). But some distros replac= e this file directly or use it as a symlink.

Is this li= mitation a bug or a feature?

Thanks.
--20cf303bf70c3d45f80505a4175a--