summaryrefslogtreecommitdiffstats
path: root/lib/MDV
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-19 16:41:03 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-19 16:41:03 +0000
commita3827234b3eea428e06f4bc784228384766b1df7 (patch)
tree0cb227f9fe5cfb62b0ec3cbeefe9667d1c20fa1a /lib/MDV
parent05bde03de3552f7fbfd6d06c9414b349e0750ad1 (diff)
downloaddraksnapshot-a3827234b3eea428e06f4bc784228384766b1df7.tar
draksnapshot-a3827234b3eea428e06f4bc784228384766b1df7.tar.gz
draksnapshot-a3827234b3eea428e06f4bc784228384766b1df7.tar.bz2
draksnapshot-a3827234b3eea428e06f4bc784228384766b1df7.tar.xz
draksnapshot-a3827234b3eea428e06f4bc784228384766b1df7.zip
(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
Diffstat (limited to 'lib/MDV')
-rw-r--r--lib/MDV/Snapshot/Common.pm1
1 files changed, 1 insertions, 0 deletions
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);