From 402d784b8fc0a7914955eb168ea288338e2025ff Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Fri, 4 Sep 2020 16:07:12 -0700 Subject: path/filepath: make Rel handle Windows UNC share Fixes #41230 Change-Id: Iea15e4ae6d56328333fd22de5d78dfcad78ef1bc Reviewed-on: https://go-review.googlesource.com/c/go/+/253197 Reviewed-by: Alex Brainman Trust: Alex Brainman Trust: Emmanuel Odeke Run-TryBot: Alex Brainman TryBot-Result: Go Bot --- src/path/filepath/path_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/path/filepath/path_test.go') diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go index 8616256ac0..1d9889d320 100644 --- a/src/path/filepath/path_test.go +++ b/src/path/filepath/path_test.go @@ -1227,6 +1227,7 @@ var winreltests = []RelTests{ {`C:\Projects`, `c:\projects\src`, `src`}, {`C:\Projects`, `c:\projects`, `.`}, {`C:\Projects\a\..`, `c:\projects`, `.`}, + {`\\host\share`, `\\host\share\file.txt`, `file.txt`}, } func TestRel(t *testing.T) { -- cgit v1.3