Module Name: src Committed By: sjg Date: Mon May 20 16:04:46 UTC 2024
Modified Files: src/usr.bin/make: dir.c Log Message: Allow .include <> to search .CURDIR last libc at least appears to depend on this. To generate a diff of this commit: cvs rdiff -u -r1.288 -r1.289 src/usr.bin/make/dir.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/dir.c diff -u src/usr.bin/make/dir.c:1.288 src/usr.bin/make/dir.c:1.289 --- src/usr.bin/make/dir.c:1.288 Sun May 19 20:09:40 2024 +++ src/usr.bin/make/dir.c Mon May 20 16:04:46 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: dir.c,v 1.288 2024/05/19 20:09:40 sjg Exp $ */ +/* $NetBSD: dir.c,v 1.289 2024/05/20 16:04:46 sjg Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -132,7 +132,7 @@ #include "job.h" /* "@(#)dir.c 8.2 (Berkeley) 1/2/94" */ -MAKE_RCSID("$NetBSD: dir.c,v 1.288 2024/05/19 20:09:40 sjg Exp $"); +MAKE_RCSID("$NetBSD: dir.c,v 1.289 2024/05/20 16:04:46 sjg Exp $"); /* * A search path is a list of CachedDir structures. A CachedDir has in it the @@ -1206,7 +1206,7 @@ FindFile(const char *name, SearchPath *p return file; } - if (!isinclude && seenDotLast + if (seenDotLast && (file = DirFindDot(name, base)) != NULL) return file; }