From: Andrew Tridgell Date: Thu, 2 Jul 1998 02:08:55 +0000 (+0000) Subject: - don't show "created directory" message unless verbose is selected X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/b536f47e3ce7c8efc6d73884da0474fc5551b285 - don't show "created directory" message unless verbose is selected - check for null buf in show_progress --- diff --git a/main.c b/main.c index dc2aac4b..3e39a857 100644 --- a/main.c +++ b/main.c @@ -202,7 +202,8 @@ static char *get_local_name(struct file_list *flist,char *name) rprintf(FERROR,"mkdir %s : %s (1)\n",name,strerror(errno)); exit_cleanup(1); } else { - rprintf(FINFO,"created directory %s\n",name); + if (verbose > 0) + rprintf(FINFO,"created directory %s\n",name); } if (!push_dir(name, 0)) { diff --git a/match.c b/match.c index f54c2295..845bd355 100644 --- a/match.c +++ b/match.c @@ -119,7 +119,8 @@ static void matched(int f,struct sum_struct *s,struct map_struct *buf, else last_match = offset; - show_progress(last_match, buf->size); + if (buf) + show_progress(last_match, buf->size); if (i == -1) end_progress(); }