diff --git a/libc/proc/execve-sysv.c b/libc/proc/execve-sysv.c index b4bec57c9..a45b9551b 100644 --- a/libc/proc/execve-sysv.c +++ b/libc/proc/execve-sysv.c @@ -134,10 +134,9 @@ int sys_execve(const char *prog, char *const argv[], char *const envp[]) { char *buf = alloca(PATH_MAX); const char *name = ""; if (IsXnu()) { - name = "/.ape-" APE_VERSION_STR GetXnuSuffix(); - } - else { - name = "/.ape-" APE_VERSION_STR; + name = "/.ape-" APE_VERSION_STR GetXnuSuffix(); + } else { + name = "/.ape-" APE_VERSION_STR; } InitExecve(); RetryExecve(Join(g_execve.tmpdir, name, buf), shargs, envp); diff --git a/tool/build/apelink.c b/tool/build/apelink.c index 3408abd18..947b62334 100644 --- a/tool/build/apelink.c +++ b/tool/build/apelink.c @@ -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 ] && " diff --git a/tool/build/pledge.c b/tool/build/pledge.c index f7e207e36..b35ba60af 100644 --- a/tool/build/pledge.c +++ b/tool/build/pledge.c @@ -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"); } } }