aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2022-11-23 15:34:58 +0000
committerEd Maste <emaste@FreeBSD.org>2023-03-23 14:33:01 +0000
commit6be7ead2acada0a4f89e242cda52934a6cb62cba (patch)
tree457cee6c26e0f6bf54e5db80c7bc3c1247ddf049
parent2dd014ca0c742b44b8ace4fc42cc2a78b1204c7d (diff)
downloadsrc-6be7ead2acada0a4f89e242cda52934a6cb62cba.tar.gz
src-6be7ead2acada0a4f89e242cda52934a6cb62cba.zip
pam.d: install hard link with same mode as target
Previously when using NO_ROOT we recorded a METALOG entry for the pam.d/ftp hard link with a different file mode than the link target pam.d/ftpd, which is not permitted. This change is similar to 1dbb9994d4dd for .profile Sponsored by: The FreeBSD Foundation (cherry picked from commit f2865d7d550161bf4058425a6677a839c065bde4)
-rw-r--r--lib/libpam/pam.d/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpam/pam.d/Makefile b/lib/libpam/pam.d/Makefile
index 1499f916cb17..2b3f89a39717 100644
--- a/lib/libpam/pam.d/Makefile
+++ b/lib/libpam/pam.d/Makefile
@@ -30,6 +30,7 @@ CONFGROUPS+= FTP
FTP+= ftpd
FTPPACKAGE= ftp
+LINKMODE= ${CONFMODE}
afterinstallconfig:
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${CONFDIR}/ftpd ${DESTDIR}${CONFDIR}/ftp
.endif