diff options
author | cjc <cjc@FreeBSD.org> | 2001-11-11 07:15:19 +0000 |
---|---|---|
committer | cjc <cjc@FreeBSD.org> | 2001-11-11 07:15:19 +0000 |
commit | bfc3513ef7b3f6807cc10419264c914f151cfd71 (patch) | |
tree | 6b8784db91a572c0769156a86b9db1f717675ee1 | |
parent | b00f702070d408f3fe648da22fd32d5cc52c14e4 (diff) | |
download | FreeBSD-src-bfc3513ef7b3f6807cc10419264c914f151cfd71.zip FreeBSD-src-bfc3513ef7b3f6807cc10419264c914f151cfd71.tar.gz |
No need to hide stuff in the $FreeBSD$ tag or in other comments like,
Backup passwd and group files:
1c1
< # $FreeBSD:(password):09:07 peter Exp $
---
> # $FreeBSD:(password):27:16 ache Exp $
MFC after: 1 week
-rwxr-xr-x | etc/periodic/daily/200.backup-passwd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/daily/200.backup-passwd b/etc/periodic/daily/200.backup-passwd index 865a197..c312d82 100755 --- a/etc/periodic/daily/200.backup-passwd +++ b/etc/periodic/daily/200.backup-passwd @@ -42,7 +42,7 @@ case "$daily_backup_passwd_enable" in [ $rc -lt 1 ] && rc=1 echo "$host passwd diffs:" diff $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 || rc=3 fi |