1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Fix bug #6769 - symlink unlink does nothing.

Always use LSTAT for POSIX pathnames.
Jeremy.
This commit is contained in:
Jeremy Allison 2009-10-01 16:54:06 -07:00
parent c38c99af91
commit ce791d6645

View File

@ -1231,7 +1231,11 @@ static NTSTATUS vfswrap_streaminfo(vfs_handle_struct *handle,
if (!NT_STATUS_IS_OK(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;
TALLOC_FREE(smb_fname);
}