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

aruna arunabal at linux.vnet.ibm.com
Tue Dec 6 05:37:59 UTC 2011


On Mon, 2011-12-05 at 15:03 -0500, Dave Anderson wrote:
> 
> ----- 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
> 
Hi Dave,

The attached patch works for me. It prints the file name is unknown. How
about printing the file name is unknown and -f should be used as u
mentioned in the previous mail. 

Regards,
Aruna.




More information about the Crash-utility mailing list