summaryrefslogtreecommitdiffstats
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-05-12 02:01:31 +0000
committerAlexander Bokovoy <ab@samba.org>2003-05-12 02:01:31 +0000
commitf9c23432aeb573cb971c7a87adc6ca952ce30d2f (patch)
tree8e345dd90a118749dd5ca26e18e833a5b0877c01 /source3/smbd/trans2.c
parent69306dcdd974c53a1258d5e7aaf63e09a6c35ed5 (diff)
downloadsamba-f9c23432aeb573cb971c7a87adc6ca952ce30d2f.tar.gz
samba-f9c23432aeb573cb971c7a87adc6ca952ce30d2f.tar.xz
samba-f9c23432aeb573cb971c7a87adc6ca952ce30d2f.zip
Small fix for HAVE_SYS_QUOTAS usage, spotted by build farm
(This used to be commit 01cff3e2e4e2724ed112fa62a775055192a2207b)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 771e2ff444..9604017d74 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1320,6 +1320,7 @@ static int call_trans2qfsinfo(connection_struct *conn, char *inbuf, char *outbuf
char *vname = volume_label(SNUM(conn));
int snum = SNUM(conn);
char *fstype = lp_fstype(SNUM(conn));
+ int quota_flag = 0;
DEBUG(3,("call_trans2qfsinfo: level = %d\n", info_level));
@@ -1369,14 +1370,14 @@ static int call_trans2qfsinfo(connection_struct *conn, char *inbuf, char *outbuf
case SMB_QUERY_FS_ATTRIBUTE_INFO:
case SMB_FS_ATTRIBUTE_INFORMATION:
+
+#if defined(HAVE_SYS_QUOTAS)
+ quota_flag = FILE_VOLUME_QUOTAS;
+#endif
+
SIVAL(pdata,0,FILE_CASE_PRESERVED_NAMES|FILE_CASE_SENSITIVE_SEARCH|
(lp_nt_acl_support(SNUM(conn)) ? FILE_PERSISTENT_ACLS : 0)|
-#if defined(HAVE_SYS_QUOTAS)
- FILE_VOLUME_QUOTAS
-#else
- 0
-#if
- ); /* FS ATTRIBUTES */
+ quota_flag); /* FS ATTRIBUTES */
SIVAL(pdata,4,255); /* Max filename component length */
/* NOTE! the fstype must *not* be null terminated or win98 won't recognise it