mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Merge branch 'master' of https://github.com/google/sandboxed-api
This commit is contained in:
commit
45d825b3b7
|
@ -179,7 +179,7 @@ absl::Status Mounts::Insert(absl::string_view path,
|
||||||
|
|
||||||
std::string fixed_path = file::CleanPath(path);
|
std::string fixed_path = file::CleanPath(path);
|
||||||
|
|
||||||
if (!absl::StartsWith(fixed_path, "/")) {
|
if (!file::IsAbsolutePath(fixed_path)) {
|
||||||
return absl::InvalidArgumentError("Only absolute paths are supported");
|
return absl::InvalidArgumentError("Only absolute paths are supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user