summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-05-12 02:53:17 +0000
committerAlexander Bokovoy <ab@samba.org>2003-05-12 02:53:17 +0000
commiteeac7cc99d0ecd817470ad5237b141106331fec3 (patch)
tree2fed7508954d02063b1afe8fdda0224ae0942796 /source3
parentfdfcb62364594c620729a7cf06ee4963f1bb5c4d (diff)
downloadsamba-eeac7cc99d0ecd817470ad5237b141106331fec3.tar.gz
samba-eeac7cc99d0ecd817470ad5237b141106331fec3.tar.bz2
samba-eeac7cc99d0ecd817470ad5237b141106331fec3.zip
Wrap into WITH_QUOTAS yet another place in trans2
(This used to be commit fea5d85d947965bd4789ab31607fd48d78403696)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 9604017d74..2f2820e76b 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1480,6 +1480,7 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned
SIVAL(pdata,4,0); /* characteristics */
break;
+#ifdef WITH_QUOTAS
case SMB_FS_QUOTA_INFORMATION:
/*
* what we have to send --metze:
@@ -1550,6 +1551,7 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned
break;
}
+#endif /* WITH_QUOTAS */
case SMB_FS_OBJECTID_INFORMATION:
data_len = 64;
break;
@@ -1591,6 +1593,7 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned
return -1;
}
+#ifdef WITH_QUOTAS
/****************************************************************************
Reply to a TRANS2_SETFSINFO (set filesystem info).
****************************************************************************/
@@ -1625,6 +1628,7 @@ static int call_trans2setfsinfo(connection_struct *conn,
}
fsp = file_fsp(params,0);
+
if (!CHECK_NTQUOTA_HANDLE_OK(fsp,conn)) {
DEBUG(3,("TRANSACT_GET_USER_QUOTA: no valid QUOTA HANDLE\n"));
return ERROR_NT(NT_STATUS_INVALID_HANDLE);
@@ -1701,6 +1705,7 @@ static int call_trans2setfsinfo(connection_struct *conn,
return outsize;
}
+#endif /* WITH_QUOTAS */
/****************************************************************************
* Utility function to set bad path error.
@@ -3487,13 +3492,14 @@ int reply_trans2(connection_struct *conn,
END_PROFILE_NESTED(Trans2_qfsinfo);
break;
+#ifdef WITH_QUOTAS
case TRANSACT2_SETFSINFO:
START_PROFILE_NESTED(Trans2_setfsinfo);
outsize = call_trans2setfsinfo(conn, inbuf, outbuf, length, bufsize,
&params, total_params, &data, total_data);
END_PROFILE_NESTED(Trans2_setfsinfo);
break;
-
+#endif
case TRANSACT2_QPATHINFO:
case TRANSACT2_QFILEINFO:
START_PROFILE_NESTED(Trans2_qpathinfo);