HomeFreeBSD

csh: install hard link with same mode as target

Description

csh: install hard link with same mode as target

Previously when using NO_ROOT we recorded METALOG entries for the /.cshrc
hard link with a different file mode than the link target, which is not
permitted.

We cannot just set LINKMODE here as it would also apply to the hard link
for the tcsh binary.

Reviewed by: brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37499

(cherry picked from commit 67d2aaf078e967bb626cf50c53d679aad71aeaf9)

Details

Provenance
emasteAuthored on Nov 23 2022, 5:14 PM
Reviewer
brooks
Differential Revision
D37499: csh: install hard link with same mode as target
Parents
rG6be7ead2acad: pam.d: install hard link with same mode as target
Branches
Unknown
Tags
Unknown