Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -1267,6 +1267,10 @@ void packmsgs(ulong packable) ...@@ -1267,6 +1267,10 @@ void packmsgs(ulong packable)
,beep,i,smb.last_error,smb.file); ,beep,i,smb.last_error,smb.file);
return; 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) if((i=smb_locksmbhdr(&smb))!=0)
fprintf(errfp,"\n%s!smb_locksmbhdr returned %d: %s\n" fprintf(errfp,"\n%s!smb_locksmbhdr returned %d: %s\n"
,beep,i,smb.last_error); ,beep,i,smb.last_error);
......
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