- fix incorrect _pam_getpwnam_r usage in pam module

This commit is contained in:
Garrick Staples 2006-08-03 05:39:37 +00:00
parent c9da86c724
commit 6850e0d055
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,13 @@
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 */

View File

@ -3,7 +3,7 @@
%define name torque
%define version 2.1.2
#%%define snap 200604251602
%define release 1
%define release 2
# The following options are supported:
# --with server_name=hostname
@ -92,6 +92,7 @@ Source4: xpbs.png
Source5: xpbsmon.png
Source6: README-localhost
Patch1: torque-2.1.0-remove-rpath.path
Patch2: torque-2.1.2-pam-getpwnam.patch
License: Freely redistributable (See PBS_License.txt)
Group: System Environment/Daemons
URL: http://www.clusterresources.com/products/torque/
@ -121,6 +122,7 @@ This package holds just a few shared files and directories.
%prep
%setup -q -n torque-%{version}%{?snap:-snap.%snap}
%patch1 -p1
%patch2 -p1
%__install -pm 644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} .
@ -401,6 +403,9 @@ A simple PAM module to authorize users on PBS MOM nodes with a running job.
%changelog
* Wed Aug 2 2006 Garrick Staples <garrick@usc.edu> 2.1.2-2
- fix incorrect _pam_getpwnam_r usage in pam module
* Tue Aug 1 2006 Garrick Staples <garrick@usc.edu> 2.1.2-1
- bump to 2.1.2
- fix bz #200830