Issue an error message when attmepting to copy an empty input file.
This commit is contained in:
parent
e2f4edfd00
commit
ac559f4a6d
2 changed files with 6 additions and 0 deletions
|
@ -1701,6 +1701,7 @@ copy_file (const char *input_filename, const char *output_filename,
|
|||
|
||||
if (get_file_size (input_filename) < 1)
|
||||
{
|
||||
non_fatal (_("error: the input file '%s' is empty"), input_filename);
|
||||
status = 1;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue