This commit is contained in:
Shreyas Goenka 2023-06-19 16:00:59 +02:00
parent 7529c8a4ca
commit 2e85bd3bb1
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func (p WindowsRootPath) Join(name string) (string, error) {
// Don't allow escaping the specified root using relative paths.
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