Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
donald committed Jan 3, 2023
1 parent 91f3a14 commit a4320d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxmount/mxmount
Expand Up @@ -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($_);
Expand Down

0 comments on commit a4320d1

Please sign in to comment.