Some misc cleanup
authorWayne Davison <wayne@opencoder.net>
Sun, 28 Jun 2020 04:19:52 +0000 (21:19 -0700)
committerWayne Davison <wayne@opencoder.net>
Sun, 28 Jun 2020 04:19:52 +0000 (21:19 -0700)
Remove some extraneous vars, update some years, add an  rrsync opt, &
ensure some less options are set right when running release-rsync.

batch.c
getgroups.c
ifuncs.h
packaging/release-rsync
support/rrsync
t_stub.c

diff --git a/batch.c b/batch.c
index 582c8c161d83158ba2f235194e6d99acc6ff3292..a9711c5698855b93cb2c064ab77513717d4914bd 100644 (file)
--- a/batch.c
+++ b/batch.c
@@ -38,13 +38,10 @@ extern int do_compression;
 extern int inplace;
 extern int append_mode;
 extern int write_batch;
-extern int xfersum_type;
 extern int protocol_version;
 extern int raw_argc, cooked_argc;
 extern char **raw_argv, **cooked_argv;
 extern char *batch_name;
-extern const char *checksum_choice;
-extern const char *compress_choice;
 #ifdef ICONV_OPTION
 extern char *iconv_opt;
 #endif
index 1ccbc7812341584c5d93cc0ad5baa74fe00bb306..8a37ed0b7a20c2d6e988b3d0eb838dbb36d42f03 100644 (file)
@@ -3,7 +3,7 @@
  * `id -G` on Linux, but it's too hard to find a portable equivalent.
  *
  * Copyright (C) 2002 Martin Pool
- * Copyright (C) 2003-2019 Wayne Davison
+ * Copyright (C) 2003-2020 Wayne Davison
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 3 as
index 099fd07db9a8c3ba747e8a05aeabb30a9c770aa0..b94905886fa47d197d20d0183e14e4c8a012eb67 100644 (file)
--- a/ifuncs.h
+++ b/ifuncs.h
@@ -1,6 +1,6 @@
 /* Inline functions for rsync.
  *
- * Copyright (C) 2007-2019 Wayne Davison
+ * Copyright (C) 2007-2020 Wayne Davison
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 2ae5eb4cee478b5d77b20342727674e793fd6b2a..629ee25d2227929c85ddb4c726e41228faecd990 100755 (executable)
@@ -13,6 +13,7 @@ sys.path = ['packaging'] + sys.path
 
 from pkglib import *
 
+os.environ['LESS'] = 'mqeiXR'; # Make sure that -F is turned off and -R is turned on.
 dest = os.environ['HOME'] + '/samba-rsync-ftp'
 ORIGINAL_PATH = os.environ['PATH']
 
index 34e623001e8bfaf1419d8fa723d4f00ff504d0e8..eabec3dcff8286d28c56a0788e21054bb78eb4a9 100644 (file)
@@ -111,6 +111,7 @@ our %long_opt = (
   'list-only' => 0,
   'log-file' => $only eq 'r' ? -1 : 3,
   'log-format' => 1,
+  'max-alloc' => 1,
   'max-delete' => 1,
   'max-size' => 1,
   'min-size' => 1,
index 5a9bad5514c23881385091cc4224dae386a05805..954b86da7e43241969649b6877481b3d08f51a3a 100644 (file)
--- a/t_stub.c
+++ b/t_stub.c
@@ -33,7 +33,7 @@ int preserve_xattrs = 0;
 int preserve_perms = 0;
 int preserve_executability = 0;
 int open_noatime = 0;
-size_t max_alloc = 1024*1024*1024;
+size_t max_alloc = 1024*1024*1024; /* max_alloc is needed when combined with util2.o */
 char *partial_dir;
 char *module_dir;
 filter_rule_list daemon_filter_list;