Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 452957

Summary: [RHEL5] localtime() does not handle changes to /etc/locatime
Product: Red Hat Enterprise Linux 5 Reporter: Subhendu Ghosh <sghosh>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NEXTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: high    
Version: 5.2CC: drepper, fweimer, ghelleks, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://sources.redhat.com/bugzilla/show_bug.cgi?id=5186
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-04 09:03:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fedora8 strace crond -n output
none
RHEL5 strace crond -n output none

Description Subhendu Ghosh 2008-06-26 09:02:26 UTC
Description of problem:
localtime() cannot handle any changes made to /etc/localtime.

When invoked in a long running program (eg. cron) /etc/localtime is only stat()
at the first invocation of localtime() via tzset(). Subsequent calls to
localtime() do not use tzset() to check if /etc/localtime has changed.

Version-Release number of selected component (if applicable):
glibc-2.5-24

How reproducible:
strace crond -n

Steps to Reproduce:
1. 
2.
3.
  
Actual results:

/etc/localtime is only checked on the first invocation of localtime()

Expected results:

expect /etc/localtime to be checked for every invocation of localtime()

Additional info:

Bug seems to be fixed in upstream glibc and fedora 8 
glibc BZ 5186

Comment 1 Subhendu Ghosh 2008-06-26 17:51:58 UTC
Created attachment 310352 [details]
Fedora8 strace crond -n output

Comment 2 Subhendu Ghosh 2008-06-26 17:52:44 UTC
Created attachment 310353 [details]
RHEL5 strace crond -n output

Comment 4 Jakub Jelinek 2009-03-04 09:03:34 UTC
Will be fixed in RHEL6.