This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10696] New: tzset_internal doesn't handle changes of timezone file
- From: "cfriesen at nortel dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 25 Sep 2009 17:17:24 -0000
- Subject: [Bug libc/10696] New: tzset_internal doesn't handle changes of timezone file
- Reply-to: sourceware-bugzilla at sourceware dot org
If the TZ environment variable is changed while a program is running, the next
call to tzset_internal will result in picking up the modified timzeone.
However, if the contents of the timezone file are updated (due to a package
upgrade, for instance) or if it's a symlink and it is changed to point to a
different file while a program is running, the tzset_internal function will not
pick up the modifications because the filename is still the same.
I propose modifying this function to also stat() and lstat() the timezone file
and compare the mtime values against values stored along with the filename. If
either of the timestamps doesn't match the stored value, the timezone file is
re-read.
--
Summary: tzset_internal doesn't handle changes of timezone file
Product: glibc
Version: 2.10
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: cfriesen at nortel dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: n/a
GCC host triplet: n/a
GCC target triplet: n/a
http://sourceware.org/bugzilla/show_bug.cgi?id=10696
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.