diff options
author | Gordon Ross <gwr@racktopsystems.com> | 2022-01-16 20:48:40 -0500 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2022-11-28 21:14:22 +0200 |
commit | 6e7e68d69a0c906a89a14afbb5663a30d0f202f0 (patch) | |
tree | 7e0bb6e0dce09d7a4d6caf778a28526a0778c826 | |
parent | 36d5d64dcecbec1dfcdcf7b4b57d1917c18a7e6f (diff) | |
download | illumos-gate-6e7e68d69a0c906a89a14afbb5663a30d0f202f0.tar.gz |
15157 WPTS FSA FileInfo_Query_FilePositionInformation
Reviewed by: Joyce McIntosh <jmcintosh@racktopsystems.com>
Reviewed by: Andy Stormont <andyjstormont@gmail.com>
Reviewed by: Matt Barden <mbarden@racktopsystems.com>
Approved by: Patrick Mooney <pmooney@pfmooney.com>
-rw-r--r-- | usr/src/uts/common/fs/smbsrv/smb2_setinfo_file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/common/fs/smbsrv/smb2_setinfo_file.c b/usr/src/uts/common/fs/smbsrv/smb2_setinfo_file.c index bbb9f2877b..28b1177158 100644 --- a/usr/src/uts/common/fs/smbsrv/smb2_setinfo_file.c +++ b/usr/src/uts/common/fs/smbsrv/smb2_setinfo_file.c @@ -11,6 +11,7 @@ /* * Copyright 2019 Nexenta by DDN, Inc. All rights reserved. + * Copyright 2022 RackTop Systems, Inc. */ /* @@ -179,7 +180,7 @@ smb2_setf_seek(smb_request_t *sr, smb_setinfo_t *si) uint64_t newoff; if (smb_mbc_decodef(&si->si_data, "q", &newoff) != 0) - return (NT_STATUS_INVALID_PARAMETER); + return (NT_STATUS_INFO_LENGTH_MISMATCH); ASSERT(of->f_magic == SMB_OFILE_MAGIC); mutex_enter(&of->f_mutex); @@ -214,7 +215,7 @@ smb2_setf_mode(smb_request_t *sr, smb_setinfo_t *si) uint32_t Mode; if (smb_mbc_decodef(&si->si_data, "l", &Mode) != 0) - return (NT_STATUS_INVALID_PARAMETER); + return (NT_STATUS_INFO_LENGTH_MISMATCH); #if 0 /* XXX - todo */ if (Mode & FILE_WRITE_THROUGH) { |