Skip to content
Snippets Groups Projects
Commit 0e1be51c authored by Daniel Salzman's avatar Daniel Salzman
Browse files

conf: but fail if no match for include pattern without wildcard

fixes #578
parent 16e538b1
No related branches found
No related tags found
No related merge requests found
......@@ -493,12 +493,9 @@ int include_file(
goto include_error;
}
// Evaluate include pattern.
switch (glob(path, 0, glob_error, &glob_buf)) {
case 0:
case GLOB_NOMATCH:
break;
default:
// Evaluate include pattern (empty wildcard match is also valid).
ret = glob(path, 0, glob_error, &glob_buf);
if (ret != 0 && (ret != GLOB_NOMATCH || strchr(path, '*') == NULL)) {
ret = KNOT_EFILE;
goto include_error;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment