fix for 'store absolute paths internally'
`parent_path` was called on unprocessed path so neither `resolve_path` nor `filesystem::absolute` had any effect.
This commit is contained in:
parent
d4df36a598
commit
428490e917
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ inline parse_context_t open_for_reading(const path& pathname,
|
||||||
throw_(std::runtime_error,
|
throw_(std::runtime_error,
|
||||||
_f("Cannot read journal file %1%") % filename);
|
_f("Cannot read journal file %1%") % filename);
|
||||||
|
|
||||||
path parent(pathname.parent_path());
|
path parent(filename.parent_path());
|
||||||
shared_ptr<std::istream> stream(new ifstream(filename));
|
shared_ptr<std::istream> stream(new ifstream(filename));
|
||||||
parse_context_t context(stream, parent);
|
parse_context_t context(stream, parent);
|
||||||
context.pathname = filename;
|
context.pathname = filename;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue