X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/5ad0e46f080cf071a3fbd77d764ae7fc33adaf16..8469faef038a262cc0aabae822bdd99fcda654c6:/util.c diff --git a/util.c b/util.c index f3c126bc..c1e04710 100644 --- a/util.c +++ b/util.c @@ -84,9 +84,9 @@ int fd_pair(int fd[2]) } -void print_child_argv(char **cmd) +static void print_child_argv(char **cmd) { - rprintf(FINFO, RSYNC_NAME ": open connection using "); + rprintf(FINFO, "opening connection using "); for (; *cmd; cmd++) { /* Look for characters that ought to be quoted. This * is not a great quoting algorithm, but it's @@ -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); } @@ -240,10 +240,18 @@ void overflow(char *str) -int set_modtime(char *fname,time_t modtime) +int set_modtime(char *fname, time_t modtime) { extern int dry_run; - if (dry_run) return 0; + if (dry_run) + return 0; + + if (verbose > 2) { + rprintf(FINFO, "set modtime of %s to (%ld) %s", + fname, (long) modtime, + asctime(localtime(&modtime))); + } + { #ifdef HAVE_UTIMBUF struct utimbuf tbuf; @@ -559,7 +567,7 @@ static void glob_expand_one(char *s, char **argv, int *argc, int maxargs) globfree(&globbuf); return; } - for (i=0; i<(maxargs - (*argc)) && i 1024*1024) {