summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-10-23 16:24:08 +0200
committerJeremy Allison <jra@samba.org>2020-10-23 17:44:34 +0000
commitf33b91a932abbe0c52710e3582f8ef141d97d079 (patch)
tree409eecff5db7d4520ad545ddf5c6fea16aca4eec /source3
parent4b53e5834045e58704b0ec3e48c35626a168cd81 (diff)
downloadsamba-f33b91a932abbe0c52710e3582f8ef141d97d079.tar.gz
smbd: add and use SMB2_FILE_FULL_EA_INFORMATION
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/trans2.h1
-rw-r--r--source3/smbd/smb2_getinfo.c4
-rw-r--r--source3/smbd/trans2.c5
3 files changed, 4 insertions, 6 deletions
diff --git a/source3/include/trans2.h b/source3/include/trans2.h
index 16e50b59b7d..0ed3b85c1d5 100644
--- a/source3/include/trans2.h
+++ b/source3/include/trans2.h
@@ -406,6 +406,7 @@ Byte offset Type name description
#define SMB_FILE_MAXIMUM_INFORMATION (FSCC_FILE_MAXIMUM_INFORMATION + NT_PASSTHROUGH_OFFSET)
/* Internal mapped versions. */
#define SMB2_FILE_RENAME_INFORMATION_INTERNAL (FSCC_FILE_RENAME_INFORMATION + SMB2_INFO_SPECIAL)
+#define SMB2_FILE_FULL_EA_INFORMATION (FSCC_FILE_FULL_EA_INFORMATION + SMB2_INFO_SPECIAL)
/* NT passthough levels for qfsinfo. */
diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c
index f4fb7ce0b23..5a9578c1c1e 100644
--- a/source3/smbd/smb2_getinfo.c
+++ b/source3/smbd/smb2_getinfo.c
@@ -304,8 +304,8 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
ZERO_STRUCT(write_time_ts);
switch (in_file_info_class) {
- case 0x0F:/* RAW_FILEINFO_SMB2_ALL_EAS */
- file_info_level = 0xFF00 | in_file_info_class;
+ case FSCC_FILE_FULL_EA_INFORMATION:
+ file_info_level = SMB2_FILE_FULL_EA_INFORMATION;
break;
case 0x12:/* RAW_FILEINFO_SMB2_ALL_INFORMATION */
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index ab1ada8e356..ae1ceaeefd0 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -5423,11 +5423,8 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
break;
}
- case 0xFF0F:/*SMB2_INFO_QUERY_ALL_EAS*/
+ case SMB2_FILE_FULL_EA_INFORMATION:
{
- /* This is FileFullEaInformation - 0xF which maps to
- * 1015 (decimal) in smbd_do_setfilepathinfo. */
-
/* We have data_size bytes to put EA's into. */
size_t total_ea_len = 0;
struct ea_list *ea_file_list = NULL;