s3-sysquotas: remove special handling of EDQUOT
commitb79ea7d3fb92ba95b3368604e79dbb26e88a4acf
authorUri Simchoni <uri@samba.org>
Fri, 27 May 2016 18:51:38 +0000 (27 21:51 +0300)
committerJeremy Allison <jra@samba.org>
Tue, 31 May 2016 22:57:32 +0000 (1 00:57 +0200)
treeccd3b5420de5177cb094c963d4ce4ec13e94defe
parent8078e5f15bb23f95faa1c12cb7ddc8a62dcf2661
s3-sysquotas: remove special handling of EDQUOT

The sysquotas module has several supported backends for
getting/setting user/group quota. This patch removes a check
by the common code, to see if the backend has returned EDQUOT.

Before this patch, it was OK for a backend to return with error
and errno set to EDQUOT, and that meant success, but with a warning
that the user/group is over quota. This is the system behavior on
some Unices. This patch removes this from the protocol between the
sysquota module and its backend drivers - it's the responsibility
of the backend to return 0 iff it has fulfilled the request to get or
set quota.

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