mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +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 used to be commit 7b2a2665438a1dbc05053a13f5f84bb56dacd073)
This commit is contained in:
parent
b4d6cbd380
commit
b560bf5361
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user