1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

When specifying additiona user-specified kernel compilation source

files in a 'files.XXX' file, config allows non-FreeBSD source files
with the same name as a FreeBSD source file to override the latter,
and in this situation it issues a warning.

However, if one of the user-specified files is actually a FreeBSD
source file (perhaps your kernel has some custom option that requires
that file), config mistakenly thinks it's a completely new file
and goes ahead and overrides all previous information for that file
(and issues the warning).

Fix this.

With help from:	julian
This commit is contained in:
Archie Cobbs 1999-12-02 23:43:08 +00:00
parent b152132e64
commit 1e306bb1c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54044

View File

@ -309,7 +309,7 @@ read_files()
else
isdup = 0;
tp = 0;
if (first == 3 && (tp = fltail_lookup(this)) != 0)
if (first == 3 && fl_lookup(this) == 0 && (tp = fltail_lookup(this)) != 0)
printf("%s: Local file %s overrides %s.\n",
fname, this, tp->f_fn);
nreqs = 0;