HomeFreeBSD

elfdump: limit STDIN to no rights rather than closing it

Description

elfdump: limit STDIN to no rights rather than closing it

Closing stdin/stdout/stderr is often a bad idea as a future open()
can end up with its fd. Leave it open and limit it to no rights
instead.

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D7984

Details

Provenance
emasteAuthored on
Reviewer
cem
Differential Revision
D7984: elfdump: limit STDIN to no rights rather than closing it
Parents
rS306055: Tweak the nvi(1) entry to be less clumsy-sounding.
Branches
Unknown
Tags
Unknown