From 1607ebfe8632fa13c5ffb466b8c9f416d7ab20aa Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 9 Feb 2011 15:05:58 -0800 Subject: Allow SMB2_FIND to actually use the open fd handle if we support fdopendir. Fallback to pathname opendir if not. --- source3/smbd/filename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/filename.c') diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 03877218de..8e6de84424 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -1074,7 +1074,7 @@ static int get_real_filename_full_scan(connection_struct *conn, } /* open the directory */ - if (!(cur_dir = OpenDir(talloc_tos(), conn, path, NULL, 0))) { + if (!(cur_dir = OpenDir(talloc_tos(), conn, NULL, path, NULL, 0))) { DEBUG(3,("scan dir didn't open dir [%s]\n",path)); TALLOC_FREE(unmangled_name); return -1; -- cgit