mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user