From bc7ab08ab38221c8a12c4bc8bc31cdebf19c8480 Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Tue, 19 Jul 2005 07:03:26 +0000 Subject: [PATCH] Fix the "..." special command. If this command is found all further commands for this target are appended to the .END target instead of beeing executed now. They are executed when the graph is finished. There was a bug with executing the .END target which came in when doing conversion to LST_FOREACH() which caused make to dump core. PR: bin/83698 Submitted by: Max Okumoto MFC after: 3 days --- usr.bin/make/job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 8b467f7f2d3..629460a532f 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -3367,7 +3367,7 @@ Compat_Run(Lst *targs) */ if (error_cnt == 0) { LST_FOREACH(ln, &ENDNode->commands) { - if (Compat_RunCommand(Lst_Datum(ln), gn)) + if (Compat_RunCommand(Lst_Datum(ln), ENDNode)) break; } }