1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

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

This commit is contained in:
Daniel Stenberg 2004-08-24 09:23:40 +00:00
parent 7119679080
commit 20057aee2e

View File

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