Set ndx_start to 1 only for an inc-recursive transfer.
authorWayne Davison <wayned@samba.org>
Wed, 31 Oct 2007 05:48:25 +0000 (05:48 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 31 Oct 2007 05:48:25 +0000 (05:48 +0000)
flist.c

diff --git a/flist.c b/flist.c
index 733344c..19c427d 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -2323,7 +2323,7 @@ struct file_list *flist_new(int flags, char *msg)
                        if (!flist->file_pool)
                                out_of_memory(msg);
 
-                       flist->ndx_start = 1;
+                       flist->ndx_start = inc_recurse ? 1 : 0;
 
                        first_flist = cur_flist = flist->prev = flist;
                } else {