X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/577ab12ce5bed9cadd25aab34ced12d55f82f66d..87cc45e136333407acc6463f6415df4979289f30:/main.c diff --git a/main.c b/main.c index e9670ef8..79929d65 100644 --- a/main.c +++ b/main.c @@ -85,10 +85,9 @@ static void report(int f) extern int remote_version; int send_stats; - if (do_stats) { + if (do_stats && verbose > 1) { /* These come out from every process */ - if (verbose > 1) - show_malloc_stats(); + show_malloc_stats(); show_flist_stats(); } @@ -286,6 +285,7 @@ oom: static char *get_local_name(struct file_list *flist,char *name) { STRUCT_STAT st; + int e; extern int orig_umask; if (verbose > 2) @@ -311,7 +311,7 @@ static char *get_local_name(struct file_list *flist,char *name) return name; } - if (flist->count <= 1) + if (flist->count <= 1 && ((e = strlen(name)) <= 1 || name[e-1] != '/')) return name; if (do_mkdir(name,0777 & ~orig_umask) != 0) {