]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
quota: Fix negative quota_warnings with count backend
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 9 Jun 2017 09:07:00 +0000 (12:07 +0300)
committerGitLab <gitlab@git.dovecot.net>
Fri, 9 Jun 2017 13:20:11 +0000 (16:20 +0300)
commitf9362223346d10a5866b376ed227b77b26ea4292
tree020580373a4bcc4190d9836b54a4af758c3d2daf
parent6ffa4fc008d510a503acb6f06ef847ecf84b7f93
quota: Fix negative quota_warnings with count backend

For example this never triggered:

  quota_warning = -messages=100%% quota-warning %u -100

The change to quota_alloc() to update the count_used doesn't seem to
actually fix anything right now, but it makes the code more correct.
src/plugins/quota/quota-private.h
src/plugins/quota/quota-storage.c
src/plugins/quota/quota.c