HomeFreeBSD

rtld: call close(2) after errno is saved

Description

rtld: call close(2) after errno is saved

to prevent obliteration of error value from the original syscall.
Also improve error message for short read.

Submitted by: Konrad Sewiłło-Jopek
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D27864

Details

Provenance
kibAuthored on Jan 1 2021, 10:24 PM
Differential Revision
D27864: Call close(2) after errno is used.
Parents
rG0cdfa4956424: unzip: Sync with NetBSD upstream.
Branches
Unknown
Tags
Unknown