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>
This commit is contained in:
parent
626808a8f2
commit
bac06c08b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23126
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user