httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@kiwi.ICS.UCI.EDU>
Subject Re: [PATCH] BeOS on 1.3.13
Date Sat, 24 Jun 2000 07:56:24 GMT
>I won't apply this unless I get a go ahead as 1.3 is "stable".  The intent
>is primarily to remove the problem that R5 of BeOS introduced for user
>authentication code (it just doesn't work).  Without this patch Apache
>1.3.13 won't run on BeOS R5 at all.  The second part just lets people know
>it's running on BeOS instead of unix.

Ummm, did it get mangled?  I find it hard to believe it compiled.
see below.

>Index: src/main/http_main.c
>===================================================================
>RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
>retrieving revision 1.503
>diff -u -u -r1.503 http_main.c
>--- src/main/http_main.c        2000/06/16 18:31:04     1.503
>+++ src/main/http_main.c        2000/06/22 10:26:13
>@@ -3107,7 +3107,7 @@
>
> static void set_group_privs(void)
> {
>-#if !defined(WIN32) && !defined(NETWARE)
>+#if !defined(WIN32) && !defined(NETWARE) && B_BEOS_VERSION < 0x0460

You need to test (defined(B_BEOS_VERSION) && B_BEOS_VERSION < 0x0460)

>     if (!geteuid()) {
>        char *name;
>
>@@ -3178,7 +3178,7 @@
>     else if ((wrapper.st_mode & S_ISUID) && (wrapper.st_uid == 0)) {
>        result = 1;
>     }
>-#endif /* ndef WIN32 */
>+#endif /* ndef WIN32, NETWARE, BEOS pre R5 */
>     return result;
> }
>
>Index: src/os/unix/os.h
>===================================================================
>RCS file: /home/cvs/apache-1.3/src/os/unix/os.h,v
>retrieving revision 1.42
>diff -u -u -r1.42 os.h
>--- src/os/unix/os.h    1999/12/09 19:21:55     1.42
>+++ src/os/unix/os.h    2000/06/22 10:26:19
>@@ -61,7 +61,11 @@
> #include "ap_config.h"
>
> #ifndef PLATFORM
>+#ifndef BEOS
> #define PLATFORM "Unix"
>+#else
>+#define "BeOS"
>+#endif
> #endif

I believe you meant

 +#define PLATFORM "BeOS"


....Roy

Mime
View raw message