Branch: Tag:

1997-08-08

1997-08-08 00:39:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now opens configuration-ports under 1024 as root.

Rev: server/base_server/roxen.pike:1.91

1: - constant cvs_version = "$Id: roxen.pike,v 1.90 1997/08/06 16:39:03 grubba Exp $"; + constant cvs_version = "$Id: roxen.pike,v 1.91 1997/08/08 00:39:40 grubba Exp $";   #define IN_ROXEN   #include <roxen.h>   #include <config.h>
1682:    if(tmp = rp(port, 0))    port = tmp;    +  object privs; +  if(port[0] < 1024) +  privs = ((program)"privs")("Opening listen port below 1024");    if(o=create_listen_socket(port[0],0,port[2],requestprogram,port))    {    perror("Configuration port: "+port[1]+" port number "