Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2023 15:10:28 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2dd014ca0c74 - stable/13 - dwatch: install hard links with same mode as target
Message-ID:  <202303231510.32NFASEA054132@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=2dd014ca0c742b44b8ace4fc42cc2a78b1204c7d

commit 2dd014ca0c742b44b8ace4fc42cc2a78b1204c7d
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-11-23 15:44:41 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-03-23 14:33:01 +0000

    dwatch: install hard links with same mode as target
    
    Previoulsy when using NO_ROOT we recorded METALOG entries for dwatch
    hard links with different file modes than their link targets, which is
    not permitted.
    
    Reviewed by:    bapt
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D37477
    
    (cherry picked from commit 7543a9c0280a0f4262489671936a6e03b9b2c563)
---
 cddl/usr.sbin/dwatch/libexec/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cddl/usr.sbin/dwatch/libexec/Makefile b/cddl/usr.sbin/dwatch/libexec/Makefile
index 581556eeebd0..40d284ae456f 100644
--- a/cddl/usr.sbin/dwatch/libexec/Makefile
+++ b/cddl/usr.sbin/dwatch/libexec/Makefile
@@ -22,6 +22,7 @@ FILES=		chmod \
 		vop_rename \
 		vop_symlink
 
+LINKMODE=	${SHAREMODE}
 LINKS=	${LIBEXECDIR}/dwatch/chmod ${LIBEXECDIR}/dwatch/fchmodat
 LINKS+=	${LIBEXECDIR}/dwatch/chmod ${LIBEXECDIR}/dwatch/lchmod
 LINKS+=	${LIBEXECDIR}/dwatch/io ${LIBEXECDIR}/dwatch/io-done



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303231510.32NFASEA054132>