From: Andrew Tridgell Date: Sat, 19 Aug 2000 11:06:04 +0000 (+0000) Subject: fixed backup_dir bug introduced with recent memory handling patches X-Git-Tag: v2.4.5~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7c33e3bdea743c1d9fe1fb66f2f3929ab59fd31;p=thirdparty%2Frsync.git fixed backup_dir bug introduced with recent memory handling patches --- diff --git a/backup.c b/backup.c index 88f9eaed..9c6fd894 100644 --- a/backup.c +++ b/backup.c @@ -197,7 +197,7 @@ static int keep_backup(char *fname) if (do_stat (fname, &st)) return 1; #endif - file = make_file (0, fname, 0); + file = make_file (-1, fname, 0); /* make a complete pathname for backup file */ if (strlen(backup_dir) + strlen(fname) > (MAXPATHLEN - 1)) {