summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--lib/MDV/Snapshot/Common.pm3
2 files changed, 1 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index 87393a2..2599231 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,3 @@
-- configurator:
- o make sure absolute paths doesn't contain "//"
-
Version 0.5 - 11 March 2008, Thierry Vignaud
- configurator:
diff --git a/lib/MDV/Snapshot/Common.pm b/lib/MDV/Snapshot/Common.pm
index f26c664..1646a3b 100644
--- a/lib/MDV/Snapshot/Common.pm
+++ b/lib/MDV/Snapshot/Common.pm
@@ -34,8 +34,7 @@ our ($config_file, $backup_directory);
sub init {
$config_file = "$::prefix/etc/rsnapshot.conf";
- $backup_directory = (cat_($config_file) =~ /^snapshot_root\s(.*)/m) ? "$::prefix/$1" : '';
- $backup_directory =~ s!/+!/!g;
+ $backup_directory = (cat_($config_file) =~ /^snapshot_root\s(.*)/m) ? "$::prefix$1" : '';
# normalize for glob():
chomp($backup_directory);