From 6ce596f6d762ec50fe0bed95f9abe56c7bf088a8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 5 Oct 2020 12:05:38 +0200 Subject: [PATCH] enhance mountpoint regexp --- os/linux/local/mode/mountpoint.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/linux/local/mode/mountpoint.pm b/os/linux/local/mode/mountpoint.pm index b3a131f8c..a25e15555 100644 --- a/os/linux/local/mode/mountpoint.pm +++ b/os/linux/local/mode/mountpoint.pm @@ -87,8 +87,8 @@ sub manage_selection { my @lines = split /\n/, $stdout; foreach my $line (@lines) { - next if ($line !~ /^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+\((.*)\)/); - my ($device, $mountpoint, $type, $options) = ($1, $3, $5, $6); + next if ($line !~ /^\s*(.*?)\s+on\s+(.*?)\s+type\s+(\S+)\s+\((.*)\)/); + my ($device, $mountpoint, $type, $options) = ($1, $2, $3, $4); if (defined($self->{option_results}->{filter_type}) && $self->{option_results}->{filter_type} ne '' && $type !~ /$self->{option_results}->{filter_type}/) {