summaryrefslogtreecommitdiff
path: root/src/implicit.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2019-12-26 18:39:56 -0500
committerPaul Smith <psmith@gnu.org>2019-12-26 18:39:56 -0500
commit564fb212a727a6b6773f454d192a7e02de62d2ef (patch)
treea80bdb08f01875f1795c87ef5c0bbb939221829a /src/implicit.c
parent30cc10093b4b17d6a823fa7cc96cd937115af9fb (diff)
downloadmake-git-564fb212a727a6b6773f454d192a7e02de62d2ef.tar.gz
[SV 56655] Allow pattern expansion to contain spaces
* src/dep.h: Add a new flag PARSEFS_ONEWORD * src/read.c (parse_file_seq): If PARSEFS_ONEWORD is given, treat the entire incoming string as a single pattern. * src/implicit.c (pattern_search): Pass PARSEFS_ONEWORD when parsing patterns for wildcards. * tests/scripts/features/patternrules: Add a new test.
Diffstat (limited to 'src/implicit.c')
-rw-r--r--src/implicit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/implicit.c b/src/implicit.c
index f7b8c152..96f453c8 100644
--- a/src/implicit.c
+++ b/src/implicit.c
@@ -559,7 +559,7 @@ pattern_search (struct file *file, int archive,
/* Parse the expanded string. It might have wildcards. */
p = depname;
- dl = PARSE_SIMPLE_SEQ (&p, struct dep);
+ dl = PARSE_FILE_SEQ (&p, struct dep, MAP_NUL, NULL, PARSEFS_ONEWORD);
for (d = dl; d != NULL; d = d->next)
{
++deps_found;