soong: paths: Fix out of tree $OUT
Change-Id: Ia915a7fcb95c76272fff6d350dc69abacb7b9e00
This commit is contained in:
parent
878adb61bf
commit
8b82c0d750
1 changed files with 1 additions and 1 deletions
|
@ -2020,7 +2020,7 @@ func validatePathInternal(allowNinjaVariables bool, pathComponents ...string) (s
|
|||
}
|
||||
|
||||
path := filepath.Clean(path)
|
||||
if path == ".." || strings.HasPrefix(path, "../") || strings.HasPrefix(path, "/") {
|
||||
if path == ".." || strings.HasPrefix(path, "../") || i != initialEmpty && strings.HasPrefix(path, "/") {
|
||||
return "", fmt.Errorf("Path is outside directory: %s", path)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue