summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/include/trans2.h2
-rw-r--r--source4/torture/raw/search.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/source4/include/trans2.h b/source4/include/trans2.h
index 5c9848f40c..9d934deace 100644
--- a/source4/include/trans2.h
+++ b/source4/include/trans2.h
@@ -258,7 +258,7 @@ Found 0 aliased levels
#define SMB_FIND_BOTH_DIRECTORY_INFO 0x104
#define SMB_FIND_ID_FULL_DIRECTORY_INFO 0x105
#define SMB_FIND_ID_BOTH_DIRECTORY_INFO 0x106
-#define SMB_FIND_UNIX_INFO 0x200
+#define SMB_FIND_UNIX_INFO 0x202
/* flags on trans2 findfirst/findnext that control search */
#define FLAG_TRANS2_FIND_CLOSE 0x1
diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c
index 1753d3dd37..c04022b813 100644
--- a/source4/torture/raw/search.c
+++ b/source4/torture/raw/search.c
@@ -125,16 +125,18 @@ static BOOL test_one_file(struct cli_state *cli, TALLOC_CTX *mem_ctx)
for (i=0;i<ARRAY_SIZE(levels);i++) {
uint32 cap = cli->transport->negotiate.capabilities;
+ printf("testing %s\n", levels[i].name);
+
levels[i].status = single_search(cli, mem_ctx, fname,
levels[i].level, &levels[i].data);
/* see if this server claims to support this level */
if ((cap & levels[i].capability_mask) != levels[i].capability_mask) {
+ printf("search level %s(%d) not supported by server\n",
+ levels[i].name, (int)levels[i].level);
continue;
}
- printf("testing %s\n", levels[i].name);
-
if (!NT_STATUS_IS_OK(levels[i].status)) {
printf("search level %s(%d) failed - %s\n",
levels[i].name, (int)levels[i].level,