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
F156647955: D52162.id.diff
Fri, May 15, 9:26 AM
F156647939: D52162.id.diff
Fri, May 15, 9:26 AM
F156625750: D52162.id160988.diff
Fri, May 15, 5:22 AM
Unknown Object (File)
Thu, May 14, 6:11 PM
Unknown Object (File)
Tue, May 12, 11:53 AM
Unknown Object (File)
Mon, May 4, 9:45 PM
Unknown Object (File)
Mon, Apr 27, 7:44 AM
Unknown Object (File)
Fri, Apr 24, 4:19 AM
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 Not Applicable
Unit
Tests Not Applicable

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