mirror of
https://github.com/samba-team/samba.git
synced 2025-02-17 13:57:47 +03:00
smbd: base POSIX semantics of call_trans2findfirst() on SMB_FILENAME_POSIX_PATH flag
We really want to apply POSIX semantics in this place whenever the client has enabled UNIX extensions, not only when using UNIX find info-levels. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2e5e49e41d
commit
71a5759623
@ -1784,7 +1784,7 @@ static bool smbd_dirptr_lanman2_mode_fn(TALLOC_CTX *ctx,
|
||||
bool ms_dfs_link = false;
|
||||
uint32_t mode = 0;
|
||||
|
||||
if (INFO_LEVEL_IS_UNIX(state->info_level)) {
|
||||
if (smb_fname->flags & SMB_FILENAME_POSIX_PATH) {
|
||||
if (SMB_VFS_LSTAT(state->conn, smb_fname) != 0) {
|
||||
DEBUG(5,("smbd_dirptr_lanman2_mode_fn: "
|
||||
"Couldn't lstat [%s] (%s)\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user