summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-08-13 19:58:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:38 -0500
commit89dfa3883f0f4766af33f880a331512ec6970a7d (patch)
tree83741c7b225b3f56e4e8b7410c6c1ef95d19f729 /source3/smbd/reply.c
parent89f27bb35b023472d2ab01f47050ad05b91bd35a (diff)
downloadsamba-89dfa3883f0f4766af33f880a331512ec6970a7d.tar.gz
samba-89dfa3883f0f4766af33f880a331512ec6970a7d.tar.bz2
samba-89dfa3883f0f4766af33f880a331512ec6970a7d.zip
r24383: Convert call_nt_transact_ioctl to the new API
(This used to be commit 8e6485e0782e9ab31b07dd9f662bd845f58faf4a)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c16
1 files changed, 16 insertions, 0 deletions
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
@@ -312,6 +312,22 @@ BOOL check_fsp(connection_struct *conn, struct smb_request *req,
}
/****************************************************************************
+ 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.
****************************************************************************/