git: 1dbb9994d4dd - main - sh: install hard link with same mode as target
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Nov 2022 20:15:10 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1dbb9994d4dd44357976daedcac7d280e8327382 commit 1dbb9994d4dd44357976daedcac7d280e8327382 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-11-23 15:20:49 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-11-23 20:10:02 +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: 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