Branch: Tag:

1997-10-15

1997-10-15 16:11:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now releases privs somewhat earlier.

Rev: server/modules/graphics/graphic_text.pike:1.87

1: - constant cvs_version="$Id: graphic_text.pike,v 1.86 1997/10/03 21:46:39 js Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.87 1997/10/15 16:11:26 grubba Exp $";   constant thread_safe=1;      #include <module.h>
870:    args_restored = 1;    object privs = Privs("Reading gtext argument list");    object o = open(".gtext_args_"+hash(mc->name), "r"); +  privs = 0;    if(o)    {    string data = o->read();
895:    int on;    on = number;    restore_cached_args(); -  object privs = Privs("Saving gtext argument list"); +     if(on > number) number=on; -  +  object privs = Privs("Saving gtext argument list");    object o = open(".gtext_args_"+hash(mc->name), "wct"); -  +  privs = 0;    string data=encode_value(cached_args);    catch {    object q;