]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/dav/fs/quota.c (dav_fs_quota_precondition): Fix
authorJoe Orton <jorton@apache.org>
Mon, 2 Feb 2026 11:44:09 +0000 (11:44 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 2 Feb 2026 11:44:09 +0000 (11:44 +0000)
  operator-precedence bug which disabled quota enforcement for
  COPY/MOVE.

PR: 69795

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

modules/dav/fs/quota.c

index 1c278906421a957e16217efa840fad88fe0a52cd..7d239f1c478ea7873750eccec02eb0e55014f0a2 100644 (file)
@@ -339,10 +339,10 @@ int dav_fs_quota_precondition(request_rec *r,
     case M_COPY: /* FALLTHROUGH */
     case M_MOVE:
         /*
-         * If source size is known, we can forecast ovequota
+         * If source size is known, we can forecast overquota
          */
-        if ((size = dav_fs_size(src) != DAV_FS_BYTES_ERROR) &&
-            (size > available_bytes)) {
+        if ((size = dav_fs_size(src)) != DAV_FS_BYTES_ERROR
+            && size > available_bytes) {
             status = HTTP_INSUFFICIENT_STORAGE;
             *err = dav_new_error_tag(r->pool, status, 0, 0,
                                      msg, "DAV:", tag);