summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-01-20 03:12:57 +0000
committerobrien <obrien@FreeBSD.org>2000-01-20 03:12:57 +0000
commitfb20480840a20d480ddfac3d78644b58b1d8e5eb (patch)
treee51c397f7a85b506b651adfc454e73a13be320f6 /etc/periodic
parent469db80834270a6db24c93a92e4b4444d5654c74 (diff)
downloadFreeBSD-src-fb20480840a20d480ddfac3d78644b58b1d8e5eb.zip
FreeBSD-src-fb20480840a20d480ddfac3d78644b58b1d8e5eb.tar.gz
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
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/200.backup-passwd2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/daily/200.backup-passwd b/etc/periodic/daily/200.backup-passwd
index d9061c0..09f132e 100755
--- a/etc/periodic/daily/200.backup-passwd
+++ b/etc/periodic/daily/200.backup-passwd
@@ -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
OpenPOWER on IntegriCloud