aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2022-11-23 15:20:49 +0000
committerEd Maste <emaste@FreeBSD.org>2023-03-23 14:33:01 +0000
commitfeb3da25265d519c3353c997cd1fd1bff54267e8 (patch)
tree1ebd12dff9dbedba078b7806db18293fcd90a3b4
parentcba3becc2003582d35b16a1784a01176c8facb76 (diff)
downloadsrc-feb3da25265d519c3353c997cd1fd1bff54267e8.tar.gz
src-feb3da25265d519c3353c997cd1fd1bff54267e8.zip
sh: install hard link with same mode as target
Previously when using NO_ROOT we recorded a METALOG entry for the /.profile hard link with a different mode than the link target, which is not permitted. Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37476 (cherry picked from commit 1dbb9994d4dd44357976daedcac7d280e8327382)
-rw-r--r--bin/sh/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile
index b074121d0ecd..c61094b06720 100644
--- a/bin/sh/Makefile
+++ b/bin/sh/Makefile
@@ -68,6 +68,7 @@ SUBDIR.${MK_TESTS}+= tests
beforeinstallconfig:
rm -f ${DESTDIR}/.profile
+LINKMODE=${CONFMODE}
afterinstallconfig:
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile