rpms/libtirpc/devel libtirpc-0.1.10-dg-unlock.patch, NONE, 1.1 libtirpc-0.1.10-errmess-unlock.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 libtirpc-0.1.7-compile.patch, 1.5, 1.6 libtirpc.spec, 1.36, 1.37 sources, 1.4, 1.5 libtirpc-0.1.7-taddr2uaddr-segflt.patch, 1.1, NONE libtirpc-0.1.9-ipv6-socket.patch, 1.1, NONE libtirpc-0.1.9-rpc_getbroadifs-sizeof.patch, 1.1, NONE libtirpc-0.1.9-taddr2addr-typo.patch, 1.1, NONE libtirpc-0.1.9-warnings-01.patch, 1.1, NONE libtirpc-0.1.9-warnings.patch, 1.1, NONE

Steve Dickson steved at fedoraproject.org
Thu Nov 20 14:39:06 UTC 2008


Author: steved

Update of /cvs/pkgs/rpms/libtirpc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3852

Modified Files:
	.cvsignore libtirpc-0.1.7-compile.patch libtirpc.spec sources 
Added Files:
	libtirpc-0.1.10-dg-unlock.patch 
	libtirpc-0.1.10-errmess-unlock.patch 
Removed Files:
	libtirpc-0.1.7-taddr2uaddr-segflt.patch 
	libtirpc-0.1.9-ipv6-socket.patch 
	libtirpc-0.1.9-rpc_getbroadifs-sizeof.patch 
	libtirpc-0.1.9-taddr2addr-typo.patch 
	libtirpc-0.1.9-warnings-01.patch libtirpc-0.1.9-warnings.patch 
Log Message:
 Updated to latest upstream version: 0.1.10


libtirpc-0.1.10-dg-unlock.patch:

--- NEW FILE libtirpc-0.1.10-dg-unlock.patch ---
commit 7c78a0362fcd3e0749330f11d0fdecb62131a6a3
Author: Steve Dickson <steved at redhat.com>
Date:   Thu Nov 20 08:53:52 2008 -0500

    The clnt_fd_lock mutex lock was not being
    released during an error path in clnt_dg_call.
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

diff --git a/src/clnt_dg.c b/src/clnt_dg.c
index da01c5b..9a574eb 100644
--- a/src/clnt_dg.c
+++ b/src/clnt_dg.c
@@ -402,6 +402,7 @@ get_reply:
 
         fd.fd = cu->cu_fd;
         fd.events = POLLIN;
