summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-19 18:46:57 +0200
committerVolker Lendecke <vl@samba.org>2008-06-19 18:51:38 +0200
commit52664f62ba84719a9ea6eb8f9c01f1f3a9bd1b24 (patch)
tree5ec0a18c19d919768503e024486e095cd87fccec /source3/smbd/trans2.c
parente901466061bbbbe0c7b5dc9856346a308d80506b (diff)
downloadsamba-52664f62ba84719a9ea6eb8f9c01f1f3a9bd1b24.tar.gz
samba-52664f62ba84719a9ea6eb8f9c01f1f3a9bd1b24.tar.bz2
samba-52664f62ba84719a9ea6eb8f9c01f1f3a9bd1b24.zip
Remove current_user references from trans2.c
This involved replacing the CHECK_NTQUOTA_HANDLE_OK macro by a function. (This used to be commit 5595cdf837edb82db69a3e57bcf3108be7feeeb8)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index ee966ad8cd..881b29c6f0 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -28,7 +28,6 @@
extern int max_send;
extern enum protocol_types Protocol;
extern uint32 global_client_caps;
-extern struct current_user current_user;
#define get_file_size(sbuf) ((sbuf).st_size)
#define DIR_ENTRY_SAFETY_MARGIN 4096
@@ -3293,7 +3292,8 @@ cap_low = 0x%x, cap_high = 0x%x\n",
*/
fsp = file_fsp(SVAL(params,0));
- if (!CHECK_NTQUOTA_HANDLE_OK(fsp,conn)) {
+ if (!check_fsp_ntquota_handle(conn, req,
+ fsp)) {
DEBUG(3,("TRANSACT_GET_USER_QUOTA: no valid QUOTA HANDLE\n"));
reply_nterror(
req, NT_STATUS_INVALID_HANDLE);