| 1836 | } |
| 1837 | |
| 1838 | static 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 |
no test coverage detected