+        fd.revents = 0;
 	while (total_time > 0) {
 		tv = total_time < nextsend_time ? total_time : nextsend_time;
                 switch (poll(&fd, 1, tv)) {
@@ -455,6 +456,7 @@ get_reply:
 		{
 		  e = (struct sock_extended_err *) CMSG_DATA(cmsg);
 		  cu->cu_error.re_errno = e->ee_errno;
+		  release_fd_lock(cu->cu_fd, mask);
 		  return (cu->cu_error.re_status = RPC_CANTRECV);
 		}
 	}

libtirpc-0.1.10-errmess-unlock.patch:

--- NEW FILE libtirpc-0.1.10-errmess-unlock.patch ---
commit e145633cf10c92aa6f24b8a1a322435b4e874b02
Author: Steve Dickson <steved at redhat.com>
Date:   Thu Nov 20 08:55:31 2008 -0500

    Changed clnt_spcreateerror() to return clearer
    and more concise error messages.
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

diff --git a/src/clnt_perror.c b/src/clnt_perror.c
index 8f53f8e..1c1c705 100644
--- a/src/clnt_perror.c
+++ b/src/clnt_perror.c
@@ -239,7 +239,7 @@ char *
 clnt_spcreateerror(s)
 	const char *s;
 {
-	char *str;
+	char *str, *err;
 	size_t len, i;
 
 	if (s == NULL)
@@ -257,8 +257,21 @@ clnt_spcreateerror(s)
 	switch (rpc_createerr.cf_stat) {
 	case RPC_PMAPFAILURE:
 		(void) strncat(str, " - ", len - 1);
-		(void) strncat(str,
-		    clnt_sperrno(rpc_createerr.cf_error.re_status), len - 4);
+		 err = clnt_sperrno(rpc_createerr.cf_error.re_status);
+		if (err)
+			(void) strncat(str, err+5, len-5);
+		switch(rpc_createerr.cf_error.re_status) {
+		case RPC_CANTSEND:
+		case RPC_CANTRECV:
+			i = strlen(str);
+			len -= i;
+			snprintf(str+i, len, ": errno %d (%s)", 
+				rpc_createerr.cf_error.re_errno,
+				strerror(rpc_createerr.cf_error.re_errno)); 
+			break;
+		default:
+			break;
+		}
 		break;
 
 	case RPC_SYSTEMERROR:


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/libtirpc/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore	10 Jul 2008 17:10:38 -0000	1.4
+++ .cvsignore	20 Nov 2008 14:38:35 -0000	1.5
@@ -1,3 +1,4 @@
 libtirpc-0.1.7.tar.bz2
 libtirpc-0.1.8.tar.bz2
 libtirpc-0.1.9.tar.bz2
+libtirpc-0.1.10.tar.bz2

libtirpc-0.1.7-compile.patch:

Index: libtirpc-0.1.7-compile.patch
===================================================================
RCS file: /cvs/pkgs/rpms/libtirpc/devel/libtirpc-0.1.7-compile.patch,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- libtirpc-0.1.7-compile.patch	10 Jul 2008 17:21:40 -0000	1.5
+++ libtirpc-0.1.7-compile.patch	20 Nov 2008 14:38:35 -0000	1.6
@@ -4,8 +4,8 @@
  
  lib_LTLIBRARIES = libtirpc.la
  
--libtirpc_la_LDFLAGS = -lnsl -lpthread -version-info 1:8:0
-+libtirpc_la_LDFLAGS = -lnsl -lpthread -version-info 1:9:0
+-libtirpc_la_LDFLAGS = -lnsl -lpthread -version-info 1:9:0
++libtirpc_la_LDFLAGS = -lnsl -lpthread -version-info 1:10:0
  
  libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c bindresvport.c clnt_bcast.c \
          clnt_dg.c clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c \


Index: libtirpc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libtirpc/devel/libtirpc.spec,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- libtirpc.spec	28 Oct 2008 15:32:14 -0000	1.36
+++ libtirpc.spec	20 Nov 2008 14:38:35 -0000	1.37
@@ -1,6 +1,6 @@
 Name:		   libtirpc
-Version:		0.1.9
-Release:		7%{?dist}
+Version:		0.1.10
+Release:		1%{?dist}
 Summary:		Transport Independent RPC Library
 Group:		  	System Environment/Libraries
 License:		SISSL
@@ -30,12 +30,8 @@
 Requires:	%{name} = %{version}-%{release}
 Requires(devel):	pkgconfig man
 
-Patch01:  libtirpc-0.1.9-rpc_getbroadifs-sizeof.patch
-Patch02:  libtirpc-0.1.9-ipv6-socket.patch
-Patch03:  libtirpc-0.1.9-taddr2addr-typo.patch
-Patch04:  libtirpc-0.1.9-warnings.patch
-Patch05:  libtirpc-0.1.7-taddr2uaddr-segflt.patch
-Patch06:  libtirpc-0.1.9-warnings-01.patch
+Patch01: libtirpc-0.1.10-dg-unlock.patch
+Patch02: libtirpc-0.1.10-errmess-unlock.patch
 
 Patch100: libtirpc-0.1.7-compile.patch
 
@@ -46,14 +42,7 @@
 
 %prep
 %setup -q
-%patch01	-p1 
-%patch02	-p1
-%patch03	-p1
-%patch04	-p1
-# 468014: rpcbind DoS in the taddr2uaddr XDR_DECODE
-%patch05	-p1
-# 468815: Incorrect declaration in header file 
-%patch06	-p1
+%patch01	-p1
 
 %patch100	-p1
 
@@ -152,10 +141,13 @@
 %{_mandir}/*/*
 
 %changelog
-* Tue Oct 28 2008 Steve Dickson  <steved at redhat.com> 0.1.8-7
+* Thu Nov 20 2008 Steve Dickson  <steved at redhat.com> 0.1.10-1
+- Updated to latest upstream version: 0.1.10
+
+* Tue Oct 28 2008 Steve Dickson  <steved at redhat.com> 0.1.9-7
 - Fixed some incorrect function declarations (bz468815)
 
-* Mon Oct 27 2008 Steve Dickson  <steved at redhat.com> 0.1.8-6
+* Mon Oct 27 2008 Steve Dickson  <steved at redhat.com> 0.1.9-6
 - Fix bad assumption taddr2uaddr processing that 
   caused a segfault (bz468014)
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/libtirpc/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources	10 Jul 2008 17:10:38 -0000	1.4
+++ sources	20 Nov 2008 14:38:35 -0000	1.5
@@ -1 +1 @@
-ee8b0aecadc45e00a2fd654f178c6247  libtirpc-0.1.9.tar.bz2
+4192ad1c683abb7eb2ca77d5fd64e54b  libtirpc-0.1.10.tar.bz2


--- libtirpc-0.1.7-taddr2uaddr-segflt.patch DELETED ---


--- libtirpc-0.1.9-ipv6-socket.patch DELETED ---


--- libtirpc-0.1.9-rpc_getbroadifs-sizeof.patch DELETED ---


--- libtirpc-0.1.9-taddr2addr-typo.patch DELETED ---


--- libtirpc-0.1.9-warnings-01.patch DELETED ---


--- libtirpc-0.1.9-warnings.patch DELETED ---




More information about the fedora-extras-commits mailing list