Skip to content

Commit 0b25692

Browse files
committed
Fix base::get_canonical_path() impl on Linux/macOS
1 parent 4b6e6dc commit 0b25692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/fs_unix.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ std::string get_canonical_path(const std::string& path)
171171
// Ignore return value as realpath() returns nullptr anyway when the
172172
// resolved_path parameter is specified.
173173
realpath(path.c_str(), buffer);
174-
return path;
174+
return buffer;
175175
}
176176

177177
paths list_files(const std::string& path)

0 commit comments

Comments
 (0)