mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Use isAbsolute()
This commit is contained in:
parent
ff8e2fe84e
commit
ff9d886f3c
7 changed files with 12 additions and 12 deletions
|
@ -406,7 +406,7 @@ void EvalState::checkURI(const std::string & uri)
|
|||
|
||||
/* If the URI is a path, then check it against allowedPaths as
|
||||
well. */
|
||||
if (hasPrefix(uri, "/")) {
|
||||
if (isAbsolute(uri)) {
|
||||
if (auto rootFS2 = rootFS.dynamic_pointer_cast<AllowListSourceAccessor>())
|
||||
rootFS2->checkAccess(CanonPath(uri));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue