From 1dbb9994d4dd44357976daedcac7d280e8327382 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 23 Nov 2022 10:20:49 -0500 Subject: [PATCH] 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 --- 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 beforeinstallconfig: rm -f ${DESTDIR}/.profile +LINKMODE=${CONFMODE} afterinstallconfig: ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile