git: feb3da25265d - stable/13 - sh: install hard link with same mode as target
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Mar 2023 15:10:26 UTC
The branch stable/13 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=feb3da25265d519c3353c997cd1fd1bff54267e8
commit feb3da25265d519c3353c997cd1fd1bff54267e8
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-11-23 15:20:49 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
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: https://reviews.freebsd.org/D37476
(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
beforeinstallconfig:
rm -f ${DESTDIR}/.profile
+LINKMODE=${CONFMODE}
afterinstallconfig:
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile