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

Function interpret_stat_error

flist.c:1838–1849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1836}
1837
1838static void interpret_stat_error(const char *fname, int is_dir)
1839{
1840 if (errno == ENOENT) {
1841 io_error |= IOERR_VANISHED;
1842 rprintf(FWARNING, "%s has vanished: %s\n",
1843 is_dir ? "directory" : "file", full_fname(fname));
1844 } else {
1845 io_error |= IOERR_GENERAL;
1846 rsyserr(FERROR_XFER, errno, "link_stat %s failed",
1847 full_fname(fname));
1848 }
1849}
1850
1851/* This function is normally called by the sender, but the receiving side also
1852 * calls it from get_dirlist() with f set to -1 so that we just construct the

Callers 2

send_directoryFunction · 0.85
send1extraFunction · 0.85

Calls 3

full_fnameFunction · 0.85
rprintfFunction · 0.70
rsyserrFunction · 0.70

Tested by

no test coverage detected