--- modules/dav/fs/repos.c.orig 2014-11-29 09:22:43.000000000 +0000 +++ modules/dav/fs/repos.c 2015-02-20 02:14:03.428266305 +0000 @@ -969,7 +969,11 @@ { apr_status_t rv; - apr_file_close(stream->f); + apr_status_t status = apr_file_close(stream->f); + + if (status != APR_SUCCESS) { + return dav_new_error(stream->p, MAP_IO2HTTP(status), 0, status, "There was a problem closing the stream"); + } if (!commit) { if (stream->temppath) {