[many tools] fix bug in previous patch
This commit is contained in:
parent
e6562c6110
commit
702a38f438
@ -37,6 +37,8 @@ base::check_output_file_requirements(string const &path)
|
|||||||
explain_output_file_requirements();
|
explain_output_file_requirements();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We only really want these checks for regular files
|
||||||
|
if (S_ISREG(info.st_mode)) {
|
||||||
if (!info.st_size) {
|
if (!info.st_size) {
|
||||||
cerr << "Zero size output file.\n\n";
|
cerr << "Zero size output file.\n\n";
|
||||||
explain_output_file_requirements();
|
explain_output_file_requirements();
|
||||||
@ -46,6 +48,7 @@ base::check_output_file_requirements(string const &path)
|
|||||||
cerr << "Output file too small.\n\n";
|
cerr << "Output file too small.\n\n";
|
||||||
explain_output_file_requirements();
|
explain_output_file_requirements();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user