-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix weakly_canonical with relative input paths.
When weakly_canonical was called with a relative input path, the operation would test path elements for existence, which meant resolving them relative to the current path instead of the base path specified in the call. To mitigate this, make the source path absolute using the specified base path. As a side effect, this fixes incorrect path produced on Windows if the input path started with "..". The algorithm was unable to remove the last element of the head path because there was none. As a result, the remaining elements of the input path were appended to the full base path by canonical. Fixes to #311.
- Loading branch information
Showing
3 changed files
with
70 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters