]> git.proxmox.com Git - pve-access-control.git/commitdiff
fix acl group name parser
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Feb 2012 10:57:41 +0000 (11:57 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Feb 2012 10:57:41 +0000 (11:57 +0100)
PVE/AccessControl.pm

index 3cae437bb39d6179bcad847bea42e476a4cd925e..44813a7b04180a95753b85af1444930333bdd5c4 100644 (file)
@@ -938,7 +938,7 @@ sub parse_user_config {
                    }
 
                    foreach my $ug (split_list($uglist)) {
                    }
 
                    foreach my $ug (split_list($uglist)) {
-                       if ($ug =~ m/^@(\w+)$/) {
+                       if ($ug =~ m/^@(\S+)$/) {
                            my $group = $1;
                            if ($cfg->{groups}->{$group}) { # group exists 
                                $cfg->{acl}->{$path}->{groups}->{$group}->{$role} = $propagate;
                            my $group = $1;
                            if ($cfg->{groups}->{$group}) { # group exists 
                                $cfg->{acl}->{$path}->{groups}->{$group}->{$role} = $propagate;