mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Hopefully fix macOS tests
This commit is contained in:
parent
82ca6ef390
commit
2743bf0bb1
1 changed files with 6 additions and 4 deletions
|
@ -2190,11 +2190,13 @@ void DerivationGoal::startBuilder()
|
|||
|
||||
std::string slaveName(ptsname(builderOut.readSide.get()));
|
||||
|
||||
if (chmod(slaveName.c_str(), 0600))
|
||||
throw SysError("changing mode of pseudoterminal slave");
|
||||
if (buildUser) {
|
||||
if (chmod(slaveName.c_str(), 0600))
|
||||
throw SysError("changing mode of pseudoterminal slave");
|
||||
|
||||
if (buildUser && chown(slaveName.c_str(), buildUser->getUID(), 0))
|
||||
throw SysError("changing owner of pseudoterminal slave");
|
||||
if (chown(slaveName.c_str(), buildUser->getUID(), 0))
|
||||
throw SysError("changing owner of pseudoterminal slave");
|
||||
}
|
||||
|
||||
#if 0
|
||||
// Mount the pt in the sandbox so that the "tty" command works.
|
||||
|
|
Loading…
Reference in a new issue