1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

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 <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Uri Simchoni 2016-05-23 22:27:28 +03:00
parent 9fa8b5cf84
commit 38356bed80

View File

@ -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();