rpms/libtirpc/F-9 libtirpc-0.1.7-copying-update.patch, NONE, 1.1 libtirpc-0.1.7-rpc_getbroadifs-typo.patch, NONE, 1.1 libtirpc-0.1.7-sh-arch.patch, NONE, 1.1 libtirpc-0.1.7-taddr2addr-typo.patch, NONE, 1.1 libtirpc-0.1.7-warnings.patch, NONE, 1.1 libtirpc.spec, 1.26, 1.27

Steve Dickson steved at fedoraproject.org
Tue Sep 16 18:12:19 UTC 2008


Author: steved

Update of /cvs/pkgs/rpms/libtirpc/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16302

Modified Files:
	libtirpc.spec 
Added Files:
	libtirpc-0.1.7-copying-update.patch 
	libtirpc-0.1.7-rpc_getbroadifs-typo.patch 
	libtirpc-0.1.7-sh-arch.patch 
	libtirpc-0.1.7-taddr2addr-typo.patch 
	libtirpc-0.1.7-warnings.patch 
Log Message:
- Added super-H(sh3,sh4) architecture support
- Updated COPYING with new license agreement
- Fix incorrect sizeof() in __rpc_getbroadifs
- Fix for taddr2addr conversion bug of local addresses
- Fixed some of warnings in: src/auth_time.c, src/clnt_dg.c and
        src/clnt_raw.c


libtirpc-0.1.7-copying-update.patch:

--- NEW FILE libtirpc-0.1.7-copying-update.patch ---
commit 27434e4368826b5bf1f5c12f4736fe78914b0147
Author: Aurelien Charbon <aurelien.charbon at ext.bull.net>
Date:   Wed Jul 9 14:07:11 2008 -0400

    Updated COPYING with new license agreement.
    
    Signed-off-by: Steve Dickson <steved at dickson.boston.devel.redhat.com>

diff --git a/COPYING b/COPYING
index 050c0fc..8b548d6 100644
--- a/COPYING
+++ b/COPYING
@@ -331,3 +331,29 @@ Standard RFC1833:  Binding Protocols for ONC RPC Version 2
 RFC2078:  Generic Security Service Application Program
 Interface, Version 2 RFC2203:  RPCSEC_GSS Protocol
 Specification RFC2695:  Authentication Mechanisms for ONC RPC
+
+*
+ * Copyright (c) Copyright (c) Bull S.A.  2005  All Rights Reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+

libtirpc-0.1.7-rpc_getbroadifs-typo.patch:

--- NEW FILE libtirpc-0.1.7-rpc_getbroadifs-typo.patch ---
commit 95c8f7227e6b15f2e430d7b87dadc95b2acd4a61
Author: Olaf Kirch <okir at suse.de>
Date:   Tue Sep 2 12:09:39 2008 -0400

    Fix incorrect sizeof() in __rpc_getbroadifs
    
    __rpc_getbroadifs returns bad broadcast addresses on 32bit
    machines because when copying the broadcast addresses, ite
    applies the sizeof() operator to a pointer to a sockaddr,
    rather than the sockaddr itself.
    
    Signed-off-by: Olaf Kirch <okir at suse.de>
    Signed-off-by: Steve Dickson <steved at redhat.com>

