HomeFreeBSD

install: handle -m +X more accurately

Description

install: handle -m +X more accurately

As described by chmod(1), +X in the mode may be used to optionally set
the +x bit if the file is a directory if any of the execute/search bits
are set in the original mode. The latter is not applicable because we
assume -m is a fresh mask, but a functional +X could be useful in the
former case if we're passing along a common INSTALL_MODE that's designed
to install either 0644 or 0755 depending simply on whether it's a
directory or not.

Reviewed by: des
Sponsored by: Klara, Inc.

(cherry picked from commit 767c97c501ae72eb3d74bc23ddf5a1d570d8f841)

Details

Provenance
kevansAuthored on Oct 19 2023, 2:43 AM
Parents
rGd0e771e2fd23: usb: add necessary quirks for the NOREL Systems NS1081 SD reader
Branches
Unknown
Tags
Unknown