Branch: Tag:

1998-03-10

1998-03-10 22:19:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some catches.

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

1: - constant cvs_version="$Id: graphic_text.pike,v 1.114 1998/03/07 20:01:03 noring Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.115 1998/03/10 22:19:23 grubba Exp $";   constant thread_safe=1;      #include <module.h>
730: Inside #if undefined(__NT__)
   mkdirhier( query( "cache_dir" )+".foo" );   #ifndef __NT__   #if efun(chmod) -  chmod( query( "cache_dir" ), 0777 ); +  // FIXME: Should this error be propagated? +  catch { chmod( query( "cache_dir" ), 0777 ); };   #endif   #endif    remove_call_out(clean_cache_dir);
808: Inside #if undefined(__NT__)
   object fd = open(FNAME(a,b), "wct");   #ifndef __NT__   #if efun(chmod) -  chmod( FNAME(a,b), 0666 ); +  // FIXME: Should this error be propagated? +  catch { chmod( FNAME(a,b), 0666 ); };   #endif   #endif    if(!fd) return;
1126: Inside #if undefined(__NT__)
   object o = open(ARGHASH, "wct");   #ifndef __NT__   #if efun(chmod) -  chmod( ARGHASH, 0666 ); +  // FIXME: Should this error be propagated? +  catch { chmod( ARGHASH, 0666 ); };   #endif   #endif    string data=encode_value(cached_args);