1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3:smbd: store a dirptr on the files_struct for SMB2 Query Directory

metze
This commit is contained in:
Stefan Metzmacher 2009-08-06 12:53:05 +02:00
parent e621b7a52e
commit f00a3bfee7
2 changed files with 6 additions and 0 deletions

View File

@ -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"

View File

@ -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.
*/