aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-11-04 11:58:41 +0000
committerRon Yorston <rmy@pobox.com>2022-11-04 12:30:58 +0000
commit9cd72d5b32e371b085afc740e8b4c4f2cac152fa (patch)
tree7bc499d5b8028f6bf85ccd0fe6cdadbe063db736 /miscutils
parent5f64589b84a7349316a04cdbe607a5824459b731 (diff)
downloadbusybox-w32-9cd72d5b32e371b085afc740e8b4c4f2cac152fa.tar.gz
busybox-w32-9cd72d5b32e371b085afc740e8b4c4f2cac152fa.tar.bz2
busybox-w32-9cd72d5b32e371b085afc740e8b4c4f2cac152fa.zip
make: fix typo in inference rule handling
A typo in the previous commit caused dyndep() to process inference rules incorrectly. This didn't affect the results of the test suite when extensions were allowed but it caused the test 'Inference rule with explicit rule for prerequisite' to fail in POSIX mode.
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/make.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/make.c b/miscutils/make.c
index 86d06e970..1414f869c 100644
--- a/miscutils/make.c
+++ b/miscutils/make.c
@@ -722,7 +722,7 @@ dyndep(struct name *np, struct rule *imprule)
722 continue; 722 continue;
723 if (!ip->n_tim.tv_sec) 723 if (!ip->n_tim.tv_sec)
724 modtime(ip); 724 modtime(ip);
725 if (chain ? ip->n_tim.tv_sec || (ip->n_flag & N_TARGET) : 725 if (!chain ? ip->n_tim.tv_sec || (ip->n_flag & N_TARGET) :
726 dyndep(ip, NULL) != NULL) { 726 dyndep(ip, NULL) != NULL) {
727 // Prerequisite exists or we know how to make it 727 // Prerequisite exists or we know how to make it
728 if (imprule) { 728 if (imprule) {