Skip to content

Commit 3e100a9

Browse files
committed
* 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
1 parent 70bb2a8 commit 3e100a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/dav/fs/quota.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,10 @@ int dav_fs_quota_precondition(request_rec *r,
339339
case M_COPY: /* FALLTHROUGH */
340340
case M_MOVE:
341341
/*
342-
* If source size is known, we can forecast ovequota
342+
* If source size is known, we can forecast overquota
343343
*/
344-
if ((size = dav_fs_size(src) != DAV_FS_BYTES_ERROR) &&
345-
(size > available_bytes)) {
344+
if ((size = dav_fs_size(src)) != DAV_FS_BYTES_ERROR
345+
&& size > available_bytes) {
346346
status = HTTP_INSUFFICIENT_STORAGE;
347347
*err = dav_new_error_tag(r->pool, status, 0, 0,
348348
msg, "DAV:", tag);

0 commit comments

Comments
 (0)