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
Unknown Object (File)
Tue, Jul 21, 5:31 PM
Unknown Object (File)
Mon, Jul 20, 4:59 PM
Unknown Object (File)
Mon, Jul 20, 3:45 PM
Unknown Object (File)
Sun, Jul 19, 1:08 AM
Unknown Object (File)
Sat, Jul 18, 3:44 AM
Unknown Object (File)
Fri, Jul 17, 4:30 PM
Unknown Object (File)
Wed, Jul 15, 6:40 AM
Unknown Object (File)
Wed, Jul 15, 6:40 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