rpms/torque/FC-4 torque-2.1.2-pam-getpwnam.patch, NONE, 1.1 torque.spec, 1.8, 1.9

Garrick Staples (garrick) fedora-extras-commits at redhat.com
Thu Aug 3 05:51:43 UTC 2006


Author: garrick

Update of /cvs/extras/rpms/torque/FC-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4590

Modified Files:
	torque.spec 
Added Files:
	torque-2.1.2-pam-getpwnam.patch 
Log Message:
* Wed Aug  2 2006 Garrick Staples <garrick at usc.edu> 2.1.2-2
- fix incorrect _pam_getpwnam_r usage in pam module


torque-2.1.2-pam-getpwnam.patch:

--- NEW FILE torque-2.1.2-pam-getpwnam.patch ---
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 */
 


Index: torque.spec
===================================================================
RCS file: /cvs/extras/rpms/torque/FC-4/torque.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- torque.spec	1 Aug 2006 23:41:01 -0000	1.8
+++ torque.spec	3 Aug 2006 05:51:43 -0000	1.9
@@ -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 @@
 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 @@
 %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 @@
 
 
 %changelog
+* Wed Aug  2 2006 Garrick Staples <garrick at usc.edu> 2.1.2-2
+- fix incorrect _pam_getpwnam_r usage in pam module
+
 * Tue Aug  1 2006 Garrick Staples <garrick at usc.edu> 2.1.2-1
 - bump to 2.1.2
 - fix bz #200830




More information about the fedora-extras-commits mailing list