This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/10696] New: tzset_internal doesn't handle changes of timezone file


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]