aboutsummaryrefslogtreecommitdiff
path: root/src/backend/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/main/main.c')
-rw-r--r--src/backend/main/main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/backend/main/main.c b/src/backend/main/main.c
index a20b39886d5..7625bf7626a 100644
--- a/src/backend/main/main.c
+++ b/src/backend/main/main.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.30 2000/09/06 14:15:19 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.31 2000/10/03 03:11:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -85,11 +85,18 @@ main(int argc, char *argv[])
*/
len = strlen(argv[0]);
- if (!geteuid())
+/* OK this is going to seem weird, but BeOS is presently basically
+ * a single user system. There is work going on, but at present it'll
+ * say that every user is uid 0, i.e. root. We'll inhibit this check
+ * until Be get the system working with multiple users!!
+ */
+#ifndef __BEOS__
+if (!geteuid())
{
fprintf(stderr, "%s", NOROOTEXEC);
exit(1);
}
+#endif /* __BEOS__ */
if (len >= 10 && !strcmp(argv[0] + len - 10, "postmaster"))
exit(PostmasterMain(argc, argv));