mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
7529c8a4ca
commit
2e85bd3bb1
|
@ -28,7 +28,7 @@ func (p WindowsRootPath) Join(name string) (string, error) {
|
||||||
|
|
||||||
// Don't allow escaping the specified root using relative paths.
|
// Don't allow escaping the specified root using relative paths.
|
||||||
if !strings.HasPrefix(absPath, p.rootPath) {
|
if !strings.HasPrefix(absPath, p.rootPath) {
|
||||||
return "", fmt.Errorf("relative path escapes root: %s", name)
|
return "", fmt.Errorf("relative path %s escapes root %s", name, p.rootPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
return absPath, nil
|
return absPath, nil
|
||||||
|
|
Loading…
Reference in New Issue