}
+/**
+ * Stat either a symlink or its referent, depending on the settings of
+ * copy_links, copy_unsafe_links, etc.
+ *
+ * @return -1 on error; or 0. If a symlink, then @p Linkbuf (of size
+ * MAXPATHLEN) contains the symlink target.
+ **/
int readlink_stat(const char *Path, STRUCT_STAT * Buffer, char *Linkbuf)
{
#if SUPPORT_LINKS
send_file_entry(NULL, f, 0);
}
- if (show_filelist_p())
+ if (show_filelist_p() && f != -1) {
finish_filelist_progress(flist);
+ }
clean_flist(flist, 0);