to see if it excluded before reporting an error. Previously it was only
checking for the exclusion if copy_links was enabled, but the error can
also occur if a file disappears during an rsync run. Suggested by Eugene
V. Chupriyanov and Bo Kersey.
unchanged files are hard-linked in to the destination directory.
(J.W. Schultz)
unchanged files are hard-linked in to the destination directory.
(J.W. Schultz)
+ * Don't report an error if an excluded file disappears during an
+ rsync run. (Eugene Chupriyanov and Bo Kersey)
+
BUG FIXES:
* Fix "forward name lookup failed" errors on AIX 4.3.3. (John
BUG FIXES:
* Fix "forward name lookup failed" errors on AIX 4.3.3. (John
if (readlink_stat(fname, &st, linkbuf) != 0) {
int save_errno = errno;
if (readlink_stat(fname, &st, linkbuf) != 0) {
int save_errno = errno;
- if ((errno == ENOENT) && copy_links && !noexcludes) {
- /* symlink pointing nowhere, see if excluded */
+ if ((errno == ENOENT) && !noexcludes) {
+ /* either symlink pointing nowhere or file that
+ * was removed during rsync run; see if excluded
+ * before reporting an error */
memset((char *) &st, 0, sizeof(st));
if (check_exclude_file(f, fname, &st)) {
/* file is excluded anyway, ignore silently */
memset((char *) &st, 0, sizeof(st));
if (check_exclude_file(f, fname, &st)) {
/* file is excluded anyway, ignore silently */