From de343e3ccea541b62970e53cba03f5ab5804ce5e Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Mon, 3 Dec 2001 18:37:33 +0000 Subject: [PATCH] Don't print out the directory name twice in verbose mode; it was being printed a second time when the modification time of the directory was being set, and that time around recv_files() calls recv_generator() with an f_out of -1 so check that before printing the directory name. --- generator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generator.c b/generator.c index 6b242683..93faa54d 100644 --- a/generator.c +++ b/generator.c @@ -247,7 +247,9 @@ void recv_generator(char *fname,struct file_list *flist,int i,int f_out) fname,strerror(errno)); } } - if (set_perms(fname,file,NULL,0) && verbose) + /* f_out is set to -1 when doing final directory + permission and modification time repair */ + if (set_perms(fname,file,NULL,0) && verbose && (f_out != -1)) rprintf(FINFO,"%s/\n",fname); return; } -- 2.34.1