1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

r184: Fix UNIX Search info level. This still needs to be added to the raw

client library before this test can work.
Jeremy.
This commit is contained in:
Jeremy Allison 2004-04-12 18:53:41 +00:00 committed by Gerald (Jerry) Carter
parent 88911bbcca
commit 7b2a266543
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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,