git: feb3da25265d - stable/13 - sh: install hard link with same mode as target

From: Ed Maste <>
Date: Thu, 23 Mar 2023 15:10:26 UTC
The branch stable/13 has been updated by emaste:


commit feb3da25265d519c3353c997cd1fd1bff54267e8
Author:     Ed Maste <>
AuthorDate: 2022-11-23 15:20:49 +0000
Commit:     Ed Maste <>
CommitDate: 2023-03-23 14:33:01 +0000

    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:
    (cherry picked from commit 1dbb9994d4dd44357976daedcac7d280e8327382)
 bin/sh/Makefile | 1 +
 1 file changed, 1 insertion(+)

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
 	rm -f ${DESTDIR}/.profile
 	${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile