diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-08-19 12:51:26 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-08-19 12:51:26 +0000 |
commit | f2cbf44ba5820440bbb2a6fd07113cae877834b0 (patch) | |
tree | 897f7b21a773736a13fe8a00f39bdad9fac85420 /backup.c | |
parent | dab552237e155343bc45a34d498c89bed953952e (diff) | |
download | rsync-f2cbf44ba5820440bbb2a6fd07113cae877834b0.tar.gz |
added an explicit noexcludes flag to make_file()
Diffstat (limited to 'backup.c')
-rw-r--r-- | backup.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)) { |