Apply clang-format changes

This commit is contained in:
BenceSzalai 2025-05-01 19:13:22 +02:00
parent d5a790d455
commit b78f8911a0
No known key found for this signature in database
GPG key ID: B1FC0240D2CD9A19
3 changed files with 11 additions and 10 deletions

View file

@ -135,8 +135,7 @@ int sys_execve(const char *prog, char *const argv[], char *const envp[]) {
const char *name = "";
if (IsXnu()) {
name = "/.ape-" APE_VERSION_STR GetXnuSuffix();
}
else {
} else {
name = "/.ape-" APE_VERSION_STR;
}
InitExecve();

View file

@ -2020,8 +2020,8 @@ int main(int argc, char *argv[]) {
if (support_vector & _HOSTXNU) {
// Add an architecture suffix to the temporary APE Loader
// name to differentiate between x86_64 and arm64.
p = stpcpy(p, "$([ -d /Applications ] && ( printf '-'; "
"( uname -m 2>/dev/null || printf 'unknown') ))");
p = stpcpy(p, "$([ -d /Applications ] && ( printf '-'; ( uname -m "
"2>/dev/null || printf 'unknown')))");
}
p = stpcpy(p, "\"\n"
"[ x\"$1\" != x--assimilate ] && "

View file

@ -555,14 +555,16 @@ void ApplyFilesystemPolicy(unsigned long ipromises) {
if ((p = getenv("TMPDIR"))) {
UnveilIfExists(
__join_paths(buf, sizeof(buf), p, ".ape-" APE_VERSION_STR), "rx");
UnveilIfExists(
__join_paths(buf, sizeof(buf), p, ".ape-" APE_VERSION_STR GetXnuSuffix()), "rx");
UnveilIfExists(__join_paths(buf, sizeof(buf), p,
".ape-" APE_VERSION_STR GetXnuSuffix()),
"rx");
}
if ((p = getenv("HOME"))) {
UnveilIfExists(
__join_paths(buf, sizeof(buf), p, ".ape-" APE_VERSION_STR), "rx");
UnveilIfExists(
__join_paths(buf, sizeof(buf), p, ".ape-" APE_VERSION_STR GetXnuSuffix()), "rx");
UnveilIfExists(__join_paths(buf, sizeof(buf), p,
".ape-" APE_VERSION_STR GetXnuSuffix()),
"rx");
}
}
}