git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/debian/patches/check_nfsmounts/nfs4_support
blob: 482541f3fd0d972fa55feec1f54f9f11f3b1bfc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/check_nfsmounts/check_nfsmounts
+++ b/check_nfsmounts/check_nfsmounts
@@ -101,7 +101,7 @@
 my @dirs=();
 my %mountmodes=();
 while(my $line=<MTAB>) {
-  if($line =~ /^[^ ]+ [^ ]+ nfs /) {
+  if($line =~ /^[^ ]+ [^ ]+ nfs4? /) {
     my @fields=split(/\s+/,$line);
     my $mountpoint=$fields[1];
     push(@dirs,$mountpoint);