summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-24 04:53:39 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-24 04:53:39 +0000
commita350db7c7cc19876045f20a84b41953fd6a346ac (patch)
treec27535327040dee5a4a11505969615eefaac0300 /source3/libsmb
parent18d3c23e36f5d97deed3c26e90f6573a83640436 (diff)
downloadsamba-a350db7c7cc19876045f20a84b41953fd6a346ac.tar.gz
samba-a350db7c7cc19876045f20a84b41953fd6a346ac.tar.bz2
samba-a350db7c7cc19876045f20a84b41953fd6a346ac.zip
fixed shortname length in trans2 list
(This used to be commit ae669720d8f434a23397deaea3371998ab6f1f54)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clilist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index 6368674488..562e1710d3 100644
--- a/source3/libsmb/clilist.c
+++ b/source3/libsmb/clilist.c
@@ -71,6 +71,7 @@ static int interpret_long_filename(struct cli_state *cli,
finfo->mode = CVAL(p,24);
len = CVAL(p, 30);
p += 31;
+ /* check for unisys! */
p += clistr_pull(cli, finfo->name, p,
sizeof(finfo->name),
len,
@@ -114,7 +115,7 @@ static int interpret_long_filename(struct cli_state *cli,
if (p[1] == 0 && namelen > 1) flags |= STR_UNICODE;
clistr_pull(cli, finfo->short_name, p,
sizeof(finfo->short_name),
- 24, flags);
+ slen, flags);
}
p += 24; /* short name? */
clistr_pull(cli, finfo->name, p,