git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f942397
)
fixed shortname length in trans2 list
author
Andrew Tridgell
<tridge@samba.org>
Fri, 24 Aug 2001 04:53:39 +0000
(
04:53
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 24 Aug 2001 04:53:39 +0000
(
04:53
+0000)
source/libsmb/clilist.c
patch
|
blob
|
history
diff --git
a/source/libsmb/clilist.c
b/source/libsmb/clilist.c
index 6368674488c46fd245c7d2566002e539ea72954b..562e1710d3baec195d3a86360dccff6bac6a142d 100644
(file)
--- 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,