[linux-pam] Cleanups of pam_pwhistory code. Make opasswd entry parsing more robust.