We should never be looking at the info level here, the create
call will have set the correct POSIX flag on the smb_filename
struct.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Mar 19 22:55:11 UTC 2019 on sn-devel-144
* to do this call. JRA.
*/
- if (INFO_LEVEL_IS_UNIX(file_info_level)) {
+ if (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH) {
/* Always do lstat for UNIX calls. */
if (SMB_VFS_LSTAT(conn, fsp->fsp_name)) {
DEBUG(3,("smbd_smb2_getinfo_send: "
* handle (returned from an NT SMB). NT5.0 seems
* to do this call. JRA.
*/
- if (INFO_LEVEL_IS_UNIX(file_info_level)) {
+ if (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH) {
/* Always do lstat for UNIX calls. */
if (SMB_VFS_LSTAT(conn, fsp->fsp_name)) {
DEBUG(3,("smbd_smb2_setinfo_send: "