Skip to content

Commit

Permalink
Fix "include" directive in config files
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui committed Mar 29, 2024
1 parent 298bfd9 commit d7d51bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libutil/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static void applyConfigInner(const std::string & contents, const std::string & p
auto p = absPath(tokens[1], dirOf(path));
if (pathExists(p)) {
try {
std::string includedContents = readFile(path);
std::string includedContents = readFile(p);
applyConfigInner(includedContents, p, parsedContents);
} catch (SystemError &) {
// TODO: Do we actually want to ignore this? Or is it better to fail?
Expand Down

0 comments on commit d7d51bc

Please sign in to comment.