mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
vfs_fruit: disable fd reopening optimisations for the two special macOS streams
I couldn't figure out why the reopen fails a few vfs.fruit tests, so for now disable the optimisations. It only affects the two special Mac streams, so it's not *that* bad, but definitely something we would want to improve on in the near future. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
@ -1656,6 +1656,8 @@ static int fruit_openat(vfs_handle_struct *handle,
|
||||
|
||||
DBG_DEBUG("Path [%s] fd [%d]\n", smb_fname_str_dbg(smb_fname), fd);
|
||||
|
||||
/* Prevent reopen optimisation */
|
||||
fsp->fsp_flags.have_proc_fds = false;
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user