When we say we're skipping a non-regular file, actually skip it.
[rsync/rsync.git] / backup.c
index bf98f74..05f5360 100644 (file)
--- a/backup.c
+++ b/backup.c
@@ -228,6 +228,7 @@ static int keep_backup(char *fname)
        if (!kept && !S_ISREG(file->mode)) {
                rprintf(FINFO, "make_bak: skipping non-regular file %s\n",
                        fname);
+               return 1;
        }
 
        /* move to keep tree if a file */