Ulrich Drepper <drepper@redhat.com>
* nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
short cut if only one name component is stripped away.
+2006-08-07 Jakub Jelinek <jakub@redhat.com>
+ Ulrich Drepper <drepper@redhat.com>
+
+ * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
+ short cut if only one name component is stripped away.
+
2006-08-07 Ulrich Drepper <drepper@redhat.com>
* nis/nis_call.c: Minor cleanups throughout.
char domain[namelen + 3];
char ndomain[namelen + 3];
char *cp;
- u_int run = 0;
strcpy (domain, name);
nis_leaf_of_r (domain, leaf, sizeof (leaf));
nis_domain_of_r (domain, ndomain, sizeof (ndomain));
strcpy (domain, ndomain);
- ++run;
}
while (nis_dir_cmp (domain, dir->do_name) != SAME_NAME);
- if (run == 1)
- {
- /* We have found the directory above. Use it. */
- return dir;
- }
-
cp = rawmemchr (leaf, '\0');
*cp++ = '.';
strcpy (cp, domain);