diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-01-08 16:49:31 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-03 18:30:22 +0200 |
commit | 8c94a864d806647736410326d496a8d668109f5a (patch) | |
tree | ea33fc97315fba9a1fd88dfeab5d65baaabb5b33 | |
parent | 35605c4407a677752ed51a0f829cc0f42047b115 (diff) | |
download | guix-8c94a864d806647736410326d496a8d668109f5a.tar.gz |
Doh
-rw-r--r-- | nix/libstore/local-store.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc index 64ed41cc86..0457391889 100644 --- a/nix/libstore/local-store.cc +++ b/nix/libstore/local-store.cc @@ -251,13 +251,13 @@ LocalStore::LocalStore(bool reserveSpace) multi-user install. */ if (getuid() == 0 && settings.buildUsersGroup != "") { - mode_t perm = 01737; - Path perUserDir = profilesDir + "/per-user"; createDirs(perUserDir); - if (chmod(perUserDir.c_str(), perm) == -1) + if (chmod(perUserDir.c_str(), 01777) == -1) throw SysError(format("could not set permissions on '%1%' to 1737") % perUserDir); + mode_t perm = 01735; + struct group * gr = getgrnam(settings.buildUsersGroup.c_str()); if (!gr) throw Error(format("the group `%1%' specified in `build-users-group' does not exist") |