aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath/symlink_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/path/filepath/symlink_windows.go')
-rw-r--r--src/path/filepath/symlink_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path/filepath/symlink_windows.go b/src/path/filepath/symlink_windows.go
index a799488c18..d72279e2bb 100644
--- a/src/path/filepath/symlink_windows.go
+++ b/src/path/filepath/symlink_windows.go
@@ -68,7 +68,7 @@ func toNorm(path string, normBase func(string) (string, error)) (string, error)
path = path[len(volume):]
// skip special cases
- if path == "." || path == `\` {
+ if path == "" || path == "." || path == `\` {
return volume + path, nil
}