On Tue, Mar 15, 2016 at 11:06:55PM +0100, Benoît GARNIER wrote: > From: Benoit GARNIER <chezbunch+hapr...@gmail.com> > Date: Sun, 27 Mar 2016 03:04:16 +0200 > Subject: [PATCH] BUG/MINOR: log: Don't use strftime() which can clobber > timezone if chrooted > > The strftime() function can call tzset() internally on some platforms. > When haproxy is chrooted, the /etc/localtime file is not found, and some > implementations will clobber the content of the current timezone. > > The GMT offset is computed by diffing the times returned by gmtime_r() and > localtime_r(). These variants are guaranteed to not call tzset() and were > already used in haproxy while chrooted, so they should be safe. > > This patch must be backported to 1.6 and 1.5. (...)
Applied to 1.7 (will backport later). Thanks Benoit! Willy