From a3827234b3eea428e06f4bc784228384766b1df7 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 19 Mar 2008 16:41:03 +0000 Subject: (init) make sure absolute paths doesn't contain "//" git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@240105 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- lib/MDV/Snapshot/Common.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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); -- cgit v1.2.1