HomeFreeBSD

Fix file modes after extracting.

Description

Fix file modes after extracting.

Some port's archives contains files modes that are a bit too restrictive
for some usage. For example:
BUILD_DEPENDS= ${NONEXISTENT}:foo/bar:configure
When building as a regular user, dependencies are installed/built as
root, so if the archive contains files that have a mode of, say, 600,
they will not be readable by the port requesting the dependency.
This will also fix broken distribution files where directories don't
have the executable bit on.

OSVERSION 1100077 is after base r283997:

Change directory permissions in pre-order.
In this order, it won't try to recurse into a directory for which it
doesn't have permission, before changing that permission.
This follows an existing behavior in other BSDs, linux, OS X.

PR: 213574
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight

Details

Provenance
matAuthored on
Parents
rP424897: - Switch to options helpers
Branches
Unknown
Tags
Unknown