diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | lib/MDV/Snapshot/Common.pm | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -1,3 +1,6 @@ +- 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 f041f66..f26c664 100644 --- a/lib/MDV/Snapshot/Common.pm +++ b/lib/MDV/Snapshot/Common.pm @@ -35,6 +35,7 @@ sub init { $config_file = "$::prefix/etc/rsnapshot.conf"; $backup_directory = (cat_($config_file) =~ /^snapshot_root\s(.*)/m) ? "$::prefix/$1" : ''; + $backup_directory =~ s!/+!/!g; # normalize for glob(): chomp($backup_directory); |