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>
MFC after:	3 days
This commit is contained in:
Hartmut Brandt 2005-07-19 07:03:26 +00:00
parent 985d6fb29c
commit bc7ab08ab3

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