* Glenn wrote:
> On Mon, Feb 10, 2003 at 04:51:38AM +0100, Andr? Malo wrote:
>> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9977
>>
>> can someone have a look at it? I can't verify, because I don't have access
>> to a sunos4 system :)
>
> I don't have access to such a system either, but I do remember seeing
> a similar bug report a long, long time ago. See:
> http://bugs.apache.org/index.cgi/full/5913
ah, thanks. After some further looking through the rest of apache code, I'd
consider this to be correct. I've attached patches for 1.3 and 2.1. Any
objections, someone?
nd
--
s s^saaaaaoaaaoaaaaooooaaoaaaomaaaa a alataa aaoat a a
a maoaa a laoata a oia a o a m a o alaoooat aaool aaoaa
matooololaaatoto aaa o a o ms;s;\s;s;g;y;s;:;s;y#mailto: #
\51/\134\137| http://www.perlig.de #;print;# > [EMAIL PROTECTED]
Index: src/CHANGES
===================================================================
RCS file: /home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.1874
diff -u -r1.1874 CHANGES
--- src/CHANGES 31 Jan 2003 02:25:36 -0000 1.1874
+++ src/CHANGES 10 Feb 2003 14:03:19 -0000
@@ -1,5 +1,8 @@
Changes with Apache 1.3.28
+ *) Fix suexec compile error under SUNOS4, where strerror() doesn't
+ exist. PR 5913, 9977. [Andr� Malo]
+
*) Fix bug where 'Satisfy Any' without an AuthType resulted in an
"Internal Server Error" response. PR 9076. [Andr� Malo]
Index: src/support/suexec.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/support/suexec.c,v
retrieving revision 1.58
diff -u -r1.58 suexec.c
--- src/support/suexec.c 3 Feb 2003 17:13:37 -0000 1.58
+++ src/support/suexec.c 10 Feb 2003 14:03:21 -0000
@@ -111,6 +111,11 @@
}
#endif
+#if defined(NEED_STRERROR)
+extern char *sys_errlist[];
+#define strerror(x) sys_errlist[(x)]
+#endif
+
#if defined(PATH_MAX)
#define AP_MAXPATH PATH_MAX
#elif defined(MAXPATHLEN)
Index: CHANGES
===================================================================
RCS file: /home/cvs/httpd-2.0/CHANGES,v
retrieving revision 1.1056
diff -u -r1.1056 CHANGES
--- CHANGES 10 Feb 2003 03:37:22 -0000 1.1056
+++ CHANGES 10 Feb 2003 14:02:17 -0000
@@ -2,6 +2,9 @@
[Remove entries to the current 2.0 section below, when backported]
+ *) Fix suexec compile error under SUNOS4, where strerror() doesn't
+ exist. PR 5913, 9977. [Andr� Malo]
+
*) Let suexec send a message to stderr, if it failed or its policy
was violated. This message appears in the error log and allows
for easier debugging. PR 10773. [Andr� Malo]
Index: support/suexec.c
===================================================================
RCS file: /home/cvs/httpd-2.0/support/suexec.c,v
retrieving revision 1.23
diff -u -r1.23 suexec.c
--- support/suexec.c 10 Feb 2003 03:37:22 -0000 1.23
+++ support/suexec.c 10 Feb 2003 14:02:20 -0000
@@ -111,6 +111,11 @@
}
#endif
+#if defined(SUNOS4)
+extern char *sys_errlist[];
+#define strerror(x) sys_errlist[(x)]
+#endif
+
#if defined(PATH_MAX)
#define AP_MAXPATH PATH_MAX
#elif defined(MAXPATHLEN)