From: mpf Date: Fri, 16 Jul 2010 21:44:06 +0000 (+0000) Subject: Exit strip(1) with an error, if an objfile could not be read. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fda99e87dcd52e3850ddd67306da9cb9ae780e97;p=openbsd Exit strip(1) with an error, if an objfile could not be read. Input and OK millert@ --- 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().