summaryrefslogtreecommitdiffstats
path: root/chpass/Makefile
diff options
context:
space:
mode:
authorMike Pritchard <mpp@FreeBSD.org>1997-02-26 05:31:52 +0000
committerMike Pritchard <mpp@FreeBSD.org>1997-02-26 05:31:52 +0000
commit3b5017053956d3793524691fbf45b2ab22c6d872 (patch)
tree41b159ea0d2f39955a34446821d358240506cfdc /chpass/Makefile
parentcefbdff68d7f8ece450990de2e1ef0fd75868402 (diff)
downloadpw-darwin-3b5017053956d3793524691fbf45b2ab22c6d872.tar.gz
pw-darwin-3b5017053956d3793524691fbf45b2ab22c6d872.tar.zst
pw-darwin-3b5017053956d3793524691fbf45b2ab22c6d872.zip
If an administrator somehow manages to break the hardlinks
on chpass & passwd and turn the links into individual files with the schg flag set, make install will fail to install all of the proper links. Fixed by removing the schg flag on all of the links before installing. Closes PR# 2040. Submitted by: Ph. Charnier <charnier@xp11.frmug.org>
Diffstat (limited to 'chpass/Makefile')
-rw-r--r--chpass/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index 45d2767..cef2d57 100644
--- a/chpass/Makefile
+++ b/chpass/Makefile
@@ -52,8 +52,10 @@ yppasswd_private_xdr.c: ${RPCSRC_PRIV} yppasswd_private.h
${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV}
beforeinstall:
- [ ! -e ${DESTDIR}${BINDIR}/chpass ] || \
- chflags noschg ${DESTDIR}${BINDIR}/chpass
+.for i in chpass chfn chsh ypchpass ypchfn ypchsh
+ [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
+ chflags noschg ${DESTDIR}${BINDIR}/$i
+.endfor
afterinstall:
chflags schg ${DESTDIR}${BINDIR}/chpass