Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/rpc In __rpc_uaddr2taddr_af, actually return useful...



details:   https://anonhg.NetBSD.org/src/rev/21262aff84b0
branches:  trunk
changeset: 508939:21262aff84b0
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sun Apr 22 20:51:25 2001 +0000

description:
In __rpc_uaddr2taddr_af, actually return useful data for the AF_LOCAL
case. From FreeBSD.

diffstat:

 lib/libc/rpc/rpc_generic.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r dcc7743146ef -r 21262aff84b0 lib/libc/rpc/rpc_generic.c
--- a/lib/libc/rpc/rpc_generic.c        Sun Apr 22 20:47:22 2001 +0000
+++ b/lib/libc/rpc/rpc_generic.c        Sun Apr 22 20:51:25 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpc_generic.c,v 1.6 2001/01/25 22:50:57 jdolecek Exp $ */
+/*     $NetBSD: rpc_generic.c,v 1.7 2001/04/22 20:51:25 fvdl Exp $     */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -746,6 +746,8 @@
                memset(sun, 0, sizeof *sun);
                sun->sun_family = AF_LOCAL;
                strncpy(sun->sun_path, addrstr, sizeof(sun->sun_path) - 1);
+               ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
+               ret->buf = sun;
                break;
        default:
                break;



Home | Main Index | Thread Index | Old Index