torque/torque-2.1.2-pam-getpwnam.patch
2006-08-03 05:39:37 +00:00

14 lines
569 B
Diff

diff -pruN torque-2.1.2_orig/src/pam/pam_pbssimpleauth.c torque-2.1.2/src/pam/pam_pbssimpleauth.c
--- torque-2.1.2_orig/src/pam/pam_pbssimpleauth.c 2006-07-12 08:25:23.000000000 -0700
+++ torque-2.1.2/src/pam/pam_pbssimpleauth.c 2006-08-02 22:22:27.000000000 -0700
@@ -94,8 +94,7 @@ int pam_sm_authenticate(pam_handle_t *pa
return PAM_SERVICE_ERR;
}
- if (_pam_getpwnam_r(username, &pwd, &ubuf, &ubuflen, &user_pwd) != 0)
- user_pwd = NULL;
+ user_pwd = getpwnam(username);
/* no early returns from this point on because we need to free ubuf */