From 3b5017053956d3793524691fbf45b2ab22c6d872 Mon Sep 17 00:00:00 2001 From: Mike Pritchard Date: Wed, 26 Feb 1997 05:31:52 +0000 Subject: 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 --- chpass/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chpass/Makefile') 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 -- cgit v1.2.3-56-ge451