]> git.ipfire.org Git - thirdparty/lldpd.git/commit
Get timezone info before being in the chroot.
authorVincent Bernat <bernat@luffy.cx>
Thu, 15 Oct 2009 10:18:45 +0000 (12:18 +0200)
committerVincent Bernat <bernat@luffy.cx>
Thu, 15 Oct 2009 10:18:45 +0000 (12:18 +0200)
commit4b9a5a2384c8b99352229bddc6ee2f6e69077e5b
treef42243934d87d9b16b176caecd79aceadbb5e9a6
parent2bd9c1c9006930da106982d2fec95f555d04ff19
Get timezone info before being in the chroot.

Depending on the libc, first implicit call to tzset() can be done when
invoking syslog() the first time. In most situation, this is done when
we are in a chroot and therefore, we cannot read /etc/localtime and
get an accurate timezone information. Therefore, we invoke tzset()
before being in chroot.
src/lldpd.c