From b706555b3a4ed3c8d459ae86b4c332fa41041f57 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 17 Dec 2004 22:47:49 +0000 Subject: r4261: added the RAW_FILEINFO_EA_LIST trans2 qfileinfo and qpathinfo level. Interestingly, this level did now show up on our trans2 scanner previously as we didn't have the FLAGS2_EXTENDED_ATTRIBUTES bit set in the client code. Now that we set that bit, new levels appear in windows servers. (This used to be commit 0b76d405a73e924dc2706f28bbf1084a59c9b393) --- source4/torture/torture_util.c | 73 ++++++++++++++++++++++++------------------ 1 file changed, 42 insertions(+), 31 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c index d96a285b6f..de93d6731f 100644 --- a/source4/torture/torture_util.c +++ b/source4/torture/torture_util.c @@ -362,11 +362,15 @@ NTSTATUS torture_check_ea(struct smbcli_state *cli, { union smb_fileinfo info; NTSTATUS status; - int i; + struct ea_name ea; TALLOC_CTX *mem_ctx = talloc(cli, 0); - info.all_eas.level = RAW_FILEINFO_ALL_EAS; - info.all_eas.in.fname = fname; + info.ea_list.level = RAW_FILEINFO_EA_LIST; + info.ea_list.file.fname = fname; + info.ea_list.in.num_names = 1; + info.ea_list.in.ea_names = &ea; + + ea.name.s = eaname; status = smb_raw_pathinfo(cli->tree, mem_ctx, &info); if (!NT_STATUS_IS_OK(status)) { @@ -374,38 +378,45 @@ NTSTATUS torture_check_ea(struct smbcli_state *cli, return status; } - for (i=0;i