diff options
author | Glen Barber <gjb@FreeBSD.org> | 2016-01-28 02:56:30 +0000 |
---|---|---|
committer | Glen Barber <gjb@FreeBSD.org> | 2016-01-28 02:56:30 +0000 |
commit | 5fa65c29f332dfdc48116e81d6a4c23514505bd6 (patch) | |
tree | 4f7802f17476d9b070ad6997e4ded775125de8d7 /chpass/Makefile | |
parent | 6ed28f2c74c8923ec12891be5fde9a2522f330ea (diff) | |
download | pw-darwin-5fa65c29f332dfdc48116e81d6a4c23514505bd6.tar.gz pw-darwin-5fa65c29f332dfdc48116e81d6a4c23514505bd6.tar.zst pw-darwin-5fa65c29f332dfdc48116e81d6a4c23514505bd6.zip |
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
Diffstat (limited to 'chpass/Makefile')
-rw-r--r-- | chpass/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
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 <bsd.prog.mk> |