From 01600638cdebef31c85ca8dccca40510ea5d74ce Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 25 Oct 2015 21:48:45 +0000 Subject: [PATCH] MFC r243617 (to fix a longstanding bug): PR: 171779 r243617 (by pjd): Respect NO_FSCHG and don't set 'schg' flag on passwd/yppasswd is defined. git-svn-id: svn://svn.freebsd.org/base/stable/9@289944 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/passwd/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index 7aeee564e..d657c804a 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -19,7 +19,9 @@ beforeinstall: chflags noschg ${DESTDIR}${BINDIR}/$i || true .endfor +.if !defined(NO_FSCHG) afterinstall: -chflags schg ${DESTDIR}${BINDIR}/passwd +.endif .include -- 2.45.0