Skip to content
Snippets Groups Projects
Commit 7cd5a655 authored by rswindell's avatar rswindell
Browse files

Bugfix: write_msgs_cfg() would return FALSE if it had to create the mail

database (even if it created it successfully).
parent 7142a28d
No related branches found
No related tags found
No related merge requests found
......@@ -615,14 +615,13 @@ BOOL DLLCALL write_msgs_cfg(scfg_t* cfg, int backup_level)
return(FALSE);
}
if(!filelength(fileno(smb.shd_fp))) {
smb.status.max_crcs=cfg->mail_maxcrcs;
smb.status.max_msgs=MAX_SYSMAIL;
smb.status.max_crcs=cfg->mail_maxcrcs;
smb.status.max_age=cfg->mail_maxage;
smb.status.attr=SMB_EMAIL;
if(smb_create(&smb)!=0)
/* errormsg(WHERE,ERR_CREATE,smb.file,x) */;
i=smb_create(&smb);
smb_close(&smb);
return(FALSE);
return(i==0);
}
if(smb_locksmbhdr(&smb)!=0) {
smb_close(&smb);
......
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