forked from lix-project/lix
Doh
This commit is contained in:
parent
ed56ea980b
commit
57b82256b0
|
@ -251,13 +251,13 @@ LocalStore::LocalStore(bool reserveSpace)
|
||||||
multi-user install. */
|
multi-user install. */
|
||||||
if (getuid() == 0 && settings.buildUsersGroup != "") {
|
if (getuid() == 0 && settings.buildUsersGroup != "") {
|
||||||
|
|
||||||
mode_t perm = 01737;
|
|
||||||
|
|
||||||
Path perUserDir = profilesDir + "/per-user";
|
Path perUserDir = profilesDir + "/per-user";
|
||||||
createDirs(perUserDir);
|
createDirs(perUserDir);
|
||||||
if (chmod(perUserDir.c_str(), perm) == -1)
|
if (chmod(perUserDir.c_str(), 01777) == -1)
|
||||||
throw SysError(format("could not set permissions on ‘%1%’ to 1737") % perUserDir);
|
throw SysError(format("could not set permissions on ‘%1%’ to 1737") % perUserDir);
|
||||||
|
|
||||||
|
mode_t perm = 01735;
|
||||||
|
|
||||||
struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
|
struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
|
||||||
if (!gr)
|
if (!gr)
|
||||||
printMsg(lvlError, format("warning: the group ‘%1%’ specified in ‘build-users-group’ does not exist")
|
printMsg(lvlError, format("warning: the group ‘%1%’ specified in ‘build-users-group’ does not exist")
|
||||||
|
|
Loading…
Reference in a new issue