- io_error = 1;
- rprintf(FERROR, "send_files failed to open %s: %s\n",
- fname, strerror(errno));
+ if (errno == ENOENT) {
+ enum logcode c = am_daemon
+ && protocol_version < 28 ? FERROR
+ : FINFO;
+ io_error |= IOERR_VANISHED;
+ rprintf(c, "file has vanished: %s\n",
+ full_fname(fname));
+ } else {
+ io_error |= IOERR_GENERAL;
+ rprintf(FERROR, "send_files failed to open %s: %s\n",
+ full_fname(fname), strerror(errno));
+ }