You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/06/19 04:41:46 UTC

DO NOT REPLY [Bug 9977] New: - suexec uses strerror(), which is not in SunOS4

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9977>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9977

suexec uses strerror(), which is not in SunOS4

           Summary: suexec uses strerror(), which is not in SunOS4
           Product: Apache httpd-1.3
           Version: HEAD
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Other
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: satodai@dog.intcul.tohoku.ac.jp
                CC: satodai@dog.intcul.tohoku.ac.jp


in support/suexec.c, strerror() is used without any care for NEED_STRERROR.
so, it should have it's own strerror() like discribed bellow (the code is
from main/util.c):

--- suexec.c.org        Wed Jun 19 11:02:21 2002
+++ suexec.c    Wed Jun 19 11:02:21 2002
@@ -103,6 +103,19 @@
  ***********************************************************************
  */

+#ifdef NEED_STRERROR
+char *
+     strerror(int err)
+{
+
+    char *p;
+    extern char *const sys_errlist[];
+
+    p = sys_errlist[err];
+    return (p);
+}
+#endif
+
 #if defined(NEED_INITGROUPS)
 int initgroups(const char *name, gid_t basegid)
 {

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org