From a4320d143e195060131c595c1e5e7e7ac0eb02e7 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 3 Jan 2023 16:47:35 +0100 Subject: [PATCH] mxmount: Allow "=" in variable values Currently mxmounts fails when we set DEFAULT_EXPORT_OPTIONS=@amd(sync,rw,no_root_squash,no_subtree_check,insecure_locks,sec=sys:mariux) with Unmatched ( in regex; marked by <-- HERE in m/DEFAULT_EXPORT_OPTIONS=@amd( <-- HERE sync,rw,no_root_squash,no_subtree_check,insecure_locks,sec/ at /usr/bin/mxmount line 212. Use non-greedy pattern for ""VAR=value". --- mxmount/mxmount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxmount/mxmount b/mxmount/mxmount index af0926c..3a90016 100755 --- a/mxmount/mxmount +++ b/mxmount/mxmount @@ -221,7 +221,7 @@ sub parse_variables { my ($key, $value); foreach(@lines) { - if(($key, $value) = /^(\S+)=\s*(.*)$/) { + if(($key, $value) = /^(\S+?)=\s*(.*)$/) { $V{$key} = $value; } else { push @invalid,expand_variables($_);