From 50f301a819f48c6e64232f2cd22d8e77f59d0f29 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 8 Apr 1999 02:10:39 +0000 Subject: 1999-04-01 Thorsten Kukuk * sunrpc/Versions: Add new xdr functions to GLIBC_2.1.1 * sunrpc/xdr.c: Add xdr_hyper, xdr_u_hyper, xdr_longlong_t and xdr_u_longlong_t. Based on patch from Dan Shechter . * sunrpc/xdr_intXX_t.c: Implement xdr_int64_t, xdr_uint64_t * sunrpc/rpc/xdr.h: Add prototypes for new xdr functions. * nis/nis_lookup.c (nis_lookup): Don't overwrite RPC error code. --- nis/nis_lookup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nis') diff --git a/nis/nis_lookup.c b/nis/nis_lookup.c index e194b97..4eed61e 100644 --- a/nis/nis_lookup.c +++ b/nis/nis_lookup.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk , 1997. @@ -103,6 +103,8 @@ nis_lookup (const_nis_name name, const unsigned int flags) status = NIS_RPCERROR; else { + status = NIS_SUCCESS; + if (NIS_RES_STATUS (res) == NIS_SUCCESS) { if (__type_of(NIS_RES_OBJECT (res)) == NIS_LINK_OBJ && @@ -171,7 +173,6 @@ nis_lookup (const_nis_name name, const unsigned int flags) break; } link_first_try = 0; /* Set it back */ - status= NIS_SUCCESS; } while ((flags & HARD_LOOKUP) && status == NIS_RPCERROR); -- cgit v1.1