mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Update the sed action to match the change to "diff -u".
Otherwise the encrypted password of any account who's information changed was shown in the daily email to root. Submitted by: jhb
This commit is contained in:
parent
c2b9ed0fc3
commit
c95a5e9ebd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56308
@ -16,7 +16,7 @@ if [ -f /etc/master.passwd -o -f /etc/group ] ; then
|
||||
if cmp -s $bak/master.passwd.bak /etc/master.passwd; then :; else
|
||||
echo "$host passwd diffs:"
|
||||
diff -u $bak/master.passwd.bak /etc/master.passwd |\
|
||||
sed 's/^\([<>] [^:]*\):[^:]*:/\1:(password):/'
|
||||
sed 's/^\([^:]*\):[^:]*:/\1:(password):/'
|
||||
mv $bak/master.passwd.bak $bak/master.passwd.bak2
|
||||
cp -p /etc/master.passwd $bak/master.passwd.bak
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user