]> git.proxmox.com Git - pve-access-control.git/commitdiff
fix bug in check_volume_access (fixes vzrestore)
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 13 Feb 2012 08:58:37 +0000 (09:58 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 13 Feb 2012 08:58:37 +0000 (09:58 +0100)
Makefile
PVE/RPCEnvironment.pm
changelog.Debian

index fbe521e56702a8efe15ccb46609a00bde025fa30..7fae63212208db041a6d776c61ce282d3bf03d65 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ RELEASE=2.0
 
 VERSION=1.0
 PACKAGE=libpve-access-control
-PKGREL=8
+PKGREL=9
 
 DESTDIR=
 PREFIX=/usr
index d14104a7cacfb4624d77e6555871b7276a94147e..77196de2f39f5d52be30b4b3f0b2354849dc4404 100644 (file)
@@ -14,6 +14,7 @@ use PVE::INotify;
 use PVE::Cluster;
 use PVE::ProcFSTools;
 use PVE::AccessControl;
+use Cwd 'abs_path';
 use CGI;
 
 # we use this singleton class to pass RPC related environment values
@@ -288,7 +289,8 @@ sub check_volume_access {
     # test if we have read access to volid
 
     my $path;
-    if (my ($sid, $volname) = PVE::Storage::parse_volume_id($volid, 1)) {
+    my ($sid, $volname) = PVE::Storage::parse_volume_id($volid, 1);
+    if ($sid) {
        my ($ownervm, $vtype);
        ($path, $ownervm, $vtype) = PVE::Storage::path($storecfg, $volid);
        if ($vtype eq 'iso' || $vtype eq 'vztmpl') {
index 082c378d8ca670c80f06b1012e4294ca7a62241a..47ce771948e26bf73b2e1b4adffcda0eaf93c603 100644 (file)
@@ -1,3 +1,9 @@
+libpve-access-control (1.0-9) unstable; urgency=low
+
+  * fix bug in check_volume_access (fixes vzrestore)
+
+ -- Proxmox Support Team <support@proxmox.com>  Mon, 13 Feb 2012 09:56:37 +0100
+
 libpve-access-control (1.0-8) unstable; urgency=low
 
   * fix return value for empty ACL list.