diff options
author | gjb <gjb@FreeBSD.org> | 2016-01-28 02:56:30 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2016-01-28 02:56:30 +0000 |
commit | 5294f47313a2d45cb876c50ccb759a2073bc2ea2 (patch) | |
tree | 6c94b01005c4e6b6045fc1502fa02e83166fa447 /usr.bin/chpass | |
parent | 780ae7713f72b471859c0997295ac0c59695c7b4 (diff) | |
download | FreeBSD-src-5294f47313a2d45cb876c50ccb759a2073bc2ea2.zip FreeBSD-src-5294f47313a2d45cb876c50ccb759a2073bc2ea2.tar.gz |
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 'usr.bin/chpass')
-rw-r--r-- | usr.bin/chpass/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index 96bbd4b..16974e2 100644 --- a/usr.bin/chpass/Makefile +++ b/usr.bin/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> |