summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-09-23 16:45:55 +1000
committerAndrew Tridgell <tridge@samba.org>2008-09-23 16:45:55 +1000
commit9cf29abee296ea2fcdf712687a6ce2cf9fd9d74c (patch)
treeda7bdce7a6544759842ff1ecd121e6e9c552e79c /source4
parent219aa1b4fd2a8b93d5b2e67f26abc7f59fb2e0f2 (diff)
downloadsamba-9cf29abee296ea2fcdf712687a6ce2cf9fd9d74c.tar.gz
samba-9cf29abee296ea2fcdf712687a6ce2cf9fd9d74c.tar.bz2
samba-9cf29abee296ea2fcdf712687a6ce2cf9fd9d74c.zip
test setinfo FULL_EA_INFORMATION in gentest
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/gentest.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index 1bb7c4debd..176fc035e7 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -2166,6 +2166,9 @@ static void gen_setfileinfo(int instance, union smb_setfileinfo *info)
case RAW_SFILEINFO_MODE_INFORMATION:
info->mode_information.in.mode = gen_bits_mask(0xFFFFFFFF);
break;
+ case RAW_SFILEINFO_FULL_EA_INFORMATION:
+ info->full_ea_information.in.eas = gen_ea_list();
+ break;
case RAW_SFILEINFO_GENERIC:
case RAW_SFILEINFO_SEC_DESC:
case RAW_SFILEINFO_UNIX_BASIC:
@@ -2222,7 +2225,8 @@ static void gen_setfileinfo(int instance, union smb_setfileinfo *info)
do {
i = gen_int_range(0, num_levels-1);
} while (ignore_pattern(levels[i].name));
-
+
+ ZERO_STRUCTP(info);
info->generic.level = levels[i].level;
switch (info->generic.level) {
@@ -2279,6 +2283,9 @@ static void gen_setfileinfo(int instance, union smb_setfileinfo *info)
case RAW_SFILEINFO_MODE_INFORMATION:
info->mode_information.in.mode = gen_bits_mask(0xFFFFFFFF);
break;
+ case RAW_SFILEINFO_FULL_EA_INFORMATION:
+ info->full_ea_information.in.eas = gen_ea_list();
+ break;
case RAW_SFILEINFO_GENERIC:
case RAW_SFILEINFO_SEC_DESC: