1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-24 10:50:22 +03:00

s3: smbd: filename_convert() no longer deals with wildcards.

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>
This commit is contained in:
Jeremy Allison 2021-12-03 11:30:42 -08:00 committed by Ralph Boehme
parent 24002be588
commit da1417fb37

View 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));