fix thinko introduced in last rototilling of nsdispatch; _nsdbtget()

would always return the entry for the first entry looked up.  noted by
andrew gillham (manifesting itself as ftp failing to lookup names).
This commit is contained in:
lukem 1999-01-17 04:49:04 +00:00
parent 36db6b8dda
commit 29f39a2ca1
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nsdispatch.c,v 1.3 1999/01/16 01:21:01 lukem Exp $ */ /* $NetBSD: nsdispatch.c,v 1.4 1999/01/17 04:49:04 lukem Exp $ */
/*- /*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc. * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@ -129,14 +129,14 @@ _nsdbtget(name)
extern FILE *_nsyyin; extern FILE *_nsyyin;
extern int _nsyyparse __P((void)); extern int _nsyyparse __P((void));
if (dbt.name == NULL) { /* construct dummy `files' entry */ if (dbt.srclist == NULL) { /* construct dummy `files' entry */
ns_src src; ns_src src;
src.name = NSSRC_FILES; src.name = NSSRC_FILES;
src.flags = NS_SUCCESS; src.flags = NS_SUCCESS;
dbt.name = name;
_nsdbtaddsrc(&dbt, &src); _nsdbtaddsrc(&dbt, &src);
} }
dbt.name = name;
if (confmod) { if (confmod) {
if (stat(_PATH_NS_CONF, &statbuf) == -1) if (stat(_PATH_NS_CONF, &statbuf) == -1)