]> xenbits.xensource.com Git - osstest.git/commitdiff
mg-hosts: Allow spaces in setflagexpr exprs
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 25 Jun 2014 14:05:21 +0000 (15:05 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 25 Jun 2014 14:21:49 +0000 (15:21 +0100)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
mg-hosts

index d7223a1577ab9818e54a2fc0f144ad883c57df73..c1166885e7931f0666a8d26d1eba91949abc5c45 100755 (executable)
--- a/mg-hosts
+++ b/mg-hosts
@@ -321,7 +321,7 @@ END
        my ($dst,$section) = @_;
        die unless @$section == 2;
        my ($dstflag, $expr) = @$section;
-       die "$expr $& ?" if $expr =~ m/[^-0-9a-z_&|()!~]/;
+       die "$expr $& ?" if $expr =~ m/[^-0-9a-z_&|()!~ \t]/;
 
        my %inputs;
        $expr =~ s{[-0-9a-z_]+}{