summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@ubuntu.com>2009-08-19 10:46:00 +0200
committerMilan Bouchet-Valat <nalimilan@club.fr>2009-08-19 10:46:00 +0200
commitef56d32ecfb3878733a84308bc17bb410f3a879c (patch)
treeaa0a89146b5c81cf08c873e3e5499e5ad15aa881
parentd3ce5e5f0f210a2f9c868526257a0e1444f504a2 (diff)
Bug 541058 - Copy timezone to /etc/localtime instead of symlinking
This allows us to support /etc/ and /usr/ on sepearate partitions. Concern is that packaging tools should now always update /etc/localtime if they update the timezone data; else, data may get outdated.
-rw-r--r--Time/TimeDate.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Time/TimeDate.pm b/Time/TimeDate.pm
index 195bc06..19c5364 100644
--- a/Time/TimeDate.pm
+++ b/Time/TimeDate.pm
@@ -144,7 +144,7 @@ sub set_timezone
unlink $localtime; # Important, since it might be a symlink.
&Utils::Report::enter ();
- $res = symlink ($tz, $localtime);
+ $res = copy ($tz, $localtime);
&Utils::Report::leave ();
return -1 unless $res;
return 0;