mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-03 20:42:50 -04:00
added an explicit noexcludes flag to make_file()
This commit is contained in:
5
backup.c
5
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)) {
|
||||
|
||||
Reference in New Issue
Block a user