]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL153X-windows-buf-clean-access-denied-20080612
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 23 Jun 2008 04:02:06 +0000 (04:02 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 23 Jun 2008 04:02:06 +0000 (04:02 +0000)
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)

src/WINNT/afsd/cm_buf.c

index 584ede068dbcca789f80794400151672411f179e..e5bd61dc377fd27291b348177fab1436cb2aa678 100644 (file)
@@ -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;