mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s3: VFS: default. In vfswrap_read_dfs_pathat() use sys_fstatat().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
106beab5bf
commit
9fa5e171b9
@ -499,9 +499,11 @@ static NTSTATUS vfswrap_read_dfs_pathat(struct vfs_handle_struct *handle,
|
||||
goto err;
|
||||
}
|
||||
|
||||
ret = sys_lstat(smb_fname->base_name,
|
||||
&smb_fname->st,
|
||||
lp_fake_directory_create_times(SNUM(handle->conn)));
|
||||
ret = sys_fstatat(fsp_get_pathref_fd(dirfsp),
|
||||
smb_fname->base_name,
|
||||
&smb_fname->st,
|
||||
AT_SYMLINK_NOFOLLOW,
|
||||
lp_fake_directory_create_times(SNUM(handle->conn)));
|
||||
if (ret < 0) {
|
||||
status = map_nt_error_from_unix(errno);
|
||||
goto err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user