summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/smb2/util.c')
-rw-r--r--source4/torture/smb2/util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c
index 2c3965831a..6cbc230630 100644
--- a/source4/torture/smb2/util.c
+++ b/source4/torture/smb2/util.c
@@ -48,6 +48,7 @@ void torture_smb2_all_info(struct smb2_tree *tree, struct smb2_handle handle)
d_printf("\twrite_time: %s\n", nt_time_string(tmp_ctx, io.all_info.write_time));
d_printf("\tchange_time: %s\n", nt_time_string(tmp_ctx, io.all_info.change_time));
d_printf("\tattrib: 0x%x\n", io.all_info.file_attr);
+ d_printf("\tunknown1: 0x%x\n", io.all_info.unknown1);
d_printf("\talloc_size: %llu\n", (uint64_t)io.all_info.alloc_size);
d_printf("\tsize: %llu\n", (uint64_t)io.all_info.size);
d_printf("\tnlink: %u\n", io.all_info.nlink);
@@ -60,6 +61,13 @@ void torture_smb2_all_info(struct smb2_tree *tree, struct smb2_handle handle)
d_printf("\tunknown6: 0x%llx\n", io.all_info.unknown6);
d_printf("\tfname: '%s'\n", io.all_info.fname);
+ /* short name, if any */
+ status = smb2_getinfo_level(tree, tmp_ctx, handle,
+ SMB2_GETINFO_FILE_SHORT_INFO, &io);
+ if (NT_STATUS_IS_OK(status)) {
+ d_printf("\tshort name: '%s'\n", io.short_info.short_name);
+ }
+
/* the EAs, if any */
status = smb2_getinfo_level(tree, tmp_ctx, handle,
SMB2_GETINFO_FILE_ALL_EAS, &io);