freebsd-update: Update /etc/passwd after password db changes
Add -p to pwd_mkdb in order to ensure password db changes are also included in /etc/passwd. PR: 165954, 232921, 229487 Submitted by: Gerald Aryeetey <aryeeteygerald_rogers.com> Reviewed by: jilles MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18827
This commit is contained in:
parent
2a857082dc
commit
9b6591109e
@ -2918,10 +2918,11 @@ Kernel updates have been installed. Please reboot and run
|
||||
install_from_index INDEX-NEW || return 1
|
||||
install_delete INDEX-OLD INDEX-NEW || return 1
|
||||
|
||||
# Rebuild /etc/spwd.db and /etc/pwd.db if necessary.
|
||||
# Rebuild generated pwd files.
|
||||
if [ ${BASEDIR}/etc/master.passwd -nt ${BASEDIR}/etc/spwd.db ] ||
|
||||
[ ${BASEDIR}/etc/master.passwd -nt ${BASEDIR}/etc/pwd.db ]; then
|
||||
pwd_mkdb -d ${BASEDIR}/etc ${BASEDIR}/etc/master.passwd
|
||||
[ ${BASEDIR}/etc/master.passwd -nt ${BASEDIR}/etc/pwd.db ] ||
|
||||
[ ${BASEDIR}/etc/master.passwd -nt ${BASEDIR}/etc/passwd ]; then
|
||||
pwd_mkdb -d ${BASEDIR}/etc -p ${BASEDIR}/etc/master.passwd
|
||||
fi
|
||||
|
||||
# Rebuild /etc/login.conf.db if necessary.
|
||||
|
Loading…
Reference in New Issue
Block a user