From 09880ab5cec1dcebfa863e3f5b6b332c58dc5b71 Mon Sep 17 00:00:00 2001 From: juanmont Date: Thu, 6 Sep 2018 11:08:58 +0200 Subject: [PATCH] F #2228: Fixed problem with defualt quotas (cherry picked from commit 56978c843308ea7a26e355a4d80e609701744800) --- src/um/Quota.cc | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/um/Quota.cc b/src/um/Quota.cc index d189f7d375..42c1ed6eeb 100644 --- a/src/um/Quota.cc +++ b/src/um/Quota.cc @@ -374,7 +374,14 @@ int Quota::update_limits( if (limit == "") { - limit_f = DEFAULT; + if ( is_default ) + { + limit_f = UNLIMITED; + } + else + { + limit_f = DEFAULT; + } } // Negative. Default & unlimited allowed @@ -413,8 +420,14 @@ VectorAttribute * Quota::new_quota(VectorAttribute * va) if (limit == "") { - limit_f = DEFAULT; - limit = DEFAULT_STR; + if ( is_default ) + { + limit_f = UNLIMITED; + } + else + { + limit_f = DEFAULT; + } } // Negative. Default & unlimited allowed if (( !is_default && limit_f < 0 && limit_f != UNLIMITED && limit_f != DEFAULT )