summaryrefslogtreecommitdiffstats
path: root/usr.bin/passwd/Makefile
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-02-26 05:31:52 +0000
committermpp <mpp@FreeBSD.org>1997-02-26 05:31:52 +0000
commit9e28b13e66d0219e1e5d2c7e0ee8f2603ff7aabd (patch)
treecdf3ab7ea1cad5451fa231d867718a891676b4f5 /usr.bin/passwd/Makefile
parent96d17830f3e6bd6ca9560e7933e33691480a4959 (diff)
downloadFreeBSD-src-9e28b13e66d0219e1e5d2c7e0ee8f2603ff7aabd.zip
FreeBSD-src-9e28b13e66d0219e1e5d2c7e0ee8f2603ff7aabd.tar.gz
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 'usr.bin/passwd/Makefile')
-rw-r--r--usr.bin/passwd/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile
index a9fc4cf..49c303c 100644
--- a/usr.bin/passwd/Makefile
+++ b/usr.bin/passwd/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
-# $Id$
+# $Id: Makefile,v 1.23 1997/02/22 19:56:34 peter Exp $
PROG= passwd
SRCS= local_passwd.c yppasswd_private_xdr.c yppasswd_comm.c yp_passwd.c \
@@ -68,8 +68,10 @@ DISTRIBUTION= krb
.endif
beforeinstall:
- [ ! -e ${DESTDIR}${BINDIR}/passwd ] || \
- chflags noschg ${DESTDIR}${BINDIR}/passwd
+.for i in passwd yppasswd
+ [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
+ chflags noschg ${DESTDIR}${BINDIR}/$i
+.endfor
afterinstall:
chflags schg ${DESTDIR}${BINDIR}/passwd
OpenPOWER on IntegriCloud