HomeFreeBSD

gzip: fix error handling in unxz

Description

gzip: fix error handling in unxz

The result of fstat() was not checked. Furthermore, there was a
redundant check of st.st_size. Fix both.

Reported by: Coverity
MFC after: 1 week
Sponsored by: Dell EMC Isilon

Details

Provenance
vangyzenAuthored on Feb 24 2022, 11:00 PM
Parents
rGd0f4e583bff6: efivar: handle error when reading --fromfile
Branches
Unknown
Tags
Unknown