Bug 66655
| Summary: | dateconfig mangles timezone files when switching timezones | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <jsblanch> | ||||
| Component: | dateconfig | Assignee: | Brent Fox <bfox> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.3 | CC: | matseitz | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2002-06-13 16:24:52 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
Need Real Name
2002-06-13 03:58:08 UTC
I cannot reproduce this behavior. dateconfig never opens any files in
/usr/share/zoneinfo for writing. As you can see from
/usr/share/dateconfig/timezoneBackend.py:
def writeConfig (self, timezoneData):
self.tz, self.utc, self.arc = timezoneData
instPath = ""
fromFile = "/usr/share/zoneinfo/" + self.tz
try:
self.copyFile(fromFile, instPath + "/etc/localtime")
except OSError, (errno, msg):
print (_("Error copying timezone (from %s): %s") % (fromFile, msg))
So we copy the correct timezone file from /usr/share/zoneinfo to /etc/localtime,
but no modification of any files in /usr/share/zoneinfo takes place. I don't
know how to explain the behavior that you're seeing.
my /etc/localtime has become a link pointing back to /usr/share/zoneinfo/America/Los_Angeles. dateconfig does not handle this properly. The link was created by /usr/bin/kcmshell 'clock' when I used it to change the timezone earlier. Oh I see. I will have to fix this. Ok, I've committed a fix for this in CVS. dateconfig wasn't expecting /etc/localtime to be a symbolic link, but dateconfig now removes /etc/localtime and then makes a new symbolic link from /etc/localtime to /usr/share/zoneinfo/$foo A new version should appear in Rawhide soon. However, dateconfig has been ported to gtk2, so there will be a lot of new packages you'll need. Look for dateconfig-1.0.3-1.i386.rpm *** Bug 79429 has been marked as a duplicate of this bug. *** Is a 7.3 compatible release available? Created attachment 108670 [details]
Fix deletion of /usr/share/zoneinfo files
This patch fixed the problem on my system.
|