From 3e100a96c4e79cf06e16a0fb141786ab48410fca Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 2 Feb 2026 11:44:09 +0000 Subject: [PATCH] * modules/dav/fs/quota.c (dav_fs_quota_precondition): Fix 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dav/fs/quota.c b/modules/dav/fs/quota.c index 1c278906421..7d239f1c478 100644 --- a/modules/dav/fs/quota.c +++ b/modules/dav/fs/quota.c @@ -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); -- 2.47.3