mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 07:12:27 +00:00
Cleanup
This commit is contained in:
parent
0ed946aa61
commit
5ef64f05e6
@ -507,10 +507,10 @@ private:
|
|||||||
Path fnUserLock;
|
Path fnUserLock;
|
||||||
AutoCloseFD fdUserLock;
|
AutoCloseFD fdUserLock;
|
||||||
|
|
||||||
bool isEnabled;
|
bool isEnabled = false;
|
||||||
string user;
|
string user;
|
||||||
uid_t uid;
|
uid_t uid = 0;
|
||||||
gid_t gid;
|
gid_t gid = 0;
|
||||||
std::vector<gid_t> supplementaryGIDs;
|
std::vector<gid_t> supplementaryGIDs;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -534,9 +534,6 @@ UserLock::UserLock()
|
|||||||
{
|
{
|
||||||
assert(settings.buildUsersGroup != "");
|
assert(settings.buildUsersGroup != "");
|
||||||
createDirs(settings.nixStateDir + "/userpool");
|
createDirs(settings.nixStateDir + "/userpool");
|
||||||
/* Mark that user is not enabled by default */
|
|
||||||
uid = 0;
|
|
||||||
isEnabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UserLock::findFreeUser() {
|
bool UserLock::findFreeUser() {
|
||||||
|
Loading…
Reference in New Issue
Block a user