Exit strip(1) with an error, if an objfile could not be read.
authormpf <mpf@openbsd.org>
Fri, 16 Jul 2010 21:44:06 +0000 (21:44 +0000)
committermpf <mpf@openbsd.org>
Fri, 16 Jul 2010 21:44:06 +0000 (21:44 +0000)
Input and OK millert@

gnu/usr.bin/binutils/binutils/objcopy.c

index 181f144..0f7ce85 100644 (file)
@@ -2367,7 +2367,10 @@ strip_main (int argc, char *argv[])
       char *tmpname;
 
       if (get_file_size (argv[i]) < 1)
-       continue;
+        {
+          status = 1;
+          continue;
+        }
 
       if (preserve_dates)
        /* No need to check the return value of stat().