Commit 20057aee authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

prevent files named ".nfs[something]" from being displayed when failing

parent 71196790
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1653,6 +1653,9 @@ sub displaylogs {
    foreach $log (sort @logs) {
        # the log file is not "." or ".." and contains more than zero bytes
        if(($log !~ /\.(\.|)$/) && -s "$LOGDIR/$log") {
            if($log =~ /^\.nfs/) {
                next;
            }
            print "== Start of file $log\n";
            displaylogcontent("$LOGDIR/$log");
            print "== End of file $log\n";