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
This commit is contained in:
Ed Maste 2022-11-23 10:34:58 -05:00
parent c36de97088
commit f2865d7d55

View File

@ -30,6 +30,7 @@ CONFGROUPS+= FTP
FTP+= ftpd
FTPPACKAGE= ftp
LINKMODE= ${CONFMODE}
afterinstallconfig:
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${CONFDIR}/ftpd ${DESTDIR}${CONFDIR}/ftp
.endif