Don't print out the directory name twice in verbose mode; it was being
authorDavid Dykstra <dwd@samba.org>
Mon, 3 Dec 2001 18:37:33 +0000 (18:37 +0000)
committerDavid Dykstra <dwd@samba.org>
Mon, 3 Dec 2001 18:37:33 +0000 (18:37 +0000)
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

index 6b24268..93faa54 100644 (file)
@@ -247,7 +247,9 @@ void recv_generator(char *fname,struct file_list *flist,int i,int f_out)
                                        fname,strerror(errno));
                        }
                }
                                        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;
        }
                        rprintf(FINFO,"%s/\n",fname);
                return;
        }