guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

15/27: Doh


From: Ludovic Courtès
Subject: 15/27: Doh
Date: Wed, 03 Jun 2015 22:00:41 +0000

civodul pushed a commit to branch nix
in repository guix.

commit 8c94a864d806647736410326d496a8d668109f5a
Author: Eelco Dolstra <address@hidden>
Date:   Thu Jan 8 16:49:31 2015 +0100

    Doh
---
 nix/libstore/local-store.cc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc
index 64ed41c..0457391 100644
--- a/nix/libstore/local-store.cc
+++ b/nix/libstore/local-store.cc
@@ -251,13 +251,13 @@ LocalStore::LocalStore(bool reserveSpace)
        multi-user install. */
     if (getuid() == 0 && settings.buildUsersGroup != "") {
 
-        mode_t perm = 01737;
-
         Path perUserDir = profilesDir + "/per-user";
         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);
 
+        mode_t perm = 01735;
+
         struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
         if (!gr)
             throw Error(format("the group `%1%' specified in 
`build-users-group' does not exist")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]