Page MenuHomeFreeBSD

csh: install hard link with same mode as target
ClosedPublic

Authored by emaste on Nov 24 2022, 7:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 4:38 AM
Unknown Object (File)
Mon, Apr 22, 4:38 AM
Unknown Object (File)
Mon, Apr 22, 4:20 AM
Unknown Object (File)
Jan 26 2024, 1:30 AM
Unknown Object (File)
Dec 23 2023, 1:22 AM
Unknown Object (File)
Dec 12 2023, 7:01 AM
Unknown Object (File)
Nov 28 2023, 9:29 AM
Unknown Object (File)
Nov 27 2023, 9:02 AM
Subscribers

Details

Summary

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.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

This feels a bit hacky, but I don't think it's worth trying to add per-file LINKMODE support to address this one special case.

Add a comment explaining the slightly hackish use of explicit -m in the link creation.

brooks added a subscriber: brooks.

LGTM

I do wonder if /.cshrc should survive the pkgbase transition.

This revision is now accepted and ready to land.Nov 29 2022, 6:21 PM

I do wonder if /.cshrc should survive the pkgbase transition.

Yes, I am not sure why we install /.cshrc and /.profile. Perhaps I will look at that in a bit.