Branch: Tag:

1999-06-21

1999-06-21 19:12:41 by Martin Stjernholm <mast@lysator.liu.se>

seteuid to root before doing initgroups() in set_u_and_gid().

Rev: server/base_server/roxen.pike:1.298

1:   /* -  * $Id: roxen.pike,v 1.297 1999/06/19 23:41:14 grubba Exp $ +  * $Id: roxen.pike,v 1.298 1999/06/21 19:12:41 mast Exp $    *    * The Roxen Challenger main program.    *
7:    */      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.297 1999/06/19 23:41:14 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.298 1999/06/21 19:12:41 mast Exp $";      object backend_thread;   object argcache;
1599:    object threads_disabled = _disable_threads();   #endif    + #if constant(seteuid) +  if (geteuid() != getuid()) seteuid (getuid()); + #endif +    #if constant(initgroups)    catch {    initgroups(pw[0], gid);
1606:    };   #endif    - #if constant(seteuid) -  if (geteuid() != getuid()) seteuid (getuid()); - #endif -  +     if (QUERY(permanent_uid)) {   #if constant(setuid)    if (g) {