aboutsummaryrefslogtreecommitdiff
path: root/nis/nis_table.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-08-07 16:03:46 +0000
committerUlrich Drepper <drepper@redhat.com>2006-08-07 16:03:46 +0000
commitbd1ebae0eb756824f9a8dbc66aa2913733c06354 (patch)
treeba51c6a301fe6be75fbd23ad5e1073dc0962d5cf /nis/nis_table.c
parentfe710250508e0710ac5db1fff1596ac5b092ab64 (diff)
downloadglibc-bd1ebae0eb756824f9a8dbc66aa2913733c06354.zip
glibc-bd1ebae0eb756824f9a8dbc66aa2913733c06354.tar.gz
glibc-bd1ebae0eb756824f9a8dbc66aa2913733c06354.tar.bz2
* nis/nis_call.c: Minor cleanups throughout.
(rec_dirsearch) [HIGHER_NAME]: Correctly size ndomain array. (first_shoot): Add search_parent_first parameter. Only if it is set search parent server first. If directory for table found through cold start cache is not the same as referenced in the cache, don't use it. (__nisfind_server): Take additional parameter. Pass it on to first_shoot. (__prepare_niscall): Adjust __nisfind_server call. * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype. * nis/nis_table.c: Adjust __nisfind_server call. * nis/nis_lookup.c: Likewise. (nis_lookup): Don't loop endlessly if name is reduced to ".".
Diffstat (limited to 'nis/nis_table.c')
-rw-r--r--nis/nis_table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nis/nis_table.c b/nis/nis_table.c
index 3213035..a92a4b6 100644
--- a/nis/nis_table.c
+++ b/nis/nis_table.c
@@ -271,7 +271,8 @@ nis_list (const_nis_name name, unsigned int flags,
memset (res, '\0', sizeof (nis_result));
- status = __nisfind_server (ibreq->ibr_name, &dir);
+ status = __nisfind_server (ibreq->ibr_name,
+ ibreq->ibr_srch.ibr_srch_val != NULL, &dir);
if (status != NIS_SUCCESS)
{
NIS_RES_STATUS (res) = status;