From fda99e87dcd52e3850ddd67306da9cb9ae780e97 Mon Sep 17 00:00:00 2001 From: mpf Date: Fri, 16 Jul 2010 21:44:06 +0000 Subject: [PATCH] Exit strip(1) with an error, if an objfile could not be read. Input and OK millert@ --- gnu/usr.bin/binutils/binutils/objcopy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/binutils/binutils/objcopy.c b/gnu/usr.bin/binutils/binutils/objcopy.c index 181f14440a5..0f7ce85561e 100644 --- a/gnu/usr.bin/binutils/binutils/objcopy.c +++ b/gnu/usr.bin/binutils/binutils/objcopy.c @@ -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(). -- 2.20.1