[PATCH] Fix junk values when run crash on a .gz file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Aruna Balakrishnaiah <aruna@xxxxxxxxxxxxxxxxxx>

---
 symbols.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/symbols.c b/symbols.c
index 0cd3a01..acd8ad5 100755
--- a/symbols.c
+++ b/symbols.c
@@ -2995,10 +2995,10 @@ is_compressed_kernel(char *file, char **tmp)
 	type = 0;
 
 	if ((header[0] == 0x1f) && (header[1] == 0x8b) && (header[2] == 8)) {
-		if (!STRNEQ((char *)&header[10], "vmlinux") && 
+		if (!STRNEQ(basename(file), "vmlinux") &&
 		    !(st->flags & FORCE_DEBUGINFO)) {
 			error(INFO, "%s: compressed file name does not "
-			    "start with \"vmlinux\"\n", &header[10]);
+			    "start with \"vmlinux\"\n", file);
 			error(CONT, 
 			    "Use \"-f %s\" on command line to override.\n\n",
 				file);

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility


[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux