From: Jeffrey Altman Date: Mon, 23 Jun 2008 04:02:06 +0000 (+0000) Subject: DEVEL153X-windows-buf-clean-access-denied-20080612 X-Git-Tag: openafs-devel-1_5_39~12 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9e8c19659c09a8940d6d6ba4ab3c9cc25918d40c;p=packages%2Fo%2Fopenafs.git DEVEL153X-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. (cherry picked from commit 15ff831e4dfa8d2942536d002b86579f6128a5df) --- diff --git a/src/WINNT/afsd/cm_buf.c b/src/WINNT/afsd/cm_buf.c index 584ede068..e5bd61dc3 100644 --- a/src/WINNT/afsd/cm_buf.c +++ b/src/WINNT/afsd/cm_buf.c @@ -722,7 +722,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;