summaryrefslogtreecommitdiff
path: root/source3/smbd/close.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-02-09 15:05:58 -0800
committerJeremy Allison <jra@samba.org>2011-02-09 15:13:40 -0800
commit1607ebfe8632fa13c5ffb466b8c9f416d7ab20aa (patch)
tree8abea25027bd719eb7eb8e1fdb89371e7f72d49a /source3/smbd/close.c
parent61c1f312d2665197d34245537a8f5b641bda1243 (diff)
downloadsamba-1607ebfe8632fa13c5ffb466b8c9f416d7ab20aa.tar.gz
samba-1607ebfe8632fa13c5ffb466b8c9f416d7ab20aa.tar.bz2
samba-1607ebfe8632fa13c5ffb466b8c9f416d7ab20aa.zip
Allow SMB2_FIND to actually use the open fd handle if we support fdopendir. Fallback to pathname opendir if not.
Diffstat (limited to 'source3/smbd/close.c')
-rw-r--r--source3/smbd/close.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index d5a824f868..60cf8ed945 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -699,7 +699,7 @@ static bool recursive_rmdir(TALLOC_CTX *ctx,
SMB_ASSERT(!is_ntfs_stream_smb_fname(smb_dname));
- dir_hnd = OpenDir(talloc_tos(), conn, smb_dname->base_name, NULL, 0);
+ dir_hnd = OpenDir(talloc_tos(), conn, NULL, smb_dname->base_name, NULL, 0);
if(dir_hnd == NULL)
return False;
@@ -817,6 +817,7 @@ static NTSTATUS rmdir_internals(TALLOC_CTX *ctx, files_struct *fsp)
char *talloced = NULL;
long dirpos = 0;
struct smb_Dir *dir_hnd = OpenDir(talloc_tos(), conn,
+ NULL,
smb_dname->base_name, NULL,
0);