]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: filename_convert() no longer deals with wildcards.
authorJeremy Allison <jra@samba.org>
Fri, 3 Dec 2021 19:30:42 +0000 (11:30 -0800)
committerRalph Boehme <slow@samba.org>
Sat, 11 Dec 2021 07:17:29 +0000 (07:17 +0000)
These are already errored out with NT_STATUS_OBJECT_NAME_INVALID
in the unix_convert() code.

Remove the check.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c

index e9bfbf790bf6133ab5db9171ce4f3e238ce83e5d..5988396ee130e479f899f751ab0897b45a2ecdfa 100644 (file)
@@ -1970,7 +1970,6 @@ NTSTATUS filename_convert(TALLOC_CTX *ctx,
                          struct smb_filename **_smb_fname)
 {
        struct smb_filename *smb_fname = NULL;
-       bool has_wild;
        NTSTATUS status;
 
        *_smb_fname = NULL;
@@ -2045,14 +2044,6 @@ NTSTATUS filename_convert(TALLOC_CTX *ctx,
                return status;
        }
 
-       has_wild = ms_has_wild(name_in);
-       if (has_wild) {
-               DBG_DEBUG("[%s] contains wildcard, skipping pathref fsp\n",
-                         name_in);
-               *_smb_fname = smb_fname;
-               return NT_STATUS_OK;
-       }
-
        if (!VALID_STAT(smb_fname->st)) {
                DBG_DEBUG("[%s] does not exist, skipping pathref fsp\n",
                          smb_fname_str_dbg(smb_fname));