summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-06 12:53:05 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-19 22:12:42 +0200
commitf00a3bfee7577c9ef82cb03b0580dccf0c7bc463 (patch)
treefa6bb9d2c0375f03154bbc5d4ba735e730fd57a8 /source3
parente621b7a52ee597cef9fbcd7b7af337e8749c4dca (diff)
downloadsamba-f00a3bfee7577c9ef82cb03b0580dccf0c7bc463.tar.gz
samba-f00a3bfee7577c9ef82cb03b0580dccf0c7bc463.tar.bz2
samba-f00a3bfee7577c9ef82cb03b0580dccf0c7bc463.zip
s3:smbd: store a dirptr on the files_struct for SMB2 Query Directory
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h2
-rw-r--r--source3/smbd/close.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 28bd60a670..4cd090bc7d 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -459,6 +459,8 @@ typedef struct files_struct {
struct notify_change_buf *notify;
struct files_struct *base_fsp; /* placeholder for delete on close */
+
+ struct dptr_struct *dptr;
} files_struct;
#include "ntquotas.h"
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 788b0a7cec..1f2e4604c2 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -753,6 +753,10 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
strerror(errno)));
}
+ if (fsp->dptr) {
+ dptr_CloseDir(fsp->dptr);
+ }
+
/*
* Do the code common to files and directories.
*/