From: Joe Orton Date: Mon, 2 Feb 2026 11:44:09 +0000 (+0000) Subject: * modules/dav/fs/quota.c (dav_fs_quota_precondition): Fix X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e100a96c4e79cf06e16a0fb141786ab48410fca;p=thirdparty%2Fapache%2Fhttpd.git * 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 --- diff --git a/modules/dav/fs/quota.c b/modules/dav/fs/quota.c index 1c27890642..7d239f1c47 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);