]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
First part of getting BeOS to survive restarts correctly.
authorDavid Reid <dreid@apache.org>
Fri, 24 Mar 2000 10:54:24 +0000 (10:54 +0000)
committerDavid Reid <dreid@apache.org>
Fri, 24 Mar 2000 10:54:24 +0000 (10:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84833 13f79535-47bb-0310-9956-ffa450edef68

os/beos/beosd.c

index 4cf2deb9da5270b8585c62fa1b3c23d72bed0293..46eb5a22a3791aeee08ef410ed1ca7863292f402 100644 (file)
@@ -156,17 +156,10 @@ static int set_group_privs(void)
 
 int beosd_setup_child(void)
 {
-    if (set_group_privs()) {
-       return -1;
-    }
+    /* TODO: revisit the whole issue of users/groups for BeOS as
+     * R4.5.2 and below doesn't really have much concept of them.
+     */
 
-    /* Only try to switch if we're running as root */
-    if (!geteuid() && (
-       setuid(beosd_config.user_id) == -1)) {
-       ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
-                   "setuid: unable to change uid");
-       return -1;
-    }
     return 0;
 }