From: Uri Simchoni Date: Wed, 27 Apr 2016 20:21:51 +0000 (+0300) Subject: xfs quotas - fix case of no quota for user X-Git-Tag: talloc-2.1.7~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d28282ce573380f230bd683e655bfc77d358a706;p=thirdparty%2Fsamba.git xfs quotas - fix case of no quota for user Fixup commit ce82f66b9fdc611124f7284e32e44ed3df2d7295 Add missing success return value when user has no quota record (this is considered success with no quota) Signed-off-by: Uri Simchoni Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Apr 29 05:39:14 CEST 2016 on sn-devel-144 --- diff --git a/source3/lib/sysquotas_xfs.c b/source3/lib/sysquotas_xfs.c index bea86d5341d..8db52bd8459 100644 --- a/source3/lib/sysquotas_xfs.c +++ b/source3/lib/sysquotas_xfs.c @@ -98,6 +98,8 @@ int sys_get_xfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt if (ret != 0 && errno != ENOENT) { return ret; } + + ret = 0; break; #ifdef HAVE_GROUP_QUOTA case SMB_GROUP_QUOTA_TYPE: