]> git.pld-linux.org Git - packages/libtirpc.git/commitdiff
- use first found netid
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 7 May 2008 21:12:27 +0000 (21:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libtirpc-first-proto.patch -> 1.1

libtirpc-first-proto.patch [new file with mode: 0644]

diff --git a/libtirpc-first-proto.patch b/libtirpc-first-proto.patch
new file mode 100644 (file)
index 0000000..0e8fd54
--- /dev/null
@@ -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);
This page took 0.090737 seconds and 4 git commands to generate.