summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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,