mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Use file::IsAbsolutePath consistently
PiperOrigin-RevId: 302073992 Change-Id: Ib3b9fbedc6e85a1abd87cbc683d8a8c3dc3daf87
This commit is contained in:
parent
604b671d12
commit
4665335604
|
@ -179,7 +179,7 @@ absl::Status Mounts::Insert(absl::string_view 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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user