aboutsummaryrefslogtreecommitdiffstats
path: root/backup.c
diff options
context:
space:
mode:
authorJ.W. Schultz <jw@samba.org>2004-02-10 03:23:37 +0000
committerJ.W. Schultz <jw@samba.org>2004-02-10 03:23:37 +0000
commit9935066b704bcf2e6e48dac85cb1b4047d8f439d (patch)
treed34306ebea0ffb106ccb7d37318feb95a47605db /backup.c
parent6c2e5b56e49b494b33b3b63fc797f83d4c05a203 (diff)
downloadandroid_external_rsync-9935066b704bcf2e6e48dac85cb1b4047d8f439d.tar.gz
android_external_rsync-9935066b704bcf2e6e48dac85cb1b4047d8f439d.tar.bz2
android_external_rsync-9935066b704bcf2e6e48dac85cb1b4047d8f439d.zip
Make idev, hlink and file_struct + strings use allocation
pools.
Diffstat (limited to 'backup.c')
-rw-r--r--backup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/backup.c b/backup.c
index c1b80834..248ae90a 100644
--- a/backup.c
+++ b/backup.c
@@ -189,6 +189,7 @@ static int keep_backup(char *fname)
backup_dir[--backup_dir_len] = '\0';
if (verbose > 0)
rprintf(FINFO, "backup_dir is %s\n", backup_dir);
+
initialised = 1;
}
@@ -199,7 +200,7 @@ static int keep_backup(char *fname)
if (do_stat(fname, &st)) return 1;
#endif
- file = make_file(fname, NO_EXCLUDES);
+ file = make_file(fname, NULL, NO_EXCLUDES);
/* the file could have disappeared */
if (!file) return 1;
@@ -282,7 +283,7 @@ static int keep_backup(char *fname)
}
}
set_perms(keep_name, file, NULL, 0);
- free_file(file, FREE_STRUCT);
+ free(file);
if (verbose > 1)
rprintf(FINFO, "keep_backup %s -> %s\n", fname, keep_name);