Commit 10ae5ff3 authored by Daniel Salzman's avatar Daniel Salzman

conf: enable file sorting in include globing

parent cd7ebed7
......@@ -112,6 +112,7 @@ Another configuration file or files, matching a pattern, can be included at
the top level in the current file. If the path is not absolute, then it
is considered to be relative to the current file. The pattern can be
an arbitrary string meeting POSIX \fIglob\fP requirements, e.g. dir/*.conf.
Matching files are processed in sorted order.
.INDENT 0.0
.INDENT 3.5
.sp
......
......@@ -69,6 +69,7 @@ Another configuration file or files, matching a pattern, can be included at
the top level in the current file. If the path is not absolute, then it
is considered to be relative to the current file. The pattern can be
an arbitrary string meeting POSIX *glob* requirements, e.g. dir/\*.conf.
Matching files are processed in sorted order.
::
......
......@@ -368,7 +368,7 @@ int include_file(
}
// Evaluate include pattern.
ret = glob(path, GLOB_NOSORT, glob_error, &glob_buf);
ret = glob(path, 0, glob_error, &glob_buf);
if (ret != 0) {
ret = KNOT_EFILE;
goto include_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment