]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
added an explicit noexcludes flag to make_file()
authorAndrew Tridgell <tridge@samba.org>
Sat, 19 Aug 2000 12:51:26 +0000 (12:51 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 19 Aug 2000 12:51:26 +0000 (12:51 +0000)
backup.c

index 9c6fd8947dc63d13b03f49a22f56fe862d887e87..8c1d7677954fc3366bb3392211caa5642d09de33 100644 (file)
--- a/backup.c
+++ b/backup.c
@@ -197,7 +197,10 @@ static int keep_backup(char *fname)
        if (do_stat (fname, &st)) return 1;
 #endif
 
-       file = make_file (-1, fname, 0);
+       file = make_file(-1, fname, NULL, 1);
+
+       /* the file could have disappeared */
+       if (!file) return 1;
 
         /* make a complete pathname for backup file */
         if (strlen(backup_dir) + strlen(fname) > (MAXPATHLEN - 1)) {