Patch to keep save_old_password() thread-safe when called by the PAM module, since nothing blocks other threads from calling getpwnam in parallel Authors: Steve Langasek Upstream status: to be submitted Index: pam.deb/modules/pam_unix/passverify.c =================================================================== --- pam.deb.orig/modules/pam_unix/passverify.c +++ pam.deb/modules/pam_unix/passverify.c @@ -653,7 +653,7 @@ fclose(opwfile); if (!found) { - pwd = getpwnam(forwho); + pwd = pam_modutil_getpwnam(pamh, forwho); if (pwd == NULL) { err = 1; } else {