s3-cliquota: correctly handle no-more-entries
authorUri Simchoni <uri@samba.org>
Fri, 16 Sep 2016 18:57:50 +0000 (21:57 +0300)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 00:00:22 +0000 (02:00 +0200)
commit5a947d6ca1928e4e4bd4caf2b86698b86d378a81
tree8eaa114f0db469f4c7b242bd636d9d65e1617366
parent7c786f89820dc1f8e2a7e8da1b80042dd69b7188
s3-cliquota: correctly handle no-more-entries

When listing quota records, a Windows server would
return STATUS_SUCCESS until no more entries are available,
where it would return STATUS_NO_MORE_ENTRIES.

The fix keeps old behavior of empty answer also signifying
end of record, to maintain compatibility with Samba servers.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12270

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cliquota.c