summaryrefslogtreecommitdiff
path: root/source3/smbd/ntquotas.c
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-05-12 03:13:41 +0000
committerAlexander Bokovoy <ab@samba.org>2003-05-12 03:13:41 +0000
commitfe3b05eec41e25e97da3eca87ee372c82df32796 (patch)
tree52a0108e130510ffd6b0153c2779d18e5a761a7f /source3/smbd/ntquotas.c
parenteeac7cc99d0ecd817470ad5237b141106331fec3 (diff)
downloadsamba-fe3b05eec41e25e97da3eca87ee372c82df32796.tar.gz
samba-fe3b05eec41e25e97da3eca87ee372c82df32796.tar.bz2
samba-fe3b05eec41e25e97da3eca87ee372c82df32796.zip
Fix a wrong define check.
(This used to be commit f1c4f65ae019c61f4a8178bee094dd66506dbcae)
Diffstat (limited to 'source3/smbd/ntquotas.c')
-rw-r--r--source3/smbd/ntquotas.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/ntquotas.c b/source3/smbd/ntquotas.c
index d4e165e5ac..f34d61541c 100644
--- a/source3/smbd/ntquotas.c
+++ b/source3/smbd/ntquotas.c
@@ -20,8 +20,6 @@
#include "includes.h"
-#ifdef WITH_QUOTAS
-
static SMB_BIG_UINT limit_nt2unix(SMB_BIG_UINT in, SMB_BIG_UINT bsize)
{
SMB_BIG_UINT ret = (SMB_BIG_UINT)0;
@@ -123,7 +121,11 @@ int vfs_set_ntquota(files_struct *fsp, enum SMB_QUOTA_TYPE qtype, DOM_SID *psid,
id.uid = -1;
+#if defined(QUOTABLOCK_SIZE)
D.bsize = (SMB_BIG_UINT)QUOTABLOCK_SIZE;
+#else
+ D.bsize = (SMB_BIG_UINT)1024;
+#endif
D.softlimit = limit_nt2unix(qt->softlim,D.bsize);
D.hardlimit = limit_nt2unix(qt->hardlim,D.bsize);
D.qflags = qt->qflags;
@@ -260,4 +262,3 @@ void destroy_quota_handle(void **pqt_handle)
return;
}
-#endif /* WITH_QUOTAS */