1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

requires_resume_key is a bool not int.

Jeremy.
This commit is contained in:
Jeremy Allison 2009-11-03 11:21:02 -08:00
parent 6a61befe37
commit 7ae10fb892

View File

@ -2148,7 +2148,7 @@ static bool get_lanman2_dir_entry(TALLOC_CTX *ctx,
const char *path_mask,
uint32 dirtype,
int info_level,
int requires_resume_key,
bool requires_resume_key,
bool dont_descend,
bool ask_sharemode,
char **ppdata,
@ -2160,14 +2160,9 @@ static bool get_lanman2_dir_entry(TALLOC_CTX *ctx,
int *last_entry_off,
struct ea_list *name_list)
{
bool resume_key = false;
uint8_t align = 4;
const bool do_pad = true;
if (requires_resume_key) {
resume_key = true;
}
if (info_level >= 1 && info_level <= 3) {
/* No alignment on earlier info levels. */
align = 1;
@ -2175,7 +2170,7 @@ static bool get_lanman2_dir_entry(TALLOC_CTX *ctx,
return smbd_dirptr_lanman2_entry(ctx, conn, dirptr, flags2,
path_mask, dirtype, info_level,
resume_key, dont_descend, ask_sharemode,
requires_resume_key, dont_descend, ask_sharemode,
align, do_pad,
ppdata, base_data, end_data,
space_remaining,