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

src/WINNT/afsd/cm_buf.c

index d97739f5759a850d441dafb0bcffda63cdc29350..62b8078ac515ab286559a804fd9cff14a6772689 100644 (file)
@@ -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;