aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-09-02 08:22:56 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-09-02 08:22:56 +0000
commitaa730a66bc74696df85b21ec2719c75d8eab8c9f (patch)
treee3ec4cd4b4d0111b9dd9ae291ecce222cd92c78f
parent39d668f1e09ebfc678b3c69c19a0ad0391361c56 (diff)
sh: Add config tag to /.profile
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. PR: 289097 MFC after: 3 days Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D52162
-rw-r--r--bin/sh/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile
index 087dbf40c3bd..4dbbf344bfb5 100644
--- a/bin/sh/Makefile
+++ b/bin/sh/Makefile
@@ -74,6 +74,6 @@ beforeinstallconfig:
LINKMODE=${CONFMODE}
afterinstallconfig:
- ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile
+ ${INSTALL_LINK} ${TAG_ARGS},config ${DESTDIR}/root/.profile ${DESTDIR}/.profile
.include <bsd.prog.mk>