SOURCES: libtirpc-first-proto.patch (NEW) - use first found netid

arekm arekm at pld-linux.org
Wed May 7 23:12:32 CEST 2008


Author: arekm                        Date: Wed May  7 21:12:32 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use first found netid

---- Files affected:
SOURCES:
   libtirpc-first-proto.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/libtirpc-first-proto.patch
diff -u /dev/null SOURCES/libtirpc-first-proto.patch:1.1
--- /dev/null	Wed May  7 23:12:32 2008
+++ SOURCES/libtirpc-first-proto.patch	Wed May  7 23:12:27 2008
@@ -0,0 +1,17 @@
+--- rpcinfo/src/rpc_generic.c~	2008-04-14 21:14:16.000000000 +0200
++++ rpcinfo/src/rpc_generic.c	2008-05-07 23:08:35.591028676 +0200
+@@ -254,12 +254,12 @@
+ 		while ((nconf = getnetconfig(confighandle)) != NULL) {
+ 			if (strcmp(nconf->nc_protofmly, NC_INET) == 0 ||
+ 			    strcmp(nconf->nc_protofmly, NC_INET6) == 0) {
+-				if (strcmp(nconf->nc_proto, NC_TCP) == 0) {
++				if (!netid_tcp && strcmp(nconf->nc_proto, NC_TCP) == 0) {
+ 					netid_tcp = strdup(nconf->nc_netid);
+ 					thr_setspecific(tcp_key,
+ 							(void *) netid_tcp);
+ 				} else
+-				if (strcmp(nconf->nc_proto, NC_UDP) == 0) {
++				if (!netid_udp && strcmp(nconf->nc_proto, NC_UDP) == 0) {
+ 					netid_udp = strdup(nconf->nc_netid);
+ 					thr_setspecific(udp_key,
+ 						(void *) netid_udp);
================================================================


More information about the pld-cvs-commit mailing list