summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-18 10:30:10 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-18 10:30:10 +1100
commitbae8c93d9b5b2ae9a028573559b2fd0d306c0530 (patch)
treeb8789e386c332306fda081bae92e478227bad695 /source4/ntvfs/posix
parent0463d698835053af680db4f388c732d2557f7c8a (diff)
downloadsamba-bae8c93d9b5b2ae9a028573559b2fd0d306c0530.tar.gz
samba-bae8c93d9b5b2ae9a028573559b2fd0d306c0530.tar.bz2
samba-bae8c93d9b5b2ae9a028573559b2fd0d306c0530.zip
s4-smb2: fixed SMB2 find commands
The change to check for invalid \ prefix on SMB2 paths broke the internal SMB2 code.
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_search.c4
1 files changed, 2 insertions, 2 deletions
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);