MCPcopy Create free account
hub / github.com/RsyncProject/rsync / maybe_log_item

Function maybe_log_item

log.c:828–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826}
827
828void maybe_log_item(struct file_struct *file, int iflags, int itemizing, const char *buf)
829{
830 int significant_flags = iflags & SIGNIFICANT_ITEM_FLAGS;
831 int see_item = itemizing && (significant_flags || *buf
832 || stdout_format_has_i > 1 || (INFO_GTE(NAME, 2) && stdout_format_has_i));
833 int local_change = iflags & ITEM_LOCAL_CHANGE && significant_flags;
834 if (am_server) {
835 if (logfile_name && !dry_run && see_item
836 && (significant_flags || logfile_format_has_i))
837 log_item(FLOG, file, iflags, buf);
838 } else if (see_item || local_change || *buf
839 || (S_ISDIR(file->mode) && significant_flags)) {
840 enum logcode code = significant_flags || logfile_format_has_i ? FINFO : FCLIENT;
841 log_item(code, file, iflags, buf);
842 }
843}
844
845void log_delete(const char *fname, int mode)
846{

Callers 2

send_filesFunction · 0.85
recv_filesFunction · 0.85

Calls 1

log_itemFunction · 0.85

Tested by

no test coverage detected