Commit b536f47e authored by Andrew Tridgell's avatar Andrew Tridgell

- don't show "created directory" message unless verbose is selected

- check for null buf in show_progress
parent 43b06eea
......@@ -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)) {
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment