s3:smbd: let unix_convert() skip stat() calls for wildcard names
authorStefan Metzmacher <metze@samba.org>
Wed, 8 Sep 2010 10:06:03 +0000 (12:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Apr 2011 15:59:22 +0000 (17:59 +0200)
metze

source3/smbd/filename.c

index a69f51a9a94c1a71023d885ae2bc63aae87f1362..7178f82fcef86e1b5e236fc9e4a76d7b44f29486 100644 (file)
@@ -390,6 +390,11 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
                        goto fail;
                }
 
+               if (name_has_wildcard) {
+                       DEBUG(5,("Wildcard %s\n",start));
+                       goto done;
+               }
+
                /*
                 * Check if the name exists up to this point.
                 */