diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-10-03 03:11:26 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-10-03 03:11:26 +0000 |
commit | 87c0e623ba14c2de376ca9af06fb21da7b2c2215 (patch) | |
tree | e67887aaff9248f2e0c866566ed0b2967cabaae2 /src/backend/main/main.c | |
parent | de1af06287dd0b169385b0756074a0b24feb123c (diff) | |
download | postgresql-87c0e623ba14c2de376ca9af06fb21da7b2c2215.tar.gz postgresql-87c0e623ba14c2de376ca9af06fb21da7b2c2215.zip |
New diff that now covers the entire tree. Applying this gets postgresql
working on the VERY latest version of BeOS. I'm sure there will be
alot of comments, but then if there weren't I'd be disappointed!
Thanks for your continuing efforts to get this into your tree.
Haven't bothered with the new files as they haven't changed.
BTW Peter, the compiler is "broken" about the bool define and so on.
I'm filing a bug report to try and get it addressed. Hopefully then we
can tidy up the code a bit.
I await the replies with interest :)
David Reid
Diffstat (limited to 'src/backend/main/main.c')
-rw-r--r-- | src/backend/main/main.c | 11 |
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)); |