diff options
author | Jeremy Allison <jra@samba.org> | 2019-03-18 14:52:26 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-03-19 22:55:11 +0000 |
commit | 944c577a96fd58634f21bda75deb52a4fb9a6d8e (patch) | |
tree | 1526c36183b8676872bc2b0286c8868f5ea39e8d /source3/smbd/smb2_setinfo.c | |
parent | 7e77f1fea6c922b76a6961e477a4d72815f08886 (diff) | |
download | samba-944c577a96fd58634f21bda75deb52a4fb9a6d8e.tar.gz |
s3: smbd: Clarify POSIX name handling in SMB2 get/setinfo calls.
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
Diffstat (limited to 'source3/smbd/smb2_setinfo.c')
-rw-r--r-- | source3/smbd/smb2_setinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_setinfo.c b/source3/smbd/smb2_setinfo.c index b19cbb150a7..92e06f8c7d2 100644 --- a/source3/smbd/smb2_setinfo.c +++ b/source3/smbd/smb2_setinfo.c @@ -409,7 +409,7 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx, * 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: " |