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
commit a9f0fcc68c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}