From: Uri Simchoni Date: Mon, 23 May 2016 19:27:28 +0000 (+0300) Subject: s3-sysquotas-linux: remove check for EDQUOT on getting user quota X-Git-Tag: tdb-1.3.10~1053 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38356bed8064e2b4be2923ae2073800248db749f;p=thirdparty%2Fsamba.git s3-sysquotas-linux: remove check for EDQUOT on getting user quota The same check is done by sys_get_quota() which is the only caller. Signed-off-by: Uri Simchoni Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/sysquotas_linux.c b/source3/lib/sysquotas_linux.c index 61cbd2b4e4f..2de3c85106a 100644 --- a/source3/lib/sysquotas_linux.c +++ b/source3/lib/sysquotas_linux.c @@ -180,10 +180,7 @@ int sys_get_vfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt switch (qtype) { case SMB_USER_QUOTA_TYPE: case SMB_GROUP_QUOTA_TYPE: - if ((ret=sys_get_linux_gen_quota(path, bdev, qtype, id, dp))&&errno != EDQUOT) { - return ret; - } - ret = 0; + ret=sys_get_linux_gen_quota(path, bdev, qtype, id, dp); break; case SMB_USER_FS_QUOTA_TYPE: id.uid = getuid();