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
|
@ -1,3 +1,8 @@
|
|||
2005-04-15 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* objcopy.c (copy_file): Issue an error message when attmepting to
|
||||
copy an empty input file.
|
||||
|
||||
2005-04-14 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
|
||||
|
|
|
@ -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…
Reference in a new issue