File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2034,10 +2034,13 @@ _discoverArchiveFormat(ArchiveHandle *AH)
20342034 exit_horribly (modulename , "input file appears to be a text format dump. Please use psql.\n" );
20352035 }
20362036
2037- if (AH -> lookaheadLen != 512 && feof (fh ))
2038- exit_horribly (modulename , "input file does not appear to be a valid archive (too short?)\n" );
2039- else
2040- READ_ERROR_EXIT (fh );
2037+ if (AH -> lookaheadLen != 512 )
2038+ {
2039+ if (feof (fh ))
2040+ exit_horribly (modulename , "input file does not appear to be a valid archive (too short?)\n" );
2041+ else
2042+ READ_ERROR_EXIT (fh );
2043+ }
20412044
20422045 if (!isValidTarHeader (AH -> lookahead ))
20432046 exit_horribly (modulename , "input file does not appear to be a valid archive\n" );
You can’t perform that action at this time.
0 commit comments