MFC to RELENG_6.

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 <okumoto@ucsd.edu>
Approved by:	re
This commit is contained in:
harti 2005-07-20 19:05:23 +00:00
parent 339c3c8a5d
commit 44e27bfe20

View File

@ -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;
}
}