added aliases to configuration. an alias is another name for

a screen.  it's expected that the server will want to accept
a given client under several names (e.g. the hostname and the
FQDN).
This commit is contained in:
crs
2002-06-08 23:24:40 +00:00
parent 562e3aebb5
commit 8b2a282eb5
4 changed files with 274 additions and 65 deletions

View File

@@ -394,14 +394,15 @@ static bool loadConfig(const char* pathname, bool require)
log((CLOG_DEBUG "configuration read successfully"));
return true;
}
catch (XConfigRead&) {
catch (XConfigRead& e) {
if (require) {
log((CLOG_PRINT "%s: cannot read configuration '%s'",
pname, pathname));
log((CLOG_PRINT "%s: cannot read configuration '%s': %s",
pname, pathname, e.what()));
bye(3);
}
else {
log((CLOG_DEBUG "cannot read configuration \"%s\"", pathname));
log((CLOG_DEBUG "cannot read configuration \"%s\": %s",
pathname, e.what()));
}
}
return false;