"#if SUPPORT_LINKS" conditional.
static void start_filelist_progress(char *kind)
{
rprintf(FINFO, "%s ... ", kind);
static void start_filelist_progress(char *kind)
{
rprintf(FINFO, "%s ... ", kind);
- if ((verbose > 1) || do_progress)
+ if (verbose > 1 || do_progress)
rprintf(FINFO, "\n");
rflush(FINFO);
}
rprintf(FINFO, "\n");
rflush(FINFO);
}
static void maybe_emit_filelist_progress(const struct file_list *flist)
{
static void maybe_emit_filelist_progress(const struct file_list *flist)
{
- if (do_progress && show_filelist_p() && ((flist->count % 100) == 0))
+ if (do_progress && show_filelist_p() && (flist->count % 100) == 0)
emit_filelist_progress(flist);
}
emit_filelist_progress(flist);
}
/* this can happen if duplicate names were removed */
return;
/* this can happen if duplicate names were removed */
return;
permstring(perms, f->mode);
permstring(perms, f->mode);
f_name(f), f->u.link);
} else
#endif
f_name(f), f->u.link);
} else
#endif
rprintf(FINFO, "%s %11.0f %s %s\n",
perms,
(double)f->length, timestring(f->modtime),
f_name(f));
rprintf(FINFO, "%s %11.0f %s %s\n",
perms,
(double)f->length, timestring(f->modtime),
f_name(f));
&& check_exclude_file(thisname, 0, exclude_level))
return NULL;
if (save_errno == ENOENT) {
&& check_exclude_file(thisname, 0, exclude_level))
return NULL;
if (save_errno == ENOENT) {
/* Avoid "vanished" error if symlink points nowhere. */
if (copy_links && do_lstat(thisname, &st) == 0
&& S_ISLNK(st.st_mode)) {
io_error |= IOERR_GENERAL;
rprintf(FERROR, "symlink has no referent: %s\n",
full_fname(thisname));
/* Avoid "vanished" error if symlink points nowhere. */
if (copy_links && do_lstat(thisname, &st) == 0
&& S_ISLNK(st.st_mode)) {
io_error |= IOERR_GENERAL;
rprintf(FERROR, "symlink has no referent: %s\n",
full_fname(thisname));
enum logcode c = am_daemon && protocol_version < 28
? FERROR : FINFO;
io_error |= IOERR_VANISHED;
enum logcode c = am_daemon && protocol_version < 28
? FERROR : FINFO;
io_error |= IOERR_VANISHED;