diff options
-rw-r--r-- | source3/include/smb.h | 2 | ||||
-rw-r--r-- | source3/smbd/close.c | 4 |
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. */ |