X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e42c9458c2f1e3a78d6d45e99741d6edb38fc0cc..e24c850818d77c04aa8a6a9d2850134c76eb756b:/rsync.c diff --git a/rsync.c b/rsync.c index a9c24387..6644f141 100644 --- a/rsync.c +++ b/rsync.c @@ -723,6 +723,7 @@ static char *cleanup_fname; void exit_cleanup(int code) { + io_flush(); if (cleanup_fname) do_unlink(cleanup_fname); signal(SIGUSR1, SIG_IGN); @@ -939,7 +940,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen) /* now we need to fix any directory permissions that were modified during the transfer */ for (i = 0; i < flist->count; i++) { - struct file_struct *file = flist->files[i]; + file = flist->files[i]; if (!file->basename || !S_ISDIR(file->mode)) continue; recv_generator(f_name(file),flist,i,-1); }