diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ntvfs/posix/pvfs_search.c | 4 |
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); |