mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
smbcquotas: print "NO LIMIT" only if returned quota value is 0.
If the user being queried has no quota, the server returns 0 as its quota. This is the observed smbd and Windows behavior, which is also documented in [MS-FSA] 2.5.1.20. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11815 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0e01ed06a4
commit
9d6d62010b
@ -236,7 +236,7 @@ static const char *quota_str_static(uint64_t val, bool special, bool _numeric)
|
||||
{
|
||||
const char *result;
|
||||
|
||||
if (!_numeric&&special&&(val == SMB_NTQUOTAS_NO_LIMIT)) {
|
||||
if (!_numeric && special && val == 0) {
|
||||
return "NO LIMIT";
|
||||
}
|
||||
result = talloc_asprintf(talloc_tos(), "%"PRIu64, val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user