If the line wasn't for the client we are looking for, skip it.

While I'm here, I indented the continuation line properly.
This commit is contained in:
enami 2000-07-04 08:18:44 +00:00
parent 76405ae56d
commit e9aaacc880
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootparamd.c,v 1.34 2000/06/28 01:30:56 thorpej Exp $ */
/* $NetBSD: bootparamd.c,v 1.35 2000/07/04 08:18:44 enami Exp $ */
/*
* This code is not copyright, and is placed in the public domain.
@ -11,7 +11,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: bootparamd.c,v 1.34 2000/06/28 01:30:56 thorpej Exp $");
__RCSID("$NetBSD: bootparamd.c,v 1.35 2000/07/04 08:18:44 enami Exp $");
#endif
#include <sys/types.h>
@ -390,13 +390,14 @@ lookup_bootparam(client, client_canonical, id, server, path)
continue;
}
if (fnmatch(word, hp->h_name,
FNM_CASEFOLD) == 0) {
FNM_CASEFOLD) == 0) {
/* See above. */
if (HASGLOB(word))
canon = hp->h_name;
else
canon = word;
}
} else
continue;
}
#undef HASGLOB