summaryrefslogtreecommitdiff
path: root/source3/smbd/files.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-09 15:38:53 +0200
committerVolker Lendecke <vl@samba.org>2008-10-13 19:32:38 +0200
commitc3fedcddd5e79c60f5fcc0219752c27277a4d9f7 (patch)
tree8248641a0fbedb7d87072cfc2e852683b2da3267 /source3/smbd/files.c
parent3bbe5e88e55a92a177260310daffd6deae551ba3 (diff)
downloadsamba-c3fedcddd5e79c60f5fcc0219752c27277a4d9f7.tar.gz
samba-c3fedcddd5e79c60f5fcc0219752c27277a4d9f7.tar.bz2
samba-c3fedcddd5e79c60f5fcc0219752c27277a4d9f7.zip
Pass struct smb_request to file_new
Goal is to remove the chain_fsp global variable
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r--source3/smbd/files.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index ee3b6f520c..33c43356c6 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -57,7 +57,8 @@ static unsigned long get_gen_count(void)
Find first available file slot.
****************************************************************************/
-NTSTATUS file_new(connection_struct *conn, files_struct **result)
+NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
+ files_struct **result)
{
int i;
static int first_file;
@@ -498,16 +499,14 @@ void file_chain_reset(void)
Duplicate the file handle part for a DOS or FCB open.
****************************************************************************/
-NTSTATUS dup_file_fsp(files_struct *fsp,
- uint32 access_mask,
- uint32 share_access,
- uint32 create_options,
- files_struct **result)
+NTSTATUS dup_file_fsp(struct smb_request *req, files_struct *fsp,
+ uint32 access_mask, uint32 share_access,
+ uint32 create_options, files_struct **result)
{
NTSTATUS status;
files_struct *dup_fsp;
- status = file_new(fsp->conn, &dup_fsp);
+ status = file_new(NULL, fsp->conn, &dup_fsp);
if (!NT_STATUS_IS_OK(status)) {
return status;