mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Fix bug #6769 - symlink unlink does nothing.
Always use LSTAT for POSIX pathnames. Jeremy.
This commit is contained in:
parent
c38c99af91
commit
ce791d6645
@ -1231,7 +1231,11 @@ static NTSTATUS vfswrap_streaminfo(vfs_handle_struct *handle,
|
|||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
ret = SMB_VFS_STAT(handle->conn, smb_fname);
|
if (lp_posix_pathnames()) {
|
||||||
|
ret = SMB_VFS_LSTAT(handle->conn, smb_fname);
|
||||||
|
} else {
|
||||||
|
ret = SMB_VFS_STAT(handle->conn, smb_fname);
|
||||||
|
}
|
||||||
sbuf = smb_fname->st;
|
sbuf = smb_fname->st;
|
||||||
TALLOC_FREE(smb_fname);
|
TALLOC_FREE(smb_fname);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user