From d5c569a38433d9fdc5a6729ad0575c666ab1141f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 25 Jun 2014 15:05:21 +0100 Subject: [PATCH] mg-hosts: Allow spaces in setflagexpr exprs Signed-off-by: Ian Jackson --- mg-hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mg-hosts b/mg-hosts index d7223a1..c116688 100755 --- 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_]+}{ -- 2.39.5