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/recpt/usersaction.cpp

    r1285 r2212  
    148148  if (cfgline.size() == 1) {
    149149    if (key == "usersfile") usersfile = cfgline[0];
    150     else if (key == "gsdlhome") {
    151       if (usersfile.empty())
    152     usersfile = filename_cat (cfgline[0], "etc", "users.db");
    153     }
    154150  }
    155151
    156152  action::configure (key, cfgline);
     153}
     154
     155bool usersaction::init (ostream &logout) {
     156
     157  if (gdbmhome.empty()) {
     158    logout << "ERROR (usersaction::init) gdbmhome is not set\n";
     159    return false;
     160  }
     161
     162  if (usersfile.empty()) usersfile = filename_cat (gdbmhome, "etc", "users.db");
     163
     164  return action::init (logout);
    157165}
    158166
Note: See TracChangeset for help on using the changeset viewer.