diff options
author | Jeremy Allison <jra@samba.org> | 2004-04-12 18:53:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:15 -0500 |
commit | b560bf536154a3bcfbfb8bb2ca5e2f154a6d6dd4 (patch) | |
tree | 9e9d50a265cd3616a25ae5324e61341b65746a94 | |
parent | b4d6cbd380b09d0638102137b589555cb4e1c285 (diff) | |
download | samba-b560bf536154a3bcfbfb8bb2ca5e2f154a6d6dd4.tar.gz samba-b560bf536154a3bcfbfb8bb2ca5e2f154a6d6dd4.tar.bz2 samba-b560bf536154a3bcfbfb8bb2ca5e2f154a6d6dd4.zip |
r184: Fix UNIX Search info level. This still needs to be added to the raw
client library before this test can work.
Jeremy.
(This used to be commit 7b2a2665438a1dbc05053a13f5f84bb56dacd073)
-rw-r--r-- | source4/include/trans2.h | 2 | ||||
-rw-r--r-- | source4/torture/raw/search.c | 6 |
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, |