diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-08-24 04:53:39 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-08-24 04:53:39 +0000 |
commit | ae669720d8f434a23397deaea3371998ab6f1f54 (patch) | |
tree | 971b92f4af95afd67f61a3e8f11248b19d048a63 | |
parent | f942397d6515402be0c7c1085fc2e6d48eb6928f (diff) | |
download | samba-ae669720d8f434a23397deaea3371998ab6f1f54.tar.gz samba-ae669720d8f434a23397deaea3371998ab6f1f54.tar.xz samba-ae669720d8f434a23397deaea3371998ab6f1f54.zip |
fixed shortname length in trans2 list
-rw-r--r-- | source/libsmb/clilist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/libsmb/clilist.c b/source/libsmb/clilist.c index 6368674488c..562e1710d3b 100644 --- a/source/libsmb/clilist.c +++ b/source/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, |