mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 16:29:36 +01:00
external-derivation-builder: chdir into tmpdir
This commit is contained in:
parent
51449d7a51
commit
d3dc64b811
1 changed files with 3 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ struct ExternalDerivationBuilder : DerivationBuilderImpl
|
|||
|
||||
args.insert(args.end(), jsonFile);
|
||||
|
||||
if (chdir(tmpDir.c_str()) == -1)
|
||||
throw SysError("changing into '%1%'", tmpDir);
|
||||
|
||||
chownToBuilder(topTmpDir);
|
||||
|
||||
setUser();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue