Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed May 18, 2020
1 parent 0ed946a commit 5ef64f0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/libstore/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,10 @@ class UserLock
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:
Expand All @@ -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() {
Expand Down

0 comments on commit 5ef64f0

Please sign in to comment.