]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Apply Aurelien's nfs patch to the dsa-check-libs copy in puppet also
authorPeter Palfrader <peter@palfrader.org>
Fri, 11 Sep 2015 08:20:10 +0000 (10:20 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 11 Sep 2015 08:20:10 +0000 (10:20 +0200)
modules/nagios/files/dsa-check-libs

index 807796f41bd4b7261e3a0f8a77758d01639c7dd1..77b3780594adc1baca8b93b5762855cec846d5c3 100755 (executable)
@@ -171,7 +171,7 @@ LINE: for my $line (@lsof)  {
        my $inode = $fields{i};
        my $path  = $fields{n};
        if ($path =~ m/\.dpkg-/ || $path =~ m/\(deleted\)/ || $path =~ /path inode=/ || $path =~ m#/\.nfs# || $fd eq 'DEL') {
-               my $deleted_in_path = ($path =~ m/\(deleted\)/);
+               my $deleted_in_path = ($path =~ m/\(deleted\)/ || $path =~ m/\.nfs/);
                next if ($deleted_in_path && $fd =~ /^[0-9]*$/); # Ignore deleted files that are open via normal file handles.
                next if ($deleted_in_path && $fd eq 'cwd'); # Ignore deleted directories that we happen to be in.