From bae8c93d9b5b2ae9a028573559b2fd0d306c0530 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 18 Oct 2009 10:30:10 +1100 Subject: s4-smb2: fixed SMB2 find commands The change to check for invalid \ prefix on SMB2 paths broke the internal SMB2 code. --- source4/ntvfs/posix/pvfs_search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/ntvfs/posix') diff --git a/source4/ntvfs/posix/pvfs_search.c b/source4/ntvfs/posix/pvfs_search.c index dc4f86b4d2..d0d2620648 100644 --- a/source4/ntvfs/posix/pvfs_search.c +++ b/source4/ntvfs/posix/pvfs_search.c @@ -666,10 +666,10 @@ static NTSTATUS pvfs_search_first_smb2(struct ntvfs_module_context *ntvfs, } if (strequal("", f->handle->name->original_name)) { - pattern = talloc_asprintf(req, "\\%s", io->in.pattern); + pattern = talloc_asprintf(req, "%s", io->in.pattern); NT_STATUS_HAVE_NO_MEMORY(pattern); } else { - pattern = talloc_asprintf(req, "\\%s\\%s", + pattern = talloc_asprintf(req, "%s\\%s", f->handle->name->original_name, io->in.pattern); NT_STATUS_HAVE_NO_MEMORY(pattern); -- cgit