From: Jeffrey Altman Date: Thu, 12 Jun 2008 17:04:38 +0000 (+0000) Subject: windows-buf-clean-access-denied-20080612 X-Git-Tag: openafs-devel-1_5_61~1049 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=15ff831e4dfa8d2942536d002b86579f6128a5df windows-buf-clean-access-denied-20080612 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. --- diff --git a/src/WINNT/afsd/cm_buf.c b/src/WINNT/afsd/cm_buf.c index d97739f..62b8078 100644 --- a/src/WINNT/afsd/cm_buf.c +++ b/src/WINNT/afsd/cm_buf.c @@ -676,7 +676,7 @@ long buf_CleanAsyncLocked(cm_buf_t *bp, cm_req_t *reqp) * 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;