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

(cherry picked from commit 58135fbd8b68228678eb0ce38566aaf7ab1aad94)

Details

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