Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

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   
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:
Description Flags
Fedora8 strace crond -n output
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):

How reproducible:
strace crond -n

Steps to Reproduce:
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.