diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-26 03:38:05 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-26 05:39:34 +0100 |
commit | 7f25e0da7348d786a36fa14403938b4f209fb52b (patch) | |
tree | 0f6a4c4a00e985c09fb0197d59cad1efb612caa1 /source3/libsmb/clilist.c | |
parent | 6baf760d176cc5ea8eb0cba6d68171f1950c1b75 (diff) | |
download | samba-7f25e0da7348d786a36fa14403938b4f209fb52b.tar.gz samba-7f25e0da7348d786a36fa14403938b4f209fb52b.tar.bz2 samba-7f25e0da7348d786a36fa14403938b4f209fb52b.zip |
Decouple clistr_pull from struct cli_state->inbuf
Diffstat (limited to 'source3/libsmb/clilist.c')
-rw-r--r-- | source3/libsmb/clilist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 1431b804b0..e604725493 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -98,7 +98,7 @@ static size_t interpret_long_filename(TALLOC_CTX *ctx, between win2000 and win9x for this call (tridge) */ ret = clistr_pull_talloc(ctx, - cli, + cli->inbuf, &finfo->name, p, len+2, @@ -127,7 +127,7 @@ static size_t interpret_long_filename(TALLOC_CTX *ctx, return pdata_end - base; } ret = clistr_pull_talloc(ctx, - cli, + cli->inbuf, &finfo->name, p, len, @@ -179,7 +179,7 @@ static size_t interpret_long_filename(TALLOC_CTX *ctx, /* stupid NT bugs. grr */ int flags = 0; if (p[1] == 0 && namelen > 1) flags |= STR_UNICODE; - clistr_pull(cli, finfo->short_name, p, + clistr_pull(cli->inbuf, finfo->short_name, p, sizeof(finfo->short_name), slen, flags); } @@ -188,7 +188,7 @@ static size_t interpret_long_filename(TALLOC_CTX *ctx, return pdata_end - base; } ret = clistr_pull_talloc(ctx, - cli, + cli->inbuf, &finfo->name, p, namelen, @@ -514,7 +514,7 @@ static bool interpret_short_filename(TALLOC_CTX *ctx, finfo->mtime_ts.tv_nsec = finfo->atime_ts.tv_nsec = 0; finfo->size = IVAL(p,26); ret = clistr_pull_talloc(ctx, - cli, + cli->inbuf, &finfo->name, p+30, 12, |