Files
haikuports/sys-cluster/openmpi/patches/openmpi-4.0.1.patchset
2019-04-12 10:16:26 +02:00

56 lines
1.9 KiB
Plaintext

From 201133ba37dec47855b83e062472f3f42d14f99a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Wed, 29 Aug 2018 20:51:09 +0200
Subject: Haiku: user is effective root
---
orte/orted/orted_submit.c | 3 +++
orte/tools/orterun/orterun.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/orte/orted/orted_submit.c b/orte/orted/orted_submit.c
index ccc089e..4f4905e 100644
--- a/orte/orted/orted_submit.c
+++ b/orte/orted/orted_submit.c
@@ -319,6 +319,8 @@ int orte_submit_init(int argc, char *argv[],
exit(0);
}
+#ifndef __HAIKU__
+/* User is effective root on Haiku */
/* check if we are running as root - if we are, then only allow
* us to proceed if the allow-run-as-root flag was given. Otherwise,
* exit with a giant warning flag
@@ -355,6 +357,7 @@ int orte_submit_init(int argc, char *argv[],
fprintf(stderr, "--------------------------------------------------------------------------\n");
exit(1);
}
+#endif
moveon:
/* process any mca params */
diff --git a/orte/tools/orterun/orterun.c b/orte/tools/orterun/orterun.c
index 85aba0a..34351ef 100644
--- a/orte/tools/orterun/orterun.c
+++ b/orte/tools/orterun/orterun.c
@@ -138,6 +138,8 @@ int orterun(int argc, char *argv[])
exit(1);
}
+#ifndef __HAIKU__
+/* User is effective root on Haiku */
/* check if we are running as root - if we are, then only allow
* us to proceed if the allow-run-as-root flag was given. Otherwise,
* exit with a giant warning flag
@@ -159,6 +161,7 @@ int orterun(int argc, char *argv[])
fprintf(stderr, "--------------------------------------------------------------------------\n");
exit(1);
}
+#endif
/* setup to listen for commands sent specifically to me, even though I would probably
* be the one sending them! Unfortunately, since I am a participating daemon,
--
2.21.0