From ff7c230341fc4bd2266b9ddaf39d83683f12c040 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Wed, 15 Jun 2011 20:48:59 +0200 Subject: Cleanups of pam_pwhistory code. Make opasswd entry parsing more robust. * modules/pam_pwhistory/opasswd.c (check_old_password): Do not needlessly call strdupa(). (save_old_password): Avoid memleaks in error paths. Avoid memleak of buf. Make the opasswd entry parsing more robust. * modules/pam_pwhistory/pam_pwhistory.8.xml: Document the special meaning of remember=0. --- modules/pam_pwhistory/pam_pwhistory.8.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/pam_pwhistory/pam_pwhistory.8.xml') diff --git a/modules/pam_pwhistory/pam_pwhistory.8.xml b/modules/pam_pwhistory/pam_pwhistory.8.xml index 7696353f..9e1056b2 100644 --- a/modules/pam_pwhistory/pam_pwhistory.8.xml +++ b/modules/pam_pwhistory/pam_pwhistory.8.xml @@ -105,7 +105,9 @@ The last N passwords for each user are saved in /etc/security/opasswd. - The default is 10. + The default is 10. Value of + 0 makes the module to keep the existing + contents of the opasswd file unchanged. -- cgit v1.2.1