mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
parent
94dfb6b1fe
commit
bda64a2b0f
1 changed files with 1 additions and 1 deletions
|
@ -1443,7 +1443,7 @@ void LocalStore::createUser(const std::string & userName, uid_t userId)
|
||||||
createDirs(dir);
|
createDirs(dir);
|
||||||
if (chmod(dir.c_str(), 0755) == -1)
|
if (chmod(dir.c_str(), 0755) == -1)
|
||||||
throw SysError("changing permissions of directory '%s'", dir);
|
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);
|
throw SysError("changing owner of directory '%s'", dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue