diff options
author | Ed Maste <emaste@FreeBSD.org> | 2022-11-23 15:44:41 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-03-23 14:33:01 +0000 |
commit | 2dd014ca0c742b44b8ace4fc42cc2a78b1204c7d (patch) | |
tree | 11d83fb8c67f4d65bd0af9683e7effd50cbd52ad | |
parent | feb3da25265d519c3353c997cd1fd1bff54267e8 (diff) | |
download | src-2dd014ca0c742b44b8ace4fc42cc2a78b1204c7d.tar.gz src-2dd014ca0c742b44b8ace4fc42cc2a78b1204c7d.zip |
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)
-rw-r--r-- | cddl/usr.sbin/dwatch/libexec/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
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 |