aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2019-09-21 18:53:15 -0400
committerBenjamin Hipple <bhipple@protonmail.com>2019-09-21 18:53:15 -0400
commitc6a542f22a165f711fc0730bfcfbd936ad1c3dfb (patch)
treea380cebc0982a4d6e6ad875a7917785faf048f5a /src/libstore/build.cc
parent7f9a0033c71a230093e19a97808ea5b5f3e62e3b (diff)
Fix spelling in comment
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index ab725e8e9..9a6729f9e 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2364,7 +2364,7 @@ void DerivationGoal::startBuilder()
child = clone(childEntry, stack + stackSize, flags, this);
}
if (child == -1 && (errno == EPERM || errno == EINVAL)) {
- /* Some distros patch Linux to not allow unpriveleged
+ /* Some distros patch Linux to not allow unprivileged
* user namespaces. If we get EPERM or EINVAL, try
* without CLONE_NEWUSER and see if that works.
*/
@@ -2410,8 +2410,7 @@ void DerivationGoal::startBuilder()
writeFile("/proc/" + std::to_string(pid) + "/gid_map",
(format("%d %d 1") % sandboxGid % hostGid).str());
- /* Signal the builder that we've updated its user
- namespace. */
+ /* Signal the builder that we've updated its user namespace. */
writeFull(userNamespaceSync.writeSide.get(), "1");
userNamespaceSync.writeSide = -1;