Re: /usr/share/zoneinfo/localtime !?
*- On 2 Jan, Brian Ristuccia wrote about "Re: /usr/share/zoneinfo/localtime !?"
> On Sun, Jan 02, 2000 at 09:01:07PM +1100, Brian May wrote:
>> >>>>> "Brian" == Brian Ristuccia <brianr@osiris.978.org> writes:
>>
>> Brian> I found that Netscape sends messages with the timestamps in
>> Brian> GMT/UTC instead of the local time zone if
>> Brian> /usr/share/zoneinfo/localtime is not a symlink to
>> Brian> /etc/localtime.
>>
>> It my up-to-date potato, it is a symlink...
>>
>> I have no idea what is correct.
>>
>> Brian> Is this _supposed_ to be a symlink, and if so, what program
>> Brian> is responsible for making it that way? I want to file a
>> Brian> bug, but I'm not sure which program is buggy -- netscape
>> Brian> for requiring /usr/share/zoneinfo/localtime, the C library
>> Brian> perhaps, or some intermediary setup script that forgot to
>> Brian> make the symlink.
>>
>> In potato, I believe libc6 is the responsible package.
>>
>> Brian> GNU date, asclock, and most other programs work fine
>> Brian> without the symlink.
>>
>> What is /usr/share/zoneinfo/localtime on your computer? Does a normal
>> file exist in place of the symlink?
>>
>
> On my Debian Box, it's a symlink to /etc/localtime. Netscape works fine on
> my box. On the box where netscape was reporting the wrong time zone in
> outgoing messages, the file was simply missing. Both are potato.
>
(jumping in here)
Strange, on my potato box:
# ls -l /usr/share/zoneinfo/localtime
ls: /usr/share/zoneinfo/localtime: No such file or directory
# ls -l /etc/localtime
1 -rw-r--r-- 1 root root 269 Dec 29 09:20 /etc/localtime
# md5sum /usr/share/zoneinfo/US/East-Indiana
206c6ccb58d799494a20cf08c9373142 /usr/share/zoneinfo/US/East-Indiana
# md5sum /etc/localtime
206c6ccb58d799494a20cf08c9373142 /etc/localtime
I see that tzconfig has the following line at the end:
rm -f /etc/localtime && ln -s /usr/share/zoneinfo/$timezone /etc/localtime
(I wonder when the last time I ran tzconfig was?)
This seems wrong as it is very likely that localtime will not be
available at boot until all filesystems are mounted(In case something
lower than S50 in /etc/rcS.d might use /etc/localtime) . It would seem
more reasonable to copy the file rather than link it.
Brian Servis
--
------------------------------------------------------------------------
Mechanical Engineering | Never criticize anybody until you
Purdue University | have walked a mile in their shoes,
servis@purdue.edu | because by that time you will be a
http://www.ecn.purdue.edu/~servis | mile away and have their shoes.
Reply to: