]> git.proxmox.com Git - pve-container.git/commitdiff
normalize mount path
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 10:06:06 +0000 (12:06 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 10:06:06 +0000 (12:06 +0200)
src/PVE/LXC.pm

index 32816a14dceac572ccffa9ee7939ea12db873cb1..40942f9cc21ef659432f2f2dedbb4e0f94ee5411 100644 (file)
@@ -1929,6 +1929,7 @@ sub umount_all {
        return if !$volid || !$mount;
 
        my $mount_path = "$rootdir/$mount";
+       $mount_path =~ s!/+!/!g;
 
        # fixme: test if mounted?
        eval {
@@ -2008,6 +2009,7 @@ sub mountpoint_mount {
     if (defined($rootdir)) {
        $rootdir =~ s!/+$!!;
        $mount_path = "$rootdir/$mount";
+       $mount_path =~ s!/+!/!g;
        File::Path::mkpath($mount_path);
     }