Commit 30b6fe64 authored by Mike Hibler's avatar Mike Hibler
Browse files

Fix a nit with parsing mount command output.

When we split the option list, all but the first option would have a
leading space. Fortunately, "nfs" is always the first option.
parent 6a4c2c0b
......@@ -848,7 +848,8 @@ sub isMounted($)
while (<MOUNT>) {
if ($_ =~ /^([-\w\.\/:\(\)]+) on ([-\w\.\/]+) \((.*)\)$/) {
# Search for nfs string in the option list.
foreach my $opt (split(',', $3)) {
# N.B. there may be a space after the comma in the list
foreach my $opt (split(/, ?/, $3)) {
if ($opt eq "nfs" && $2 eq $dir) {
$rval = 1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment