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

Dave Anderson anderson at redhat.com
Mon Dec 5 20:03:07 UTC 2011



----- Original Message -----
>
> So I guess the proper thing to do would be to check for the FNAME bit
> in the FLG byte, and if it's not set, I guess we could either accept
> the file without prejudice, or print a message indicating that the
> name has been stripped and that -f should be used.

I wasn't aware of "gzip -n" or "gzip --no-name" when I wrote the
original function.  How does the attached patch work for you?
Instead of either suggestion above, it will just print a NOTE if
you don't use "-f".

Dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gzip.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111205/44377b1a/attachment.bin>


More information about the Crash-utility mailing list