diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-03-19 16:41:03 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-03-19 16:41:03 +0000 |
commit | a3827234b3eea428e06f4bc784228384766b1df7 (patch) | |
tree | 0cb227f9fe5cfb62b0ec3cbeefe9667d1c20fa1a | |
parent | 05bde03de3552f7fbfd6d06c9414b349e0750ad1 (diff) | |
download | draksnapshot-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
-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); |