diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-05-18 15:50:29 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-05-18 15:50:29 +0200 |
commit | 5ef64f05e6e493d5fe69c87127328f68500b9e50 (patch) | |
tree | 9862be66a065f438962306ae29b407d4fc2dcb73 /src/libstore | |
parent | 0ed946aa616bbf7ffe7f90d3309abdd27d875b10 (diff) |
Cleanup
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 4f2f38d63..a2b16f95c 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -507,10 +507,10 @@ private: Path fnUserLock; AutoCloseFD fdUserLock; - bool isEnabled; + bool isEnabled = false; string user; - uid_t uid; - gid_t gid; + uid_t uid = 0; + gid_t gid = 0; std::vector<gid_t> supplementaryGIDs; public: @@ -534,9 +534,6 @@ UserLock::UserLock() { assert(settings.buildUsersGroup != ""); createDirs(settings.nixStateDir + "/userpool"); - /* Mark that user is not enabled by default */ - uid = 0; - isEnabled = false; } bool UserLock::findFreeUser() { |