Don't allow json output on the server side.
authorWayne Davison <wayne@opencoder.net>
Fri, 9 Sep 2022 19:54:45 +0000 (12:54 -0700)
committerWayne Davison <wayne@opencoder.net>
Fri, 9 Sep 2022 19:54:45 +0000 (12:54 -0700)
json-version.diff

index 1343902469b88164acb13482ee556b646ce2f6a3..08e80439e9a1c4d403c1b07ef530629614c9bbc0 100644 (file)
@@ -7,7 +7,7 @@ To use this patch, run these commands for a successful build:
     ./configure                               (optional if already run)
     make
 
-based-on: db5bfe67a5d022f9ad25340db6bc2cca2cbbdb65
+based-on: 24174f9a96b191bff8f9420573de468a769c2ed9
 diff --git a/options.c b/options.c
 --- a/options.c
 +++ b/options.c
@@ -16,7 +16,7 @@ diff --git a/options.c b/options.c
  
        if (version_opt_cnt) {
 -              print_rsync_version(FINFO);
-+              print_rsync_version(FINFO, version_opt_cnt > 1);
++              print_rsync_version(FINFO, version_opt_cnt > 1 && !am_server);
                exit_cleanup(0);
        }