Hisao, Brian,
Unfortunately I have not received a confirmation that my patch that I
submitted two weeks ago has been committed.
I like to know when it will be present in the yum repository.
If you don't have time, feel free to create an account for me, so I can do
it myself.
Taco
----- Original Message -----
From: "Taco Scargo" <taco (at mark) scargo.nl>
To: <coba-e (at mark) bluequartz.org>
Sent: Friday, November 17, 2006 6:05 PM
Subject: [coba-e:07949] Patch submission
> Hisao, Brian,
>
> Can one of you commit the following patch into the codebase ?
> This applies at least to Centos 4 build. This patch fixes the problem that
> the timezone is reset to the installation default after a reboot, by
> applying the timezone also in /etc/sysconfig/clock
>
> With regards,
>
> Taco
>
> diff -u /usr/sausalito/handlers/base/time/time.pl-orig
> /usr/sausalito/handlers/base/time/time.pl
> --- /usr/sausalito/handlers/base/time/time.pl-orig 2005-11-29
> 15:15:09.0000 00000 +0100
> +++ /usr/sausalito/handlers/base/time/time.pl 2006-11-17
> 18:02:20.000000000 +0 100
> @@ -7,6 +7,7 @@
> $cce->connectfd();
>
> my $localtime = '/etc/localtime';
> +my $clock = '/etc/sysconfig/clock';
> my $oid = $cce->event_oid();
> my $time_obj = $cce->event_object();
> my $old = $cce->event_old();
> @@ -32,6 +33,29 @@
> symlink($link, '/etc/localtime');
> }
>
> + # update /etc/sysconfig/clock
> + my $fn = sub
> + {
> + my ($fin, $fout) = (shift,shift);
> + my ($text) = (shift);
> +
> + while (<$fin>)
> + {
> + if(m/^ZONE/) {
> + # print out the CCE maintained section
> + print $fout "ZONE=\"$text\"\n";
> + } else {
> + print $fout $_;
> + }
> + }
> +
> + return 1;
> + };
> +
> + if (!Sauce::Util::editfile($clock, $fn, $zone)) {
> + $cce->warn("[[base-time.errorWritingConfFile]]");
> + }
> +
> # set the time if necessary.
> my $time = $time_obj->{epochTime};
>
>
>
>