Fix a local change to readelf which resulted in a success exit code for non-existant files.

Resolves: #1990817
This commit is contained in:
Nick Clifton 2021-08-10 11:13:56 +01:00
parent ffc81ff11e
commit f4ad5792af
2 changed files with 15 additions and 1 deletions

View File

@ -121,3 +121,14 @@
free (ba_cache.strtab);
ba_cache.strtab = NULL;
--- binutils.orig/binutils/readelf.c 2021-08-10 10:15:22.088016072 +0100
+++ binutils-2.37/binutils/readelf.c 2021-08-10 10:15:55.567907891 +0100
@@ -21884,7 +21884,7 @@ process_file (char * file_name)
Filedata * filedata = NULL;
struct stat statbuf;
char armag[SARMAG];
- bool ret = true;
+ bool ret = false;
char * name;
char * saved_program_name;

View File

@ -39,7 +39,7 @@
Summary: A GNU collection of binary utilities
Name: binutils%{?name_cross}%{?_with_debug:-debug}
Version: 2.37
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv3+
URL: https://sourceware.org/binutils
@ -880,6 +880,9 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Tue Aug 10 2021 Nick Clifton <nickc@redhat.com> - 2.37-5
- Fix a local change to readelf which resulted in a success exit code for non-existant files. (#1990817)
* Mon Aug 09 2021 Nick Clifton <nickc@redhat.com> - 2.37-4
- Ensure that dir[0] contains pwd in gas generated DWARF-5 directory tables. (#1966987)