diff options
author | harti <harti@FreeBSD.org> | 2005-07-19 07:03:26 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-07-19 07:03:26 +0000 |
commit | 740ccbab6755d2a1c18bd1325efba4e51401e40a (patch) | |
tree | 4f4a36c249f43135061a187e6bfb71080ff27d1e /usr.bin/make/job.c | |
parent | 866466cabe169eac7c2183255b1a640914759c80 (diff) | |
download | FreeBSD-src-740ccbab6755d2a1c18bd1325efba4e51401e40a.zip FreeBSD-src-740ccbab6755d2a1c18bd1325efba4e51401e40a.tar.gz |
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
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r-- | usr.bin/make/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 8b467f7..629460a 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; } } |