From 5fa65c29f332dfdc48116e81d6a4c23514505bd6 Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Thu, 28 Jan 2016 02:56:30 +0000 Subject: Restore the 'beforeinstall' for chpass(1), so files with the schg flag are handled before being replaced by a symbolic link. Fix passwd(1)/yppasswd(1) schg issue similarly to chpass(1). Note: These are likely temporary fixes while identifying any remaining files that are not marked as 'flags=schg' via mtree(8). Sponsored by: The FreeBSD Foundation --- chpass/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chpass/Makefile') diff --git a/chpass/Makefile b/chpass/Makefile index 96bbd4b..16974e2 100644 --- a/chpass/Makefile +++ b/chpass/Makefile @@ -35,4 +35,11 @@ MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1 .endif +beforeinstall: +.for i in chpass chfn chsh ypchpass ypchfn ypchsh +.if exists(${DESTDIR}${BINDIR}/$i) + -chflags noschg ${DESTDIR}${BINDIR}/$i +.endif +.endfor + .include -- cgit v1.2.3-56-ge451