Changed delete_files() to use the delete_in_dir() function, which
[rsync.git] / backup.c
index 0dd4c561a9553dc251f02d2382ae8b0a27402008..689bfad505556782491c828c16a98c64f9383c3c 100644 (file)
--- a/backup.c
+++ b/backup.c
@@ -162,15 +162,10 @@ static int keep_backup(char *fname)
        int ret_code;
 
        /* return if no file to keep */
-#if SUPPORT_LINKS
-       ret_code = do_lstat(fname, &st);
-#else
-       ret_code = do_stat(fname, &st);
-#endif
-       if (ret_code < 0)
+       if (do_lstat(fname, &st) < 0)
                return 1;
 
-       if (!(file = make_file(fname, NULL, NO_EXCLUDES)))
+       if (!(file = make_file(fname, NULL, NO_FILTERS)))
                return 1; /* the file could have disappeared */
 
        if (!(buf = get_backup_name(fname)))