LICENSE MIT
If the attempt to write the buffer returns access denied, store that
in the cm_buf_t object so that the error can be propagated.
(cherry picked from commit
15ff831e4dfa8d2942536d002b86579f6128a5df)
* because we aren't going to be able to write this data to the file
* server.
*/
- if (code == CM_ERROR_NOSUCHFILE || code == CM_ERROR_BADFD){
+ if (code == CM_ERROR_NOSUCHFILE || code == CM_ERROR_BADFD || code == CM_ERROR_NOACCESS){
bp->flags &= ~CM_BUF_DIRTY;
bp->flags |= CM_BUF_ERROR;
bp->dirty_offset = 0;