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
F131978447: D52162.id161358.diff
Sun, Oct 12, 4:16 PM
Unknown Object (File)
Fri, Oct 10, 10:10 PM
Unknown Object (File)
Fri, Oct 10, 10:10 PM
Unknown Object (File)
Fri, Oct 10, 10:10 PM
Unknown Object (File)
Fri, Oct 10, 4:13 PM
Unknown Object (File)
Fri, Oct 3, 9:55 AM
Unknown Object (File)
Fri, Oct 3, 5:12 AM
Unknown Object (File)
Thu, Oct 2, 11: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 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