mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #93148 from claudiubelu/windows/fixes-subpath-symlink
Windows: Fixes subpath symlink evaluation
This commit is contained in:
commit
a9f0fcc68c
@ -55,6 +55,10 @@ func evalPath(path string) (linkedPath string, err error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
linkedPath = strings.TrimSpace(string(output))
|
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) {
|
if isVolumePrefix(linkedPath) {
|
||||||
return path, err
|
return path, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user