Always include lib/snprintf.o when we include lib/compat.o.
[rsync/rsync.git] / generator.c
index 860a7e6..c51a98b 100644 (file)
@@ -385,7 +385,6 @@ static void recv_generator(char *fname, struct file_struct *file, int i,
                return;
        }
 
-#ifdef HAVE_MKNOD
        if (am_root && preserve_devices && IS_DEVICE(file->mode)) {
                if (statret != 0 ||
                    st.st_mode != file->mode ||
@@ -411,7 +410,6 @@ static void recv_generator(char *fname, struct file_struct *file, int i,
                }
                return;
        }
-#endif
 
        if (preserve_hard_links && hard_link_check(file, HL_CHECK_MASTER))
                return;
@@ -572,6 +570,8 @@ prepare_to_open:
        if (f_copy >= 0) {
                close(f_copy);
                set_perms(backupptr, back_file, NULL, 0);
+               if (verbose > 1)
+                       rprintf(FINFO, "backed up %s to %s\n", fname, backupptr);
                free(back_file);
        }