Ignore:
Timestamp:
2001-03-20T21:48:12+12:00 (23 years ago)
Author:
sjboddie
Message:

Fixed a bug that was causing the local library server to attempt to write
files to gsdlhome (i.e. the cd-rom drive if served from a cd) under certain
circumstances.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/cgiwrapper.cpp

    r1918 r2212  
    228228}
    229229
    230 static void page_errorparseargs (const text_t &gsdlhome) {
     230static void page_errorparseargs (const text_t &/*gsdlhome*/) {
    231231
    232232  text_t message = "Error\n\n"
     
    238238}
    239239
    240 static void page_errorcgipage (const text_t &gsdlhome) {
     240static void page_errorcgipage (const text_t &/*gsdlhome*/) {
    241241
    242242  text_t message = "Error\n\n"
     
    351351  // required to create a collection specific receptionist
    352352  text_t collection = "";
    353   text_tset gsdlhomes;
     353  text_tset gdbmhomes;
    354354  text_tset collections;
    355355
     
    371371    // collection specific receptionist - one collection, one gsdlhome
    372372    collections.insert (collection);
    373     gsdlhomes.insert (gsdl_gsdlhome);
     373    gdbmhomes.insert (gsdl_gdbmhome);
    374374    collectioninfo_t tmp;
    375375    tmp.gsdl_gsdlhome = gsdl_gsdlhome;
     
    387387    colinfo_tmap::const_iterator end_info = gsdl_collectinfo.end();
    388388    while (this_info != end_info) {
    389       if (gsdlhomes.find ((*this_info).second.gsdl_gsdlhome) == gsdlhomes.end()) {
     389      if (gdbmhomes.find ((*this_info).second.gsdl_gdbmhome) == gdbmhomes.end()) {
    390390    these_collections.erase (these_collections.begin(), these_collections.end());
    391391    read_dir (filename_cat ((*this_info).second.gsdl_gsdlhome, "collect"), these_collections);
     
    411411      colhere ++;
    412412    }
    413     gsdlhomes.insert ((*this_info).second.gsdl_gsdlhome);
     413    gdbmhomes.insert ((*this_info).second.gsdl_gdbmhome);
    414414      }
    415415      this_info ++;
    416416    }
    417417 
    418     // then if necessary the main gsdlhome (this should only happen if the
    419     // gsdl.ini is a little screwed up and no volume gsdlhomes occurred
    420     if (gsdlhomes.find (gsdl_gsdlhome) == gsdlhomes.end()) {
     418    // then if necessary the main gdbmhome (this should only happen if the
     419    // gsdl.ini is a little screwed up and no volume gdbmhomes occurred)
     420    if (gdbmhomes.find (gsdl_gdbmhome) == gdbmhomes.end()) {
    421421      these_collections.erase (these_collections.begin(), these_collections.end());
    422       read_dir (filename_cat (gsdl_gsdlhome, "collect"), these_collections);
     422      read_dir (filename_cat (gsdl_gdbmhome, "collect"), these_collections);
    423423      colhere = these_collections.begin();
    424424      colend = these_collections.end();
     
    431431    colhere ++;
    432432      }
    433       gsdlhomes.insert (gsdl_gsdlhome);
     433      gdbmhomes.insert (gsdl_gdbmhome);
    434434    }
    435435  }
     
    525525  // set defaults
    526526  recpt.configure ("gsdlhome", gsdl_gsdlhome);
     527  recpt.configure ("gdbmhome", gsdl_gdbmhome);
    527528  recpt.configure ("collection", collection);
    528529
     
    543544  }
    544545
    545   // read in config files of each gsdlhome (in no particular order)
     546  // read in config files of each gdbmhome (in no particular order)
    546547  // those read in last will override those read earlier
    547548  // collections being used together in this way should be
    548549  // careful not to have main.cfg files that might
    549550  // screw with each other.
    550   text_tset::const_iterator thome = gsdlhomes.begin();
    551   text_tset::const_iterator ehome = gsdlhomes.end();
     551  text_tset::const_iterator thome = gdbmhomes.begin();
     552  text_tset::const_iterator ehome = gdbmhomes.end();
    552553  while (thome != ehome) {
    553554    if (!main_cfg_read (recpt, *thome, collection)) {
Note: See TracChangeset for help on using the changeset viewer.