From f2cbf44ba5820440bbb2a6fd07113cae877834b0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 19 Aug 2000 12:51:26 +0000 Subject: [PATCH] added an explicit noexcludes flag to make_file() --- backup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backup.c b/backup.c index 9c6fd894..8c1d7677 100644 --- 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)) { -- 2.34.1