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)
Thu, Oct 31, 3:44 AM
Unknown Object (File)
Wed, Oct 30, 10:54 PM
Unknown Object (File)
Tue, Oct 29, 1:39 PM
Unknown Object (File)
Oct 7 2024, 4:08 AM
Unknown Object (File)
Oct 4 2024, 7:25 PM
Unknown Object (File)
Oct 4 2024, 12:53 PM
Unknown Object (File)
Oct 2 2024, 9:26 AM
Unknown Object (File)
Oct 2 2024, 1:56 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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.