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

- check for null buf in show_progress
This commit is contained in:
Andrew Tridgell committed 1998-07-02 02:08:55 +00:00
1 parent 43b06eeae9
commit b536f47e3c
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -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)) {
+2 -1
View File
@@ -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();
}