mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3:smbd: store a dirptr on the files_struct for SMB2 Query Directory
metze
This commit is contained in:
parent
e621b7a52e
commit
f00a3bfee7
@ -459,6 +459,8 @@ typedef struct files_struct {
|
|||||||
struct notify_change_buf *notify;
|
struct notify_change_buf *notify;
|
||||||
|
|
||||||
struct files_struct *base_fsp; /* placeholder for delete on close */
|
struct files_struct *base_fsp; /* placeholder for delete on close */
|
||||||
|
|
||||||
|
struct dptr_struct *dptr;
|
||||||
} files_struct;
|
} files_struct;
|
||||||
|
|
||||||
#include "ntquotas.h"
|
#include "ntquotas.h"
|
||||||
|
@ -753,6 +753,10 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
|
|||||||
strerror(errno)));
|
strerror(errno)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fsp->dptr) {
|
||||||
|
dptr_CloseDir(fsp->dptr);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Do the code common to files and directories.
|
* Do the code common to files and directories.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user