diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09 23:33:28 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09 23:35:02 +0200 |
commit | 20eec802ff11dd2b152715cd5c81b756d318219d (patch) | |
tree | 9527a864d37d59564928b0cdb2c550e137563ac4 /src | |
parent | 9277e72cb0aac72100c01334fdf25ea79d19052e (diff) |
Force per-user group to a known value
Diffstat (limited to 'src')
-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 fbf5dc35c..00f3a31a2 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1443,7 +1443,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, -1) == -1) + if (chown(dir.c_str(), userId, 0) == -1) throw SysError("changing owner of directory '%s'", dir); } } |