|
|
68c26e |
From 4f58e5abcb336292f78bc6d54e1140b4fdded30b Mon Sep 17 00:00:00 2001
|
|
|
68c26e |
From: Pascal Terjan <pterjan@mandriva.org>
|
|
|
68c26e |
Date: Sat, 14 Feb 2015 21:58:19 +0000
|
|
|
68c26e |
Subject: [PATCH] Fix find-debuginfo.sh for ELF with file warnings
|
|
|
68c26e |
|
|
|
68c26e |
Since the fix for CVE-2014-9620, file will print a "warning" that it
|
|
|
68c26e |
only processed 256 notes:
|
|
|
68c26e |
|
|
|
68c26e |
$ file -N libjvm.so
|
|
|
68c26e |
libjvm.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=63ece24db1a29f9df8231337f741664e0b10fc7f, not stripped, too many notes (256)
|
|
|
68c26e |
|
|
|
68c26e |
And this leads to those messages and a failure:
|
|
|
68c26e |
stat: cannot stat 'libjvm.so,': No such file or directory
|
|
|
68c26e |
stat: cannot stat 'too': No such file or directory
|
|
|
68c26e |
stat: cannot stat 'many': No such file or directory
|
|
|
68c26e |
stat: cannot stat 'notes': No such file or directory
|
|
|
68c26e |
stat: cannot stat '(256)': No such file or directory
|
|
|
68c26e |
---
|
|
|
68c26e |
scripts/find-debuginfo.sh | 2 +-
|
|
|
68c26e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
68c26e |
|
|
|
68c26e |
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
|
|
|
68c26e |
index 57449f7..264fad5 100644
|
|
|
68c26e |
--- a/scripts/find-debuginfo.sh
|
|
|
68c26e |
+++ b/scripts/find-debuginfo.sh
|
|
|
68c26e |
@@ -205,7 +205,7 @@ $strict || strict_error=WARNING
|
|
|
68c26e |
find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
|
|
|
68c26e |
\( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
|
|
|
68c26e |
-print |
|
|
|
68c26e |
-file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped/\1/p' |
|
|
|
68c26e |
+file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped.*/\1/p' |
|
|
|
68c26e |
xargs --no-run-if-empty stat -c '%h %D_%i %n' |
|
|
|
68c26e |
while read nlinks inum f; do
|
|
|
68c26e |
get_debugfn "$f"
|
|
|
68c26e |
--
|
|
|
68c26e |
2.3.0
|
|
|
68c26e |
|