X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/49d6fdc03617747d92422b9759ff5c828070aa11..c48b22c8583f6d6c55c6a6f6001cf4fdcc20aed1:/backup.c diff --git a/backup.c b/backup.c index 52590c13..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 (0, fname); + 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)) {