From 89dfa3883f0f4766af33f880a331512ec6970a7d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 13 Aug 2007 19:58:28 +0000 Subject: r24383: Convert call_nt_transact_ioctl to the new API (This used to be commit 8e6485e0782e9ab31b07dd9f662bd845f58faf4a) --- source3/smbd/reply.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/smbd/reply.c') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 26ddde7a65..ea86cd03d8 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -311,6 +311,22 @@ BOOL check_fsp(connection_struct *conn, struct smb_request *req, return True; } +/**************************************************************************** + Check if we have a correct fsp. Replacement for the FSP_BELONGS_CONN macro +****************************************************************************/ + +BOOL fsp_belongs_conn(connection_struct *conn, struct smb_request *req, + files_struct *fsp, struct current_user *user) +{ + if ((fsp) && (conn) && ((conn)==(fsp)->conn) + && (current_user.vuid==(fsp)->vuid)) { + return True; + } + + reply_nterror(req, NT_STATUS_INVALID_HANDLE); + return False; +} + /**************************************************************************** Reply to a (netbios-level) special message. ****************************************************************************/ -- cgit