diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Utils/File.pm | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2006-11-26 Carlos Garnacho <carlosg@gnome.org> + + * Utils/File.pm (get_base_path): use localstatedir. + 2006-11-24 Carlos Garnacho <carlosg@gnome.org> * test-backends: move to test-backends.in diff --git a/Utils/File.pm b/Utils/File.pm index 702b501..0ad887d 100644 --- a/Utils/File.pm +++ b/Utils/File.pm @@ -30,7 +30,6 @@ use File::Copy; use File::Temp; use Carp; - $FILE_READ = 1; $FILE_WRITE = 2; @@ -39,7 +38,7 @@ $FILE_WRITE = 2; sub get_base_path { - my $path = "/var/cache/system-tools-backends"; + my $path = "/$main::localstatedir/cache/system-tools-backends"; chmod (0755, $path); return $path; } |