]> granicus.if.org Git - apache/commitdiff
It's critical that apps use the APR_STATUS_IS_EFOO() canonicalization
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 12 Apr 2001 13:32:33 +0000 (13:32 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 12 Apr 2001 13:32:33 +0000 (13:32 +0000)
  wrappers, or some platforms errors are missed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88822 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/fs/repos.c

index 8dde6f307cc5aca0024e810ff73bc0b292604a55..e8064d1cc7fb3a707ab958e456c4824f555987a2 100644 (file)
@@ -868,7 +868,7 @@ static dav_error * dav_fs_write_stream(dav_stream *stream,
     apr_status_t status;
 
     status = apr_file_write_full(stream->f, buf, bufsize, NULL);
-    if (status == APR_ENOSPC) {
+    if (APR_STATUS_IS_ENOSPC(status)) {
         return dav_new_error(stream->p, HTTP_INSUFFICIENT_STORAGE, 0,
                              "There is not enough storage to write to "
                              "this resource.");