Issue an error message when attmepting to copy an empty input file.
authorNick Clifton <nickc@redhat.com>
Fri, 15 Apr 2005 16:28:52 +0000 (16:28 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 15 Apr 2005 16:28:52 +0000 (16:28 +0000)
binutils/ChangeLog
binutils/objcopy.c

index 899a117dad42031a19f0c5a3ed34d0e9ef7cccad..a9596ad507029f000feed91cd7ab20f66893ede5 100644 (file)
@@ -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.
index 2d25b1361eee406f0b2229c81b6af6b7659ae645..856b348888b828805c5fd1e5c358f01698e63517 100644 (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;
     }
This page took 0.027899 seconds and 4 git commands to generate.