Branch: Tag:

1997-09-12

1997-09-12 06:14:41 by Per Hedbor <ph@opera.com>

'Privs' introduced

Rev: server/base_server/configuration.pike:1.77
Rev: server/base_server/disk_cache.pike:1.28
Rev: server/base_server/hosts.pike:1.13
Rev: server/base_server/neighborhood.pike:1.26
Rev: server/base_server/read_config.pike:1.14
Rev: server/base_server/roxen.pike:1.130
Rev: server/base_server/roxenloader.pike:1.41
Rev: server/modules/filesystems/filesystem.pike:1.22
Rev: server/modules/graphics/graphic_text.pike:1.71
Rev: server/modules/logging/home_logger.pike:1.11
Rev: server/modules/misc/mirrorserver.pike:1.6
Rev: server/modules/misc/userdb.pike:1.16
Rev: server/modules/scripting/cgi.pike:1.37
Rev: server/modules/scripting/pikescript.pike:1.15
Rev: server/modules/tags/htmlparse.pike:1.43
Rev: server/modules/tags/killframe.pike:1.10
Rev: server/protocols/http.pike:1.43

1: - constant cvs_version = "$Id: roxen.pike,v 1.129 1997/09/09 06:37:20 neotron Exp $"; + constant cvs_version = "$Id: roxen.pike,v 1.130 1997/09/12 06:14:28 per Exp $";   #define IN_ROXEN   #include <roxen.h>   #include <config.h>
173:   #ifdef THREADS   #define THREAD_DEBUG   #if 0 - class Queue { + class Queue + {    mixed *buffer=({});       int size() { return sizeof(buffer); }
538:    if(old != new) {    perror("Got new supports data from www.roxen.com\n");    perror("Replacing old file with new data.\n"); -  object privs=((program)"privs")("Replacing etc/supports"); +  object privs=Privs("Replacing etc/supports");    mv("etc/supports", "etc/supports~");    Stdio.write_file("etc/supports", new);    old = Stdio.read_bytes( "etc/supports" );
901:   {    catch(Array.map(indices(portno)), destruct);    -  object privs = ((program)"privs")("Shutting down the server"); +  object privs = Privs("Shutting down the server");    // Change to root user.       stop_all_modules();
1780:       object privs;    if(port[0] < 1024) -  privs = ((program)"privs")("Opening listen port below 1024"); +  privs = 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 "+    port[0]+" interface " +port[2]+"\n");