Commit cd8785e2 authored by rswindell's avatar rswindell
Browse files

Re-lock the msg base in packmsgs() when re-opening (to set status header),

so that the smb_unlock() in main() doesn't fail and display the harmless
error:
Error -207 (smb_unlock 2 'No such file or directory' removing mail.lock)
unlocking mail
parent 73abed1a
......@@ -1267,6 +1267,10 @@ void packmsgs(ulong packable)
,beep,i,smb.last_error,smb.file);
return;
}
if((i=smb_lock(&smb)) != SMB_SUCCESS)
fprintf(errfp,"\n%s!ERROR %d (%s) locking %s\n"
,beep,i,smb.last_error,smb.file);
if((i=smb_locksmbhdr(&smb))!=0)
fprintf(errfp,"\n%s!smb_locksmbhdr returned %d: %s\n"
,beep,i,smb.last_error);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment