summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-10-13 07:00:23 +0000
committerPaul Smith <psmith@gnu.org>1999-10-13 07:00:23 +0000
commit281951154bc90849385ae4cacc3cadfc1653b877 (patch)
treea78f4d17879b485ea2fa127c21d99ac40a839a00 /job.c
parent829f4fd04b7fe9e18ed91c236ed46ebce5b27cae (diff)
downloadgunmake-281951154bc90849385ae4cacc3cadfc1653b877.tar.gz
* Fix PR/1379: -n/-q behaves correctly when all commands are recursive.
Diffstat (limited to 'job.c')
-rw-r--r--job.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/job.c b/job.c
index b656d6c..263bc3d 100644
--- a/job.c
+++ b/job.c
@@ -794,6 +794,9 @@ start_job_command (child)
++p;
}
+ /* Update the file's command flags with any new ones we found. */
+ child->file->cmds->lines_flags[child->command_line - 1] |= flags;
+
/* If -q was given, just say that updating `failed'. The exit status of
1 tells the user that -q is saying `something to do'; the exit status
for a random error is 2. */