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:
Johann Klähn 2013-01-15 00:23:25 +01:00
parent d4df36a598
commit 428490e917

View file

@ -121,7 +121,7 @@ inline parse_context_t open_for_reading(const path& pathname,
throw_(std::runtime_error,
_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));
parse_context_t context(stream, parent);
context.pathname = filename;