summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-22 21:22:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:13 -0500
commitf8f090ad2471056ae77705ce55eddf06419ada3d (patch)
tree69006bfe421fa7cdb81df3170cf7941bb76ad32a /source3/libsmb
parentb3e57cb3ffb6eeb3edb1a7b02be35f70e1e7dfcf (diff)
downloadsamba-f8f090ad2471056ae77705ce55eddf06419ada3d.tar.gz
samba-f8f090ad2471056ae77705ce55eddf06419ada3d.tar.bz2
samba-f8f090ad2471056ae77705ce55eddf06419ada3d.zip
r5970: Fix old bug where ff_searchcount was being compared -1 ! This caused a
filename to be processed twice. Jeremy. (This used to be commit 2ed7e30cbb3e194a08d5d9b46993652666193bec)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clilist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index 704babc919..5138bca8df 100644
--- 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));