return NULL;
if (inc_recurse && flist == dir_flist) {
+ flist_expand(dir_flist);
#ifdef ICONV_OPTION
if (ic_ndx)
F_NDX(file) = dir_flist->count;
-#endif
- flist_expand(dir_flist);
if (need_unsorted_flist)
dir_flist->sorted[dir_flist->count] = file;
+#endif
dir_flist->files[dir_flist->count++] = file;
}
}
write_byte(f, 0);
+#ifdef ICONV_OPTION
if (!need_unsorted_flist)
+#endif
dir_flist->sorted = dir_flist->files;
add_dirs_to_tree(send_dir_ndx, start, dir_flist->count - 1);
rprintf(FINFO, "send_file_list done\n");
if (inc_recurse) {
+#ifdef ICONV_OPTION
if (!need_unsorted_flist)
+#endif
dir_flist->sorted = dir_flist->files;
add_dirs_to_tree(-1, 0, dir_flist->count - 1);
if (send_dir_ndx < 0) {
if (inc_recurse && S_ISDIR(file->mode)) {
flist_expand(dir_flist);
+#ifdef ICONV_OPTION
if (need_unsorted_flist)
dir_flist->sorted[dir_flist->count] = file;
+#endif
dir_flist->files[dir_flist->count++] = file;
}