You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by dr...@locus.apache.org on 2000/03/24 11:54:24 UTC

cvs commit: apache-2.0/src/os/beos beosd.c

dreid       00/03/24 02:54:24

  Modified:    src      CHANGES
               src/os/beos beosd.c
  Log:
  First part of getting BeOS to survive restarts correctly.
  
  Revision  Changes    Path
  1.45      +4 -0      apache-2.0/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/CHANGES,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- CHANGES	2000/03/23 16:30:09	1.44
  +++ CHANGES	2000/03/24 10:54:23	1.45
  @@ -1,4 +1,8 @@
   Changes with Apache 2.0a2-dev
  +  *) Allow BeOS to survive restarts, log properly and a few
  +     small things it had problems with due to the way it setup
  +     users and groups. [David Reid]
  +
     *) Get mod_rewrite working with APR locks
        [Paul Reder <re...@raleigh.ibm.com>]
   
  
  
  
  1.10      +3 -10     apache-2.0/src/os/beos/beosd.c
  
  Index: beosd.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/os/beos/beosd.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- beosd.c	2000/03/10 00:07:22	1.9
  +++ beosd.c	2000/03/24 10:54:24	1.10
  @@ -156,17 +156,10 @@
   
   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;
   }