summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Snapshot
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-19 17:09:32 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-19 17:09:32 +0000
commit5c0842c6c5ad9c1b0c585af97eeaa4e758cb676f (patch)
treeaa8527a774d20e1acbfd15dffab68b943f0fb7f2 /lib/MDV/Snapshot
parent337d3ae626f638093a98a4294bd51c198a1b953d (diff)
downloaddraksnapshot-5c0842c6c5ad9c1b0c585af97eeaa4e758cb676f.tar
draksnapshot-5c0842c6c5ad9c1b0c585af97eeaa4e758cb676f.tar.gz
draksnapshot-5c0842c6c5ad9c1b0c585af97eeaa4e758cb676f.tar.bz2
draksnapshot-5c0842c6c5ad9c1b0c585af97eeaa4e758cb676f.tar.xz
draksnapshot-5c0842c6c5ad9c1b0c585af97eeaa4e758cb676f.zip
(init) further simplify
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@240107 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'lib/MDV/Snapshot')
-rw-r--r--lib/MDV/Snapshot/Common.pm3
1 files changed, 1 insertions, 2 deletions
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);