]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit - etc/periodic/daily/200.backup-passwd
MFC r326074: filter all passwords (not only changed) from periodic passwd backup
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 23 May 2018 14:05:56 +0000 (14:05 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 23 May 2018 14:05:56 +0000 (14:05 +0000)
commit530dd962729baeda05ef0c8ab913ed062c5f3118
treeb66f3dbb68f91766b7cc5b5c5468bcb9df581ddd
parentb185a77ca24005b2d64bdd01609b2fb5aa39870e
MFC r326074: filter all passwords (not only changed) from periodic passwd backup

The periodic 200.backup-passwd script outputs any differences it finds
in master.passwd, relative to the previous backup.  It intends to elide
the encrypted password field, but previously did so only for changed
lines (i.e., those beginning with - or + in the diff).

Apply the sed expression also to unchanged lines to also elide their
passwords.

PR: 223461
Reported by: Andre Albsmeier
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@334097 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/periodic/daily/200.backup-passwd