Skip to content

Commit e3d44a3

Browse files
committed
Doh
https://hydra.nixos.org/build/102803044 (cherry picked from commit bda64a2)
1 parent 0fb4744 commit e3d44a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstore/local-store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ void LocalStore::createUser(const std::string & userName, uid_t userId)
14441444
createDirs(dir);
14451445
if (chmod(dir.c_str(), 0755) == -1)
14461446
throw SysError("changing permissions of directory '%s'", dir);
1447-
if (chown(dir.c_str(), userId, 0) == -1)
1447+
if (chown(dir.c_str(), userId, getgid()) == -1)
14481448
throw SysError("changing owner of directory '%s'", dir);
14491449
}
14501450
}

0 commit comments

Comments
 (0)