X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/85096e5eda83525eadddc9c6b1bc8135ac22e54a..41b674b3ed541263d70a10d7796aca5d6cd73e03:/stdout.diff diff --git a/stdout.diff b/stdout.diff index 9a7280c..143c34f 100644 --- a/stdout.diff +++ b/stdout.diff @@ -10,7 +10,7 @@ To use this patch, run these commands for a successful build: diff --git a/options.c b/options.c --- a/options.c +++ b/options.c -@@ -203,6 +203,7 @@ static int refused_delete, refused_archive_part, refused_compress; +@@ -204,6 +204,7 @@ static int refused_delete, refused_archive_part, refused_compress; static int refused_partial, refused_progress, refused_delete_before; static int refused_delete_during; static int refused_inplace, refused_no_iconv; @@ -18,7 +18,7 @@ diff --git a/options.c b/options.c static char *max_size_arg, *min_size_arg; static char tmp_partialdir[] = ".~tmp~"; -@@ -423,6 +424,7 @@ void usage(enum logcode F) +@@ -425,6 +426,7 @@ void usage(enum logcode F) rprintf(F," --password-file=FILE read daemon-access password from FILE\n"); rprintf(F," --list-only list the files instead of copying them\n"); rprintf(F," --bwlimit=KBPS limit I/O bandwidth; KBytes per second\n"); @@ -26,7 +26,7 @@ diff --git a/options.c b/options.c rprintf(F," --write-batch=FILE write a batched update to FILE\n"); rprintf(F," --only-write-batch=FILE like --write-batch but w/o updating destination\n"); rprintf(F," --read-batch=FILE read a batched update from FILE\n"); -@@ -630,6 +632,7 @@ static struct poptOption long_options[] = { +@@ -646,6 +648,7 @@ static struct poptOption long_options[] = { {"password-file", 0, POPT_ARG_STRING, &password_file, 0, 0, 0 }, {"blocking-io", 0, POPT_ARG_VAL, &blocking_io, 1, 0, 0 }, {"no-blocking-io", 0, POPT_ARG_VAL, &blocking_io, 0, 0, 0 }, @@ -34,7 +34,7 @@ diff --git a/options.c b/options.c {"protocol", 0, POPT_ARG_INT, &protocol_version, 0, 0, 0 }, {"checksum-seed", 0, POPT_ARG_INT, &checksum_seed, 0, 0, 0 }, {"server", 0, POPT_ARG_NONE, 0, OPT_SERVER, 0, 0 }, -@@ -1259,6 +1262,13 @@ int parse_arguments(int *argc_p, const char ***argv_p, int frommain) +@@ -1276,6 +1279,13 @@ int parse_arguments(int *argc_p, const char ***argv_p) } } @@ -45,6 +45,6 @@ diff --git a/options.c b/options.c + setvbuf(stdout, NULL, _IOLBF, 0); + } + - if (human_readable && argc == 2) { + if (human_readable && argc == 2 && !am_server) { /* Allow the old meaning of 'h' (--help) on its own. */ usage(FINFO);