[Bug 289097] Base upgrades must not lose user customisations in dot files such as /root/.cshrc and /root/.profile
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Sep 2025 20:41:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289097
--- Comment #6 from commit-hook@FreeBSD.org ---
A commit in branch stable/14 references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=f103de98b855e69f1c0e1e90f7a174ae06acf892
commit f103de98b855e69f1c0e1e90f7a174ae06acf892
Author: Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-09-02 08:22:56 +0000
Commit: Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-09-10 20:41:08 +0000
sh, csh: Add config tag to /.profile and /.cshrc
The file /.profile is installed as a hard link to /root/.profile. The
file in /root has the config tag, but the file in / does not, which
causes it to be overwritten by pkg upgrade. Since they're linked, this
also overwrites the file in /root.
Add the config tag to the file in / as well, so pkg treates both links
as config files and won't overwrite them.
For stable/14, also add this to /.cshrc, which is no longer installed
in 15.0.
PR: 289097
MFC after: 3 days
Reviewed by: bapt, emaste
Differential Revision: https://reviews.freebsd.org/D52162
(cherry picked from commit aa730a66bc74696df85b21ec2719c75d8eab8c9f)
sh: Fix non-NO_ROOT installconfig
When building without NO_ROOT, ${TAG_ARGS} is not set, which means we
pass ",config" as an install(1) argument. Only add the config tag if
${TAG_ARGS} is defined to begin with.
Fixes: aa730a66bc74 ("sh: Add config tag to /.profile")
Reported by: bz
(cherry picked from commit b197d2abcb6895d78bc9df8404e374397aa44748)
bin/csh/Makefile | 4 ++--
bin/sh/Makefile | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.