From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13594 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Kaufmann Newsgroups: gmane.linux.lib.musl.general Subject: Use local time in syslog() function Date: Mon, 14 Jan 2019 10:23:03 +0100 Message-ID: <20190114102303.Horde.cORQXioih5pWeAh2Yr2gztG@webmail.michael-kaufmann.ch> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes X-Trace: blaine.gmane.org 1547457674 21406 195.159.176.226 (14 Jan 2019 09:21:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2019 09:21:14 +0000 (UTC) User-Agent: Horde Application Framework 5 To: musl@lists.openwall.com Original-X-From: musl-return-13610-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jan 14 10:21:10 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1giyQd-0005Ls-3Z for gllmg-musl@m.gmane.org; Mon, 14 Jan 2019 10:21:07 +0100 Original-Received: (qmail 9630 invoked by uid 550); 14 Jan 2019 09:23:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 9598 invoked from network); 14 Jan 2019 09:23:14 -0000 Authentication-Results: lookie.metanet.ch; spf=pass (sender IP is 127.0.0.1) smtp.mailfrom=mail@michael-kaufmann.ch smtp.helo=lookie.metanet.ch Received-SPF: pass (lookie.metanet.ch: connection is authenticated) Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:13594 Archived-At: Hi, I have found a bug in the implementation of syslog(). It should use the local time instead of UTC when sending the message to /dev/log. So in src/misc/syslog.c, the call to gmtime_r() should be replaced with localtime_r(). Regards, Michael