mirror of
https://github.com/anope/anope.git
synced 2026-06-26 14:16:39 +02:00
Allow using absolute paths in more places.
This commit is contained in:
@@ -321,7 +321,7 @@ static dbFILE *open_db_read(const char *service, const char *filename, int versi
|
||||
int myversion;
|
||||
|
||||
f = new dbFILE;
|
||||
strscpy(f->filename, (Anope::DataDir + "/" + filename).c_str(), sizeof(f->filename));
|
||||
strscpy(f->filename, Anope::ExpandData(filename).c_str(), sizeof(f->filename));
|
||||
f->mode = 'r';
|
||||
fp = fopen(f->filename, "rb");
|
||||
if (!fp)
|
||||
|
||||
Reference in New Issue
Block a user