From 4c7e46079da6b824407887584b769b485e2ebc76 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 27 Jan 2004 23:00:47 +0000 Subject: [PATCH] Don't free lastdir! It is still needed by the flist basedir pointers. Also, output the basedir pointer when dumping the flist for debugging. --- flist.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flist.c b/flist.c index a9d4c2c9..263af260 100644 --- a/flist.c +++ b/flist.c @@ -1097,8 +1097,6 @@ struct file_list *send_file_list(int f, int argc, char *argv[]) flist_dir = lastdir; flist_dir_len = lastdir_len; } else { - if (lastdir) - free(lastdir); flist_dir = lastdir = strdup(dir); flist_dir_len = lastdir_len = strlen(dir); } @@ -1416,8 +1414,9 @@ static void clean_flist(struct file_list *flist, int strip_root, int no_dups) return; for (i = 0; i < flist->count; i++) { - rprintf(FINFO, "[%ld] i=%d %s %s mode=0%o len=%.0f\n", + rprintf(FINFO, "[%ld] i=%d %s %s %s mode=0%o len=%.0f\n", (long) getpid(), i, + NS(flist->files[i]->basedir), NS(flist->files[i]->dirname), NS(flist->files[i]->basename), (int) flist->files[i]->mode, -- 2.34.1