Skip to content

Commit

Permalink
Fix base::get_canonical_path() impl on Linux/macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 24, 2024
1 parent 4b6e6dc commit 0b25692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/fs_unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ std::string get_canonical_path(const std::string& path)
// Ignore return value as realpath() returns nullptr anyway when the
// resolved_path parameter is specified.
realpath(path.c_str(), buffer);
return path;
return buffer;
}

paths list_files(const std::string& path)
Expand Down

0 comments on commit 0b25692

Please sign in to comment.