mirror of
https://github.com/NixOS/nix.git
synced 2025-11-19 08:49:35 +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);
|
args.insert(args.end(), jsonFile);
|
||||||
|
|
||||||
|
if (chdir(tmpDir.c_str()) == -1)
|
||||||
|
throw SysError("changing into '%1%'", tmpDir);
|
||||||
|
|
||||||
chownToBuilder(topTmpDir);
|
chownToBuilder(topTmpDir);
|
||||||
|
|
||||||
setUser();
|
setUser();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue