mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Refactoring: Add allowPath() method
This commit is contained in:
parent
c9ee634f75
commit
cfaad7168e
7 changed files with 21 additions and 17 deletions
|
@ -1892,8 +1892,7 @@ static void addPath(EvalState & state, const Pos & pos, const string & name, con
|
|||
|
||||
mkString(v, dstPath, {dstPath});
|
||||
|
||||
if (state.allowedPaths)
|
||||
state.allowedPaths->insert(v.string.s);
|
||||
state.allowPath(v.string.s);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue