NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/60016 (make(1) tests failing since sjg MaybeSubMake changes)
I have:
--------------------8<--------------------
MaybeSubMake: ignore line beining with any of [@+-]
When checking if 'make' (progname actually) matches the start of the
line, we want to ignore any initial [ @+-]
PR: 60016
Reviewed by:
--------------------8<--------------------
Index: job.c
===================================================================
RCS file: /cvsroot/src/usr.bin/make/job.c,v
retrieving revision 1.522
diff -u -p -r1.522 job.c
--- job.c 16 Feb 2026 17:57:38 -0000 1.522
+++ job.c 1 Mar 2026 00:00:18 -0000
@@ -974,6 +974,7 @@ MaybeSubMake(const char *cmd)
make[strcspn(make, "[")] = '\0';
len = strlen(make);
}
+ cmd += strspn(cmd, "@ \t+-");
for (p = strstr(cmd, make); p != NULL; p = strstr(&p[1], make)) {
if (p == cmd || p[-1] == '/' || ch_isspace(p[-1])) {
if (p[len] == '\0' || ch_isspace(p[len])) {
Home |
Main Index |
Thread Index |
Old Index