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:
b3e57cb
)
r5970: Fix old bug where ff_searchcount was being compared -1 ! This caused a
author
Jeremy Allison
<jra@samba.org>
Tue, 22 Mar 2005 21:22:59 +0000
(21:22 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:56:13 +0000
(10:56 -0500)
filename to be processed twice.
Jeremy.
(This used to be commit
2ed7e30cbb3e194a08d5d9b46993652666193bec
)
source3/libsmb/clilist.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clilist.c
b/source3/libsmb/clilist.c
index 704babc919bacc061b286b1b4764aacda099419a..5138bca8df17b1fe670cbc844bbfa2db61873ce7 100644
(file)
--- a/
source3/libsmb/clilist.c
+++ b/
source3/libsmb/clilist.c
@@
-283,7
+283,7
@@
int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
/* put in a length for the last entry, to ensure we can chain entries
into the next packet */
- for (p2=p,i=0;i<
(ff_searchcount-1)
;i++) {
+ for (p2=p,i=0;i<
ff_searchcount
;i++) {
p2 += interpret_long_filename(cli,info_level,p2,&finfo);
}
SSVAL(p2,0,data_len - PTR_DIFF(p2,p));