[system-tools-backends-clone] Bug 541058 - Copy timezone to /etc/localtime instead of symlinking



commit ef56d32ecfb3878733a84308bc17bb410f3a879c
Author: Steve Langasek <steve langasek ubuntu com>
Date:   Wed Aug 19 10:46:00 2009 +0200

    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.

 Time/TimeDate.pm |    2 +-
 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]