* Removed `build-allow-root'.
* Added `build-users-group', the group under which builds are to be performed. * Check that /nix/store has 1775 permission and is owner by the build-users-group.
This commit is contained in:
parent
84d6459bd5
commit
35247c4c9f
5 changed files with 61 additions and 39 deletions
|
|
@ -235,10 +235,10 @@ void canonicalisePathMetaData(const Path & path)
|
|||
throw SysError(format("changing mode of `%1%' to %2$o") % path % mode);
|
||||
}
|
||||
|
||||
if (st.st_uid != getuid() || st.st_gid != getgid()) {
|
||||
if (chown(path.c_str(), getuid(), getgid()) == -1)
|
||||
if (st.st_uid != geteuid() || st.st_gid != getegid()) {
|
||||
if (chown(path.c_str(), geteuid(), getegid()) == -1)
|
||||
throw SysError(format("changing owner/group of `%1%' to %2%/%3%")
|
||||
% path % getuid() % getgid());
|
||||
% path % geteuid() % getegid());
|
||||
}
|
||||
|
||||
if (st.st_mtime != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue