Skip to content

Commit 298a8b1

Browse files
committed
Fix bug in UnixPlatform::path()
It wasn't using the result of the call to realpath().
1 parent 0210957 commit 298a8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/unix_platform.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class UnixPlatform : public AbstractPlatform
111111
char path[PATH_MAX];
112112
if (!realpath(m_path.c_str(), path))
113113
throw runtime_error(str(boost::format("realpath() failed: %d\n") % errno));
114-
return m_path;
114+
return string(path);
115115
}
116116

117117
private:

0 commit comments

Comments
 (0)