1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

Fix warning when HAVE_EMBEDDED_SANDBOX_SHELL is not set

Clang doesn't like the double indent that is needed for the `if...else`
that is CPP'd away. Adding braces is fine in the `if...else...` case,
and fine as a naked block in the CPP'd away case, and properly-indented
both ways.
This commit is contained in:
John Ericson 2025-05-28 12:49:13 -04:00
parent cc926c332c
commit 24f5d7a9c3

View file

@ -685,8 +685,10 @@ struct LinuxDerivationBuilder : DerivationBuilderImpl
chmod_(dst, 0555); chmod_(dst, 0555);
} else } else
# endif # endif
{
doBind(i.second.source, chrootRootDir + i.first, i.second.optional); doBind(i.second.source, chrootRootDir + i.first, i.second.optional);
} }
}
/* Bind a new instance of procfs on /proc. */ /* Bind a new instance of procfs on /proc. */
createDirs(chrootRootDir + "/proc"); createDirs(chrootRootDir + "/proc");