git: f2865d7d5501 - main - pam.d: install hard link with same mode as target
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 24 Nov 2022 13:15:21 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=f2865d7d550161bf4058425a6677a839c065bde4
commit f2865d7d550161bf4058425a6677a839c065bde4
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-11-23 15:34:58 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-11-24 13:14:44 +0000
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
---
lib/libpam/pam.d/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/libpam/pam.d/Makefile b/lib/libpam/pam.d/Makefile
index da30a4682f53..d3f1f487b846 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