Bug 79429 - zoneinfo files overwritten or truncated to 0, but not after timeconfig is ran
zoneinfo files overwritten or truncated to 0, but not after timeconfig is ran
Status: CLOSED DUPLICATE of bug 66655
Product: Red Hat Linux
Classification: Retired
Component: dateconfig (Show other bugs)
7.3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Brent Fox
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-11 12:07 EST by Gage
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-12-11 12:07:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Gage 2002-12-11 12:07:36 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
When cycling timezones via dateconfig (from one timezone to another, then back
again), the original timezone file becomes 0 length.  $date as a result defaults
to give UTC as the timezone.

However, after I then played with /usr/sbin/timeconfig I am no longer able to
duplicate the error.

I tried this on a couple different computers (RH7.3, dateconfig-0.7.5-7) and it
appears to be consistent.

Version-Release number of selected component (if applicable):
dateconfig-0.7.5-7

How reproducible:
Always

Steps to Reproduce:
1 - change timezone via dateconfig (from AST to PST)
2 - change it back (from PST to AST)

--> /usr/share/zoneinfo/Canada/Atlantic becomes 0 length...

3 - replace corrupted timezone file with the original
4 - run timeconfig (make changes or don't, doesn't matter) and save
5 - change timezone via dateconfig (from AST to PST)
6 - change it back (from PST to AST)

--> /usr/share/zoneinfo/Canada/Atlantic unaltered...



Actual Results:  timezone file is altered, then truncated.  After timeconfig,
all is happy...

Expected Results:  Files stay consistent

Additional info:

[root@localhost Canada]# date
Wed Dec 11 12:44:43 AST 2002
[root@localhost Canada]# ll /usr/share/zoneinfo/Canada/Atlantic
-rw-r--r--    3 root     root         1237 Dec 11 11:24
/usr/share/zoneinfo/Canada/Atlantic
[root@localhost Canada]# dateconfig
Shutting down ntpd:                                        [FAILED]
[root@localhost Canada]# date
Wed Dec 11 08:45:09 PST 2002
[root@localhost Canada]# ll /usr/share/zoneinfo/Canada/Atlantic
-rw-r--r--    3 root     root         1020 Dec 11 08:45
/usr/share/zoneinfo/Canada/Atlantic
[root@localhost Canada]# dateconfig
Shutting down ntpd:                                        [FAILED]
[root@localhost Canada]# date
Wed Dec 11 16:45:37 UTC 2002
[root@localhost Canada]# ll /usr/share/zoneinfo/Canada/Atlantic
-rw-r--r--    3 root     root            0 Dec 11 16:45
/usr/share/zoneinfo/Canada/Atlantic

(replaced Atlantic to original form...)

[root@localhost Canada]# timeconfig
[root@localhost Canada]# date
Wed Dec 11 12:47:44 AST 2002
[root@localhost Canada]# ll /usr/share/zoneinfo/Canada/Atlantic
-rw-r--r--    3 root     root         1237 Dec 11 12:47
/usr/share/zoneinfo/Canada/Atlantic
[root@localhost Canada]# dateconfig
Shutting down ntpd:                                        [FAILED]
[root@localhost Canada]# date
Wed Dec 11 08:48:13 PST 2002
[root@localhost Canada]# ll /usr/share/zoneinfo/Canada/Atlantic
-rw-r--r--    3 root     root         1237 Dec 11 08:47
/usr/share/zoneinfo/Canada/Atlantic
[root@localhost Canada]# dateconfig
Shutting down ntpd:                                        [FAILED]
[root@localhost Canada]# date
Wed Dec 11 12:48:48 AST 2002
[root@localhost Canada]# ll /usr/share/zoneinfo/Canada/Atlantic
-rw-r--r--    3 root     root     1237 Dec 11 12:47
/usr/share/zoneinfo/Canada/Atlantic
Comment 1 Brent Fox 2002-12-11 15:21:08 EST

*** This bug has been marked as a duplicate of 66655 ***

Note You need to log in before you can comment on or make changes to this bug.