]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-sysquotas-linux: remove check for EDQUOT on getting user quota
authorUri Simchoni <uri@samba.org>
Mon, 23 May 2016 19:27:28 +0000 (22:27 +0300)
committerUri Simchoni <uri@samba.org>
Thu, 26 May 2016 13:21:16 +0000 (15:21 +0200)
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>
source3/lib/sysquotas_linux.c

index 61cbd2b4e4fce9557804c42e06bbfb41bb3e7924..2de3c85106ac5e7cbd71ca1d07de3b7d94572446 100644 (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();