mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
smbd: is_in_path() deals with a NULL namelist
Don't need to check in the callers Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a8dd943c11
commit
a77c6b5939
@ -1495,9 +1495,7 @@ static int virusfilter_vfs_close(
|
||||
return close_result;
|
||||
}
|
||||
|
||||
if (config->exclude_files && is_in_path(fname,
|
||||
config->exclude_files, false))
|
||||
{
|
||||
if (is_in_path(fname, config->exclude_files, false)) {
|
||||
DBG_INFO("Not scanned: exclude files: %s/%s\n",
|
||||
cwd_fname, fname);
|
||||
return close_result;
|
||||
|
@ -1670,9 +1670,9 @@ static NTSTATUS open_file(
|
||||
fsp->fsp_flags.modified = false;
|
||||
fsp->sent_oplock_break = NO_BREAK_SENT;
|
||||
fsp->fsp_flags.is_directory = false;
|
||||
if (conn->aio_write_behind_list &&
|
||||
is_in_path(smb_fname->base_name, conn->aio_write_behind_list,
|
||||
posix_open ? true: conn->case_sensitive)) {
|
||||
if (is_in_path(smb_fname->base_name,
|
||||
conn->aio_write_behind_list,
|
||||
posix_open ? true : conn->case_sensitive)) {
|
||||
fsp->fsp_flags.aio_write_behind = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user