X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/394bcdb5e34b3eb7d34f04ad2285a3b289d9f318..f8c8ef9eacde65ae2e03512de734c6672d3f19f6:/backup.c diff --git a/backup.c b/backup.c index ed08fae6..05f53601 100644 --- 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 */ @@ -237,7 +238,7 @@ static int keep_backup(char *fname) full_fname(fname), backup_dir_buf); } else if (st.st_nlink > 1) { /* If someone has hard-linked the file into the backup - * dir, rename() can return success but do nothing! */ + * dir, rename() might return success but do nothing! */ robust_unlink(fname); /* Just in case... */ } }