Skip to content
Snippets Groups Projects
Commit b2d27d57 authored by deuce's avatar deuce
Browse files

Open the config file unbuffered to help with concurrency.

parent aecde406
No related branches found
No related tags found
No related merge requests found
...@@ -848,7 +848,7 @@ var unauthenticated_command_handlers = { ...@@ -848,7 +848,7 @@ var unauthenticated_command_handlers = {
return; return;
} }
cfgfile=new File(format(system.data_dir+"user/%04d.imap", user.number)); cfgfile=new File(format(system.data_dir+"user/%04d.imap", user.number));
if (!cfgfile.open(cfgfile.exists ? 'r+':'w+', true)) { if (!cfgfile.open(cfgfile.exists ? 'r+':'w+', true, 0)) {
tagged(tag, "NO", "Can't open imap state file"); tagged(tag, "NO", "Can't open imap state file");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment