Only print the command used to open connections with -vv, not just -v.
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index f3c126b..5eebe37 100644 (file)
--- a/util.c
+++ b/util.c
@@ -121,7 +121,7 @@ pid_t piped_child(char **command, int *f_in, int *f_out)
        int from_child_pipe[2];
        extern int blocking_io;
        
-       if (verbose > 0) {
+       if (verbose >= 2) {
                print_child_argv(command);
        }
 
@@ -559,7 +559,7 @@ static void glob_expand_one(char *s, char **argv, int *argc, int maxargs)
                globfree(&globbuf);
                return;
        }
-       for (i=0; i<(maxargs - (*argc)) && i<globbuf.gl_pathc;i++) {
+       for (i=0; i<(maxargs - (*argc)) && i < (int) globbuf.gl_pathc;i++) {
                if (i == 0) free(argv[*argc]);
                argv[(*argc) + i] = strdup(globbuf.gl_pathv[i]);
                if (!argv[(*argc) + i]) out_of_memory("glob_expand");