Issue an error message when attmepting to copy an empty input file.

This commit is contained in:
Nick Clifton 2005-04-15 16:28:52 +00:00
parent e2f4edfd00
commit ac559f4a6d
2 changed files with 6 additions and 0 deletions

View file

@ -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;
}