summaryrefslogtreecommitdiffstats
path: root/usr.bin/passwd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-11-27 16:23:12 +0000
committerpjd <pjd@FreeBSD.org>2012-11-27 16:23:12 +0000
commit4e853aca86643888e4acf30a928ab1fca2db224f (patch)
treee21454288dcaaf59b238eaefb49c3b4b6019d4f1 /usr.bin/passwd
parent852ac8ea6c32b99b57ff4b35e9fa5029932b4973 (diff)
downloadFreeBSD-src-4e853aca86643888e4acf30a928ab1fca2db224f.zip
FreeBSD-src-4e853aca86643888e4acf30a928ab1fca2db224f.tar.gz
Respect NO_FSCHG and don't set 'schg' flag on passwd/yppasswd is defined.
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/passwd')
-rw-r--r--usr.bin/passwd/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile
index 7aeee56..d657c80 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 <bsd.prog.mk>
OpenPOWER on IntegriCloud