Branch: Tag:

2004-07-17

2004-07-17 23:01:38 by Stephen R. van den Berg <srb@cuci.nl>

StringFile -> Stdio.FakeFile

Rev: server/bin/unpack_cif.pike:1.9
Rev: server/modules/filesystems/repositoryfs.pike:1.5
Rev: server/modules/filesystems/sqlfs.pike:1.12
Rev: server/modules/filesystems/tarfs.pike:1.14
Rev: server/plugins/font_handlers/compactimgfile.pike:1.12
Rev: server/server_core/configuration.pike:1.576
Rev: server/server_core/prototypes.pike:1.80

2:      inherit "module";    - constant cvs_version = "$Id: tarfs.pike,v 1.13 2004/06/05 15:19:44 _cvs_dirix Exp $"; + constant cvs_version = "$Id: tarfs.pike,v 1.14 2004/07/17 23:01:37 _cvs_stephen Exp $";      // The Filesystem.Tar module is not threadsafe.   constant thread_safe = 0;
83:    object s = tar->stat( f );    if( !s ) return 0;    if( s->isdir() ) return -1; -  return StringFile( tar->open( f, "r" )->read(), +  return Stdio.FakeFile( tar->open( f, "r" )->read(),    stat_file( f, id ));   }