summaryrefslogtreecommitdiff
path: root/source3/smbd/quotas.c
diff options
context:
space:
mode:
authorTimur <timur@FreeBSD.org>2008-09-15 18:21:02 -0700
committerJeremy Allison <jra@samba.org>2008-09-15 18:21:02 -0700
commita59618e88b361240331ce3179b0ac97c10050c03 (patch)
treed75cab99ceddd434a7dbe4850618dd5f4f97818a /source3/smbd/quotas.c
parent61cb830f664068862613440db838c6720996dcca (diff)
downloadsamba-a59618e88b361240331ce3179b0ac97c10050c03.tar.gz
Fix cut and paste error in quota code.
Diffstat (limited to 'source3/smbd/quotas.c')
-rw-r--r--source3/smbd/quotas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c
index f47e89bd220..b6f748da33b 100644
--- a/source3/smbd/quotas.c
+++ b/source3/smbd/quotas.c
@@ -544,7 +544,7 @@ static bool nfs_quotas(char *nfspath, uid_t euser_id, SMB_BIG_UINT *bsize, SMB_B
*bsize = gqr.getquota_rslt_u.gqr_rquota.rq_bsize;
*dsize = D.dqb_bsoftlimit;
- if (D.dqb_curblocks == D.dqb_curblocks == 1)
+ if (D.dqb_curblocks == 1)
*bsize = 512;
if (D.dqb_curblocks > D.dqb_bsoftlimit) {
@@ -1104,7 +1104,7 @@ static bool nfs_quotas(char *nfspath, uid_t euser_id, SMB_BIG_UINT *bsize, SMB_B
*bsize = gqr.getquota_rslt_u.gqr_rquota.rq_bsize;
*dsize = D.dqb_bsoftlimit;
- if (D.dqb_curblocks == D.dqb_curblocks == 1)
+ if (D.dqb_curblocks == 1)
*bsize = DEV_BSIZE;
if (D.dqb_curblocks > D.dqb_bsoftlimit) {