Skip to content
Snippets Groups Projects
Commit e4e41db7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't create (or write) to qnet.dab, so open with right access

We're just converting/upgrading this file (to time.ini), so don't log an error
(reading) if/when the file doesn't exist.
parent ed3f2ca0
No related branches found
No related tags found
1 merge request!488Overhaul LZH code
......@@ -2900,7 +2900,7 @@ void event_thread(void* arg)
}
// Read qnet.dab (legacy), and auto-upgrade to time.ini
SAFEPRINTF(str,"%sqnet.dab",sbbs->cfg.ctrl_dir);
if((file=sbbs->nopen(str,O_RDWR|O_CREAT))!=-1) {
if((file=sbbs->nopen(str,O_RDONLY))!=-1) {
for(i=0;i<sbbs->cfg.total_qhubs;i++) {
sbbs->cfg.qhub[i]->last=0;
if(read(file,&sbbs->cfg.qhub[i]->last,sizeof(sbbs->cfg.qhub[i]->last))!=sizeof(sbbs->cfg.qhub[i]->last))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment