-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update
newBinaryCmd
URL path handling
Windows UNC paths weren't properly handled by `filepath.Clean` and this behavior was fixed in golang/go@be9d78c For a binary URL `binary:///\executable`, the `URL.Path` will be `/\executable` and `filepath.Clean` will now return `\\executable`, which previously would return `\executable`. In the case of binary logger, it'd be safer to not accept UNC paths, so this PR adds a short circuit when the clean path starts with `\\`. Signed-off-by: Maksim An <maksiman@microsoft.com>
- Loading branch information
Showing
2 changed files
with
54 additions
and
9 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