Respect NO_FSCHG and don't set 'schg' flag on passwd/yppasswd is defined.

MFC after:	2 weeks
This commit is contained in:
Pawel Jakub Dawidek 2012-11-27 16:23:12 +00:00
parent ba60525b3f
commit a2455e276d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243617

View File

@ -19,7 +19,9 @@ beforeinstall:
chflags noschg ${DESTDIR}${BINDIR}/$i || true
.endfor
.if !defined(NO_FSCHG)
afterinstall:
-chflags schg ${DESTDIR}${BINDIR}/passwd
.endif
.include <bsd.prog.mk>