Merge pull request #93148 from claudiubelu/windows/fixes-subpath-symlink

Windows: Fixes subpath symlink evaluation
This commit is contained in:
Kubernetes Prow Robot
2020-07-21 15:00:20 -07:00
committed by GitHub

View File

@@ -55,6 +55,10 @@ func evalPath(path string) (linkedPath string, err error) {
return "", err
}
linkedPath = strings.TrimSpace(string(output))
if linkedPath == "" {
klog.V(4).Infof("Path '%s' has no target. Consiering it as evaluated.", path)
return path, nil
}
if isVolumePrefix(linkedPath) {
return path, err
}