smbcquotas: print "NO LIMIT" only if returned quota value is 0.
authorUri Simchoni <uri@samba.org>
Wed, 30 Mar 2016 11:20:44 +0000 (14:20 +0300)
committerJeremy Allison <jra@samba.org>
Thu, 31 Mar 2016 18:30:11 +0000 (20:30 +0200)
commit9d6d62010be2a54b6828cc4cc9c13b5657c8b4a0
tree1538e698533cd625c6683d40770ab9c143c4e7cd
parent0e01ed06a40146d145ffe439a65fb9035ab7b1cf
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>
source3/utils/smbcquotas.c