diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-02-22 09:30:51 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-02-25 08:03:42 +0100 |
commit | 0634c12abb634034fcaf842647c2bc09a92bfd68 (patch) | |
tree | b81b61d3b49d823f96c761c6df8be1b08e24d16c | |
parent | d5414cdc63b797a47fcbd1f55df98c7dd850ffa6 (diff) | |
download | samba-0634c12abb634034fcaf842647c2bc09a92bfd68.tar.gz samba-0634c12abb634034fcaf842647c2bc09a92bfd68.tar.bz2 samba-0634c12abb634034fcaf842647c2bc09a92bfd68.zip |
pvfs_unlink: add a fast path for the non wildcard case
metze
(This used to be commit 83e6c99f78990b6b1df520bdee14b9f931ad0420)
-rw-r--r-- | source4/ntvfs/posix/pvfs_unlink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_unlink.c b/source4/ntvfs/posix/pvfs_unlink.c index 2b96a5032c..72649e646d 100644 --- a/source4/ntvfs/posix/pvfs_unlink.c +++ b/source4/ntvfs/posix/pvfs_unlink.c @@ -138,6 +138,10 @@ NTSTATUS pvfs_unlink(struct ntvfs_module_context *ntvfs, return pvfs_unlink_stream(pvfs, req, unl, name); } + if (!name->has_wildcard) { + return pvfs_unlink_one(pvfs, req, unl, name); + } + /* get list of matching files */ status = pvfs_list_start(pvfs, name, req, &dir); if (!NT_STATUS_IS_OK(status)) { |