From 428490e917f1858acdcc3f70441353da2cb382c5 Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Tue, 15 Jan 2013 00:23:25 +0100 Subject: fix for 'store absolute paths internally' `parent_path` was called on unprocessed path so neither `resolve_path` nor `filesystem::absolute` had any effect. --- src/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/context.h') diff --git a/src/context.h b/src/context.h index 7373be39..9fe0613b 100644 --- a/src/context.h +++ b/src/context.h @@ -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 stream(new ifstream(filename)); parse_context_t context(stream, parent); context.pathname = filename; -- cgit v1.2.3