mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-09 16:01:19 +01:00
Revert to rev 1.3 since the sed'ing is wrong. Revisit this after 4.0-RELEASE.
This commit is contained in:
parent
7a90a5f1cb
commit
072229cdbb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56697
@ -15,8 +15,8 @@ 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):/'
|
||||
diff $bak/master.passwd.bak /etc/master.passwd |\
|
||||
sed 's/^\([<>] [^:]*\):[^:]*:/\1:(password):/'
|
||||
mv $bak/master.passwd.bak $bak/master.passwd.bak2
|
||||
cp -p /etc/master.passwd $bak/master.passwd.bak
|
||||
fi
|
||||
@ -28,7 +28,7 @@ if [ -f /etc/master.passwd -o -f /etc/group ] ; then
|
||||
|
||||
if cmp -s $bak/group.bak /etc/group; then :; else
|
||||
echo "$host group diffs:"
|
||||
diff -u $bak/group.bak /etc/group
|
||||
diff $bak/group.bak /etc/group
|
||||
mv $bak/group.bak $bak/group.bak2
|
||||
cp -p /etc/group $bak/group.bak
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user