diff --git a/src/clnt_bcast.c b/src/clnt_bcast.c
index a96db45..aa2b8f2 100644
--- a/src/clnt_bcast.c
+++ b/src/clnt_bcast.c
@@ -163,7 +163,7 @@ __rpc_getbroadifs(int af, int proto, int socktype, broadlist_t *list)
 		  /*	memcpy(&bip->broadaddr, ifap->ifa_broadaddr,
 			(size_t)ifap->ifa_broadaddr->sa_len);*/
 			memcpy(&bip->broadaddr, ifap->ifa_broadaddr,
-			(size_t)sizeof(ifap->ifa_broadaddr));
+					sizeof(bip->broadaddr));
 			sin = (struct sockaddr_in *)(void *)&bip->broadaddr;
 			sin->sin_port =
 			    ((struct sockaddr_in *)

libtirpc-0.1.7-sh-arch.patch:

--- NEW FILE libtirpc-0.1.7-sh-arch.patch ---
commit 276e782ef9bb9b7c647edb91707c382e5a38c7c8
Author: CHIKAMA Masaki <masaki.chikama at gmail.com>
Date:   Fri Jun 27 14:08:55 2008 -0400

    Added super-H(sh3,sh4) architecture support
    
    Signed-off-by: CHIKAMA Masaki <masaki.chikama at gmail.com>
    Signed-off-by: Steve Dickson <steved at redhat.com>

diff --git a/src/xdr_float.c b/src/xdr_float.c
index d8b22e6..4693ef0 100644
--- a/src/xdr_float.c
+++ b/src/xdr_float.c
@@ -59,7 +59,8 @@
     defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \
     defined(__arm32__) || defined(__ppc__) || defined(__ia64__) || \
     defined(__arm26__) || defined(__sparc64__) || defined(__amd64__) || \
-    defined(__powerpc__) || defined(__s390__) || defined(__arm__)
+    defined(__powerpc__) || defined(__s390__) || defined(__arm__) || \
+    defined(__sh__)
 #include <bits/endian.h>
 #define IEEEFP
 #endif

libtirpc-0.1.7-taddr2addr-typo.patch:

--- NEW FILE libtirpc-0.1.7-taddr2addr-typo.patch ---
commit 9e7ba0c7a02031294fefadfbca42b3dd5f2d841f
Author: Olaf Kirch <okir at suse.de>
Date:   Tue Sep 16 08:46:29 2008 -0400

    Fix for taddr2addr conversion bug of local addresses
    
    When converting af_local socket addresses in taddr2uaddr, an incorrect
    sizeof() would result in a truncated path string. As a result,
    rpcbind will report the local /var/lib/rpcbind address to clients
    as "/v" on a 32bit machine.
    
    Signed-off-by: okir at suse.de
    Signed-off-by: Steve Dickson <steved at redhat.com>

--- libtirpc-0.1.7/src/rpc_generic.c.orig	2005-05-18 01:10:50.000000000 -0400
+++ libtirpc-0.1.7/src/rpc_generic.c	2008-09-16 13:23:25.686884000 -0400
@@ -622,7 +622,7 @@
 		/*	if (asprintf(&ret, "%.*s", (int)(sun->sun_len -
 		    offsetof(struct sockaddr_un, sun_path)),
 		    sun->sun_path) < 0)*/
-		if (asprintf(&ret, "%.*s", (int)(sizeof(sun) -
+		if (asprintf(&ret, "%.*s", (int)(sizeof(*sun) -
 						 offsetof(struct sockaddr_un, sun_path)),
 			     sun->sun_path) < 0)
 

libtirpc-0.1.7-warnings.patch:

--- NEW FILE libtirpc-0.1.7-warnings.patch ---
--- libtirpc-0.1.7/src/clnt_dg.c.orig	2008-09-16 13:35:03.798750000 -0400
+++ libtirpc-0.1.7/src/clnt_dg.c	2008-09-16 13:36:23.703227000 -0400
@@ -306,7 +306,7 @@
 	int nrefreshes = 2;		/* number of times to refresh cred */
 	struct timeval timeout;
         struct pollfd fd;
-	int total_time, nextsend_time, tv;
+	int total_time, nextsend_time, tv=0;
 	struct sockaddr *sa;
 	sigset_t mask;
 	sigset_t newmask;
--- libtirpc-0.1.7/src/clnt_raw.c.orig	2008-09-16 13:35:03.770749000 -0400
+++ libtirpc-0.1.7/src/clnt_raw.c	2008-09-16 13:37:04.258398000 -0400
@@ -84,8 +84,8 @@
 {
 	struct clntraw_private *clp;
 	struct rpc_msg call_msg;
-	XDR *xdrs = &clp->xdr_stream;
-	CLIENT	*client = &clp->client_object;
+	XDR *xdrs;
+	CLIENT	*client;
 
 	mutex_lock(&clntraw_lock);
 	clp = clntraw_private;
@@ -101,6 +101,8 @@
 		clp->_raw_buf = __rpc_rawcombuf;
 		clntraw_private = clp;
 	}
+	xdrs = &clp->xdr_stream;
+	client = &clp->client_object;
 	/*
 	 * pre-serialize the static part of the call msg and stash it away
 	 */
--- libtirpc-0.1.7/src/auth_time.c.orig	2005-05-18 01:10:50.000000000 -0400
+++ libtirpc-0.1.7/src/auth_time.c	2008-09-16 13:38:16.467075000 -0400
@@ -248,7 +248,8 @@
 	nis_server		tsrv;
 	void			(*oldsig)() = NULL; /* old alarm handler */
 	struct sockaddr_in	sin;
-	int			s = RPC_ANYSOCK, len;
+	int			s = RPC_ANYSOCK;
+	socklen_t	len;
 	int			type = 0;
 
 	td->tv_sec = 0;


Index: libtirpc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libtirpc/F-9/libtirpc.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- libtirpc.spec	13 Mar 2008 10:00:41 -0000	1.26
+++ libtirpc.spec	16 Sep 2008 18:11:48 -0000	1.27
@@ -1,6 +1,6 @@
 Name:		   libtirpc
 Version:		0.1.7
-Release:		18%{?dist}
+Release:		19%{?dist}
 Summary:		Transport Independent RPC Library
 Group:		  	System Environment/Libraries
 License:		GPL
@@ -47,6 +47,11 @@
 Patch15: libtirpc-0.1.7-bufoverflow.patch
 Patch16: libtirpc-0.1.7-libtirpc-pc.patch
 Patch17: libtirpc-0.1.7-man-install.patch
+Patch18: libtirpc-0.1.7-sh-arch.patch
+Patch19: libtirpc-0.1.7-copying-update.patch
+Patch20: libtirpc-0.1.7-rpc_getbroadifs-typo.patch
+Patch21: libtirpc-0.1.7-taddr2addr-typo.patch
+Patch22: libtirpc-0.1.7-warnings.patch
 
 Patch100: libtirpc-0.1.7-compile.patch
 
@@ -74,6 +79,11 @@
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
+%patch18 -p1
+%patch19 -p1
+%patch20 -p1
+%patch21 -p1
+%patch22 -p1
 
 %patch100	-p1
 
@@ -176,6 +186,13 @@
 %{_mandir}/*/*
 
 %changelog
+* Tue Sep 16 2008 Steve Dickson  <steved at redhat.com> 0.1.7-19
+- Added super-H(sh3,sh4) architecture support
+- Updated COPYING with new license agreement
+- Fix incorrect sizeof() in __rpc_getbroadifs
+- Fix for taddr2addr conversion bug of local addresses
+- Fixed some of warnings in: src/auth_time.c, src/clnt_dg.c and
+        src/clnt_raw.c
 * Wed Mar 12 2008 Steve Dickson  <steved at redhat.com> 0.1.7-18
 - Install man pages in the 3t section
 




More information about the fedora-extras-commits mailing list