diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09T22·12+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09T22·14+0200 |
commit | e3d44a3b83e85eefbb7cbfbd21dc46ef7efa3f2e (patch) | |
tree | c5a2c11addd63e5ca7154f958df291977362c79a /src/libstore | |
parent | 0fb4744467b08e4ea50a39716d697764bea229d4 (diff) |
Doh
https://hydra.nixos.org/build/102803044 (cherry picked from commit bda64a2b0f79346012332ed18f5a76388e6d9bae)
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index d4f4cdae149e..84ddd964b469 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1444,7 +1444,7 @@ void LocalStore::createUser(const std::string & userName, uid_t userId) createDirs(dir); if (chmod(dir.c_str(), 0755) == -1) throw SysError("changing permissions of directory '%s'", dir); - if (chown(dir.c_str(), userId, 0) == -1) + if (chown(dir.c_str(), userId, getgid()) == -1) throw SysError("changing owner of directory '%s'", dir); } } |