From 7d644f1b480f358915de44b9f04139b09bcaea97 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Sep 01 2011 13:32:47 +0000 Subject: Merge branch 'master' into el4 --- diff --git a/myproxy-globus-7129-ptII.patch b/myproxy-globus-7129-ptII.patch new file mode 100644 index 0000000..b6d0265 --- /dev/null +++ b/myproxy-globus-7129-ptII.patch @@ -0,0 +1,30 @@ +Update of /cvsroot/cilogon/myproxy +In directory vz-cvs-4.sog:/tmp/cvs-serv11386 + +Modified Files: + myproxy_creds.c +Log Message: +log if myproxy_creds_retrieve() fails when it shouldn't + + +Index: myproxy_creds.c +=================================================================== +RCS file: /cvsroot/cilogon/myproxy/myproxy_creds.c,v +retrieving revision 1.112 +retrieving revision 1.113 +diff -C2 -d -r1.112 -r1.113 +*** myproxy_creds.c 30 Aug 2011 21:06:58 -0000 1.112 +--- myproxy_creds.c 30 Aug 2011 23:15:17 -0000 1.113 +*************** +*** 1157,1160 **** +--- 1157,1165 ---- + numcreds++; + } ++ } else { ++ verror_put_string("failed to retrieve credentials for " ++ "username \"%s\"", new_cred->username); ++ myproxy_log_verror(); /* internal error; should not happen */ ++ verror_clear(); + } + } + diff --git a/myproxy-globus-7129-ptIII.patch b/myproxy-globus-7129-ptIII.patch new file mode 100644 index 0000000..ef70b44 --- /dev/null +++ b/myproxy-globus-7129-ptIII.patch @@ -0,0 +1,57 @@ + +http://lists.globus.org/pipermail/myproxy-commit/2011-August/000619.html + +Update of /cvsroot/cilogon/myproxy +In directory vz-cvs-4.sog:/tmp/cvs-serv30047 + +Modified Files: + myproxy_creds.c +Log Message: +fix failure handling for myproxy_creds_retrieve() calls in +myproxy_creds_retrieve_all_ex(): +1) when trying to load default credential, it's not an error if we + don't find one - this is a fix to my last commit +2) when scanning directory, if we fail to load a credential that + should be there, don't rely on creds structure that may be cleared, + but instead use stashed values when logging error + + +Index: myproxy_creds.c +=================================================================== +RCS file: /cvsroot/cilogon/myproxy/myproxy_creds.c,v +retrieving revision 1.113 +retrieving revision 1.114 +diff -C2 -d -r1.113 -r1.114 +*** myproxy_creds.c 30 Aug 2011 23:15:17 -0000 1.113 +--- myproxy_creds.c 31 Aug 2011 18:25:32 -0000 1.114 +*************** +*** 1158,1165 **** + } + } else { +! verror_put_string("failed to retrieve credentials for " +! "username \"%s\"", new_cred->username); +! myproxy_log_verror(); /* internal error; should not happen */ +! verror_clear(); + } + } +--- 1158,1162 ---- + } + } else { +! verror_clear(); /* OK if we don't find creds w/o credname */ + } + } +*************** +*** 1215,1220 **** + verror_put_string("failed to retrieve credentials for " + "username \"%s\", credname \"%s\"", +! new_cred->username, +! new_cred->credname ? new_cred->credname : ""); + myproxy_log_verror(); /* internal error; should not happen */ + verror_clear(); +--- 1212,1216 ---- + verror_put_string("failed to retrieve credentials for " + "username \"%s\", credname \"%s\"", +! de->d_name, cname ? cname : ""); + myproxy_log_verror(); /* internal error; should not happen */ + verror_clear(); + diff --git a/myproxy.spec b/myproxy.spec index f74cd1f..d4f8cdd 100644 --- a/myproxy.spec +++ b/myproxy.spec @@ -10,7 +10,7 @@ Name: myproxy Version: 5.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Manage X.509 Public Key Infrastructure (PKI) security credentials Group: System Environment/Daemons @@ -24,6 +24,9 @@ Source3: README.Fedora #http://bugzilla.globus.org/bugzilla/show_bug.cgi?id=7209 Patch0: myproxy-globus-7129.patch +#http://lists.globus.org/pipermail/myproxy-commit/2011-August/000619.html +Patch1: myproxy-globus-7129-ptII.patch +Patch2: myproxy-globus-7129-ptIII.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: globus-gss-assist-devel%{?_isa} > 3 @@ -173,6 +176,8 @@ cp -p %{SOURCE1} . cp -p %{SOURCE2} . cp -p %{SOURCE3} . %patch0 -p0 +%patch1 -p0 +%patch2 -p0 %build rm -f doxygen/Doxyfile* @@ -391,6 +396,10 @@ fi %{_libdir}/pkgconfig/myproxy.pc %changelog +* Thu Sep 1 2011 Steve Traylen - 5.4-4 +- Add myproxy-globus-7129-PartII.patch patch and + myproxy-globus-7129-PartIII.patch patch. + * Wed Aug 31 2011 Steve Traylen - 5.4-3 - Add myproxy-globus-7129.patch patch.