Branch: Tag:

1997-03-02

1997-03-02 19:28:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Updated to Pike 0.5b2.

Rev: server/base_server/cache.pike:1.8.2.1
Rev: server/base_server/color.pike:1.2.2.1
Rev: server/base_server/config/builders.pike:1.1.1.1.2.1
Rev: server/base_server/config/describers.pike:1.16.2.2
Rev: server/base_server/config/draw_things.pike:1.16.2.1
Rev: server/base_server/config/low_describers.pike:1.3.2.1
Rev: server/base_server/db.pike:1.2.2.1
Rev: server/base_server/disk_cache.pike:1.12.2.1
Rev: server/base_server/hosts.pike:1.8.2.1
Rev: server/base_server/language.pike:1.6.2.1
Rev: server/base_server/mainconfig.pike:1.29.2.1
Rev: server/base_server/module_support.pike:1.7.2.1
Rev: server/base_server/newdecode.pike:1.3.2.1
Rev: server/base_server/persistent.pike:1.3.2.1
Rev: server/base_server/read_config.pike:1.6.2.1
Rev: server/base_server/roxen.pike:1.31.2.3
Rev: server/base_server/socket.pike:1.3.2.1
Rev: server/bin/install.pike:1.8.2.1
Rev: server/etc/include/roxen.pre.pike:1.5.2.1
Rev: server/modules/directories/directories.pike:1.7.2.1
Rev: server/modules/directories/directories2.pike:1.1.2.4
Rev: server/modules/directories/fastdir.pike:1.5.2.1
Rev: server/modules/filesystems/filesystem.pike:1.7.2.1
Rev: server/modules/filesystems/userfs.pike:1.8.2.2
Rev: server/modules/filters/htaccess.pike:1.7.2.1
Rev: server/modules/filters/redirect.pike:1.4.2.1
Rev: server/modules/graphics/tablist.pike:1.2.2.1
Rev: server/modules/logging/home_logger.pike:1.6.2.1
Rev: server/modules/misc/contenttypes.pike:1.5.2.1
Rev: server/modules/misc/ismap.pike:1.5.2.1
Rev: server/modules/misc/userdb.pike:1.8.2.1
Rev: server/modules/scripting/cgi.pike:1.9.2.2
Rev: server/modules/scripting/fcgi.pike:1.6.2.1
Rev: server/modules/scripting/pikescript.pike:1.6.2.2
Rev: server/modules/tags/htmlparse.pike:1.19.2.3

1: + import files; +    void perror(string format,mixed ... args);    -  + #if !efun(error) + #define error(X) do{array Y=backtrace();throw(({(X),Y[..sizeof(Y)-2]}));}while(0) + #endif /* !error */ +    string popen(string s, void|mapping env, int|void uid, int|void gid)   {    object p,p2;    -  p2 = File(); +  p2 = file();    p=p2->pipe();    if(!p) error("Popen failed. (couldn't create pipe)\n");   
17:    perror("File to dup2 to closed!\n");    exit(99);    } -  p->dup2(File("stdout")); +  p->dup2(file("stdout"));    if(uid || gid)    {    object privs = ((program)"privs")("Executing script as non-www user");
29:    if(pw) initgroups(pw[0], (int)olduid[0]);   #endif    } -  catch(exece("/bin/sh", ({ "-c", s }), (env||environment))); +  catch(exece("/bin/sh", ({ "-c", s }), (env||getenv())));    };    exit(69);    }else{
67:    env=([]);       -  stdin->dup2(File("stdin")); -  stdout->dup2(File("stdout")); -  stderr->dup2(File("stderr")); +  stdin->dup2(file("stdin")); +  stdout->dup2(file("stdout")); +  stderr->dup2(file("stderr"));    if(stringp(wd) && sizeof(wd))    cd(wd);    exece(s, args, env);