fixed backup_dir bug introduced with recent memory handling patches
authorAndrew Tridgell <tridge@samba.org>
Sat, 19 Aug 2000 11:06:04 +0000 (11:06 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 19 Aug 2000 11:06:04 +0000 (11:06 +0000)
backup.c

index 88f9eaed74a2bbaadb427485d5e5f2ea6bfc9058..9c6fd8947dc63d13b03f49a22f56fe862d887e87 100644 (file)
--- 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)) {