From: David Dykstra Date: Mon, 3 Dec 2001 18:37:33 +0000 (+0000) Subject: Don't print out the directory name twice in verbose mode; it was being X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/de343e3ccea541b62970e53cba03f5ab5804ce5e 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. --- 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; }