Page MenuHomeFreeBSD

sh, csh: Add config tag to profile scripts in /
ClosedPublic

Authored by ivy on Aug 26 2025, 7:19 AM.
Tags
None
Referenced Files
F164946279: D52162.id161358.diff
Wed, Aug 5, 2:01 AM
Unknown Object (File)
Sun, Aug 2, 6:09 AM
Unknown Object (File)
Sun, Aug 2, 2:43 AM
Unknown Object (File)
Sat, Aug 1, 5:15 AM
Unknown Object (File)
Sat, Aug 1, 2:21 AM
Unknown Object (File)
Tue, Jul 28, 5:23 PM
Unknown Object (File)
Tue, Jul 21, 5:31 PM
Unknown Object (File)
Mon, Jul 20, 4:59 PM
Subscribers

Details

Summary

The shell profiles /.profile and /.cshrc are installed as hard links to
/root/.profile resp. /root/.cshrc. The files in /root have the config
tag, but the files in / do not, which causes them to be overwritten by
pkg upgrade. Since they're links, this also overwrites the files in
/root.

Add the config tag to the files in / as well, so pkg treates both links
as config files and won't overwrite them.

This is a direct commit to stable/14 (these files were removed in 15.0).

PR: 289097

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66532
Build 63415: arc lint + arc unit

Event Timeline

ivy requested review of this revision.Aug 26 2025, 7:19 AM
This revision is now accepted and ready to land.Aug 26 2025, 1:22 PM

We should probably apply the bin/sh/Makefile change from here to main as well, with D52161 to follow later after resolving the issue with root's $HOME.

We should probably apply the bin/sh/Makefile change from here to main as well, with D52161 to follow later after resolving the issue with root's $HOME.

yes, i'll make the change for bin/sh in main and then add csh when MFC'ing it. i hope we don't have to release like this though, if only because having /.profile but not /.cshrc feels like we can't make our mind up.

This revision was automatically updated to reflect the committed changes.

i hope we don't have to release like this though, if only because having /.profile but not /.cshrc feels like we can't make our mind up.

Agreed