aboutsummaryrefslogtreecommitdiff
path: root/etc/periodic
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-01-20 03:12:57 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-01-20 03:12:57 +0000
commitc95a5e9ebdbcc77f5d22d2f15598a6f65880b6ea (patch)
treed404a9351cad800da9560b3e865a165ce71e8e62 /etc/periodic
parentc2b9ed0fc37b3599264077463d68421f62846683 (diff)
downloadsrc-c95a5e9ebdbcc77f5d22d2f15598a6f65880b6ea.tar.gz
src-c95a5e9ebdbcc77f5d22d2f15598a6f65880b6ea.zip
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
Notes
Notes: svn path=/head/; revision=56308
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 d9061c0853cf..09f132e686ea 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