rsync/rsync.git
19 years agoAdding more calls to safe_fname().
Wayne Davison [Mon, 7 Feb 2005 20:36:43 +0000 (20:36 +0000)]
Adding more calls to safe_fname().

19 years agoNeeded to call safe_fname() when listing the remote names.
Wayne Davison [Mon, 7 Feb 2005 19:40:31 +0000 (19:40 +0000)]
Needed to call safe_fname() when listing the remote names.

19 years agoOne more tweak.
Wayne Davison [Sun, 6 Feb 2005 07:24:42 +0000 (07:24 +0000)]
One more tweak.

19 years agoA few tweaks to the FILTER RULES section, including a mention of
Wayne Davison [Sun, 6 Feb 2005 07:16:19 +0000 (07:16 +0000)]
A few tweaks to the FILTER RULES section, including a mention of
using the +/- modifiers on merge-file rules.

19 years agoFixed an off-by-one error in the prefix-length checking in
Wayne Davison [Sat, 5 Feb 2005 06:53:20 +0000 (06:53 +0000)]
Fixed an off-by-one error in the prefix-length checking in
get_rule_prefix().

19 years agoImproved the name of a variable.
Wayne Davison [Sat, 5 Feb 2005 05:30:06 +0000 (05:30 +0000)]
Improved the name of a variable.

19 years agoMention a couple more changes.
Wayne Davison [Sat, 5 Feb 2005 01:38:19 +0000 (01:38 +0000)]
Mention a couple more changes.

19 years agoAdded the "C" modifier to the itemized list of +/- modifiers.
Wayne Davison [Sat, 5 Feb 2005 00:03:46 +0000 (00:03 +0000)]
Added the "C" modifier to the itemized list of +/- modifiers.

19 years agoMention the new --filter=-C syntax that lets you position the default
Wayne Davison [Fri, 4 Feb 2005 23:57:26 +0000 (23:57 +0000)]
Mention the new --filter=-C syntax that lets you position the default
CVS rules within your other filter rules.

19 years ago- Moved get_cvs_excludes() up above its only use and made it static.
Wayne Davison [Fri, 4 Feb 2005 22:32:17 +0000 (22:32 +0000)]
- Moved get_cvs_excludes() up above its only use and made it static.
- Changed get_cvs_excludes() to make an mflags arg.

19 years agoIf we're a "local server" (i.e. we just forked a server for a
Wayne Davison [Fri, 4 Feb 2005 21:54:02 +0000 (21:54 +0000)]
If we're a "local server" (i.e. we just forked a server for a
local transfer), don't duplicate all the filter rules that we
already know about in the forked process.

19 years agoFixed the way get_rule_prefix() turns the MATCHFLG_WORD_SPLIT flag
Wayne Davison [Fri, 4 Feb 2005 21:16:39 +0000 (21:16 +0000)]
Fixed the way get_rule_prefix() turns the MATCHFLG_WORD_SPLIT flag
back into a modifier character.

19 years ago- Added MATCHFLG_CVS_IGNORE.
Wayne Davison [Fri, 4 Feb 2005 21:13:12 +0000 (21:13 +0000)]
- Added MATCHFLG_CVS_IGNORE.
- Made the match_flags var a uint32.

19 years ago- Moved the cvs_exclude checks into send_filter_list() and
Wayne Davison [Fri, 4 Feb 2005 21:13:09 +0000 (21:13 +0000)]
- Moved the cvs_exclude checks into send_filter_list() and
  recv_filter_list().  Because of this, we never skip these
  calls anymore, though read-batch processing indicates that
  the list should not really be sent by setting f_out to -1.
- Moved the definintion of the "local_server" variable here
  from options.c.

19 years ago- Changed filter_rule() to add_rule().
Wayne Davison [Fri, 4 Feb 2005 21:13:06 +0000 (21:13 +0000)]
- Changed filter_rule() to add_rule().
- Improved the debug info coming from add_rule().
- Changed add_filter() to parse_rule() and add_filter_file()
  to parse_filter_file().
- Changed get_filter_tok() to parse_rule_tok().
- Made the mflags a uint32.
- Added an extra arg to get_rule_prefix() to indicate if we're
  building the options for transmission or other purposes.
- The 'C' modifier can now be applied to a '-' rule, so it now
  sets a new flag: MATCHFLG_CVS_IGNORE.
- The send_filter_list() and recv_filter_list() functions now handle
  all the logic needed to do the right thing for -C (this used to be
  in main.c).

19 years ago- Changed add_filter() to parse_rule() and add_filter_file()
Wayne Davison [Fri, 4 Feb 2005 21:13:03 +0000 (21:13 +0000)]
- Changed add_filter() to parse_rule() and add_filter_file()
  to parse_filter_file().
- Moved the definintion of the "local_server" variable into main.c.

19 years agoChanged add_filter() to parse_rule() and add_filter_file()
Wayne Davison [Fri, 4 Feb 2005 21:13:00 +0000 (21:13 +0000)]
Changed add_filter() to parse_rule() and add_filter_file()
to parse_filter_file().

19 years agoCall get_rule_prefix() with its new arg.
Wayne Davison [Fri, 4 Feb 2005 21:12:56 +0000 (21:12 +0000)]
Call get_rule_prefix() with its new arg.

19 years agoFixed the MODIFIERS_MERGE_FILE define.
Wayne Davison [Fri, 4 Feb 2005 00:48:18 +0000 (00:48 +0000)]
Fixed the MODIFIERS_MERGE_FILE define.

19 years agoChanged delete_missing() to not limit the use of DEL_FORCE_RECURSE
Wayne Davison [Thu, 3 Feb 2005 19:19:39 +0000 (19:19 +0000)]
Changed delete_missing() to not limit the use of DEL_FORCE_RECURSE
to just --delete-during now that the other delete routines are using
delete_in_dir().

19 years agoAdded an mflags arg to get_filter_tok(), add_filter_file(), and
Wayne Davison [Thu, 3 Feb 2005 19:00:20 +0000 (19:00 +0000)]
Added an mflags arg to get_filter_tok(), add_filter_file(), and
add_filter().  This made for less flag conversion between various
MATCHFLG_* and XFLG_* values.  It also made it easy to fix a bug
in the handling of no-prefix per-directory include/exclude files.
We also use the new XFLG_OLD_PREFIXES and MATCHFLGS_FROM_CONTAINER
defines.

19 years agoCall add_filter() and add_filter_file() with their new flag args.
Wayne Davison [Thu, 3 Feb 2005 19:00:17 +0000 (19:00 +0000)]
Call add_filter() and add_filter_file() with their new flag args.

19 years ago- Got rid of a bunch of XFLG_* options.
Wayne Davison [Thu, 3 Feb 2005 19:00:13 +0000 (19:00 +0000)]
- Got rid of a bunch of XFLG_* options.
- Added XFLG_OLD_PREFIXES and MATCHFLGS_FROM_CONTAINER defines.

19 years agoUse the new negated exclude to filter out all non-dirs in a few
Wayne Davison [Thu, 3 Feb 2005 03:45:24 +0000 (03:45 +0000)]
Use the new negated exclude to filter out all non-dirs in a few
of the rsync commands.

19 years agoDocument the new "!" modifier for include/exclude filter rules (to
Wayne Davison [Thu, 3 Feb 2005 03:37:02 +0000 (03:37 +0000)]
Document the new "!" modifier for include/exclude filter rules (to
negate the match).

19 years agoImplemented a "!" modifier for filter rules that lets a rule trigger
Wayne Davison [Thu, 3 Feb 2005 03:36:58 +0000 (03:36 +0000)]
Implemented a "!" modifier for filter rules that lets a rule trigger
on a non-matching pattern.

19 years agoAdded MATCHFLG_NEGATE.
Wayne Davison [Thu, 3 Feb 2005 03:36:55 +0000 (03:36 +0000)]
Added MATCHFLG_NEGATE.

19 years agoMention the latest delete optimization.
Wayne Davison [Thu, 3 Feb 2005 02:01:22 +0000 (02:01 +0000)]
Mention the latest delete optimization.

19 years agoChanged delete_files() to use the delete_in_dir() function, which
Wayne Davison [Thu, 3 Feb 2005 02:01:20 +0000 (02:01 +0000)]
Changed delete_files() to use the delete_in_dir() function, which
saves a ton of memory for a large set of files.

19 years ago- We now separate the user-specified top-dir flag (via the restored
Wayne Davison [Thu, 3 Feb 2005 02:01:17 +0000 (02:01 +0000)]
- We now separate the user-specified top-dir flag (via the restored
  FLAG_TOP_DIR) from the del-in-this-directory flag (FLAG_DEL_HERE).
  This was needed to properly handle -x in delete_in_dir().
- The delete_in_dir() function takes a slightly changed set of args.
- Always set the FLAG_DEL_HERE flags, not just for --delete-during.

19 years ago- Changed {XMIT,FLAG}_DEL_START back to {XMIT,FLAG}_TOP_DIR.
Wayne Davison [Thu, 3 Feb 2005 02:01:14 +0000 (02:01 +0000)]
- Changed {XMIT,FLAG}_DEL_START back to {XMIT,FLAG}_TOP_DIR.
- Define FLAG_DEL_HERE.

19 years agoCall delete_in_dir() with its new args.
Wayne Davison [Thu, 3 Feb 2005 02:01:11 +0000 (02:01 +0000)]
Call delete_in_dir() with its new args.

19 years agoIn hlink_compare(), call f_name_cmp() directly instead of using
Wayne Davison [Thu, 3 Feb 2005 01:19:03 +0000 (01:19 +0000)]
In hlink_compare(), call f_name_cmp() directly instead of using
file_compare().

19 years ago- Improved some comments.
Wayne Davison [Thu, 3 Feb 2005 01:19:01 +0000 (01:19 +0000)]
- Improved some comments.
- Changed the index passed to recv_generator() from "i" to "ndx".
- Call delete_in_dir() with its new args.
- During the redo phase, clear a bunch of options that might interfere
  with the generator deciding it needs to redo the file (for instance,
  --update-only could have interfered if --partial was specified).

19 years ago- Moved an optimization from file_compare() into f_name_cmp() (the one
Wayne Davison [Thu, 3 Feb 2005 01:18:58 +0000 (01:18 +0000)]
- Moved an optimization from file_compare() into f_name_cmp() (the one
  that avoids doing a string-compare on two identical char pointers),
  making it just a wrapper for f_name_cmp().  Also made file_compare()
  static because everyone now calls f_name_cmp() directly.
- Improved the flist summary that is output at high verbosity.
- Improved delete_in_dir() to better handle the push/pop semantics
  based on the depth value that is now passed in as an arg (so that
  we don't have to parse it out of the paths each time).

19 years ago- If recv_files() is sent the index of a directory, complain about it
Wayne Davison [Thu, 3 Feb 2005 00:19:40 +0000 (00:19 +0000)]
- If recv_files() is sent the index of a directory, complain about it
  and die.
- Moved a few code snippets in recv_files() into better locations.

19 years agoIf the generator sends us the index of a directory, generate an
Wayne Davison [Wed, 2 Feb 2005 17:15:22 +0000 (17:15 +0000)]
If the generator sends us the index of a directory, generate an
error and die.

19 years ago- Fixed a problem with the setting of the --recurse option from the
Wayne Davison [Wed, 2 Feb 2005 09:40:45 +0000 (09:40 +0000)]
- Fixed a problem with the setting of the --recurse option from the
  batch file.
- Save the state of the --dirs option in the batch flags in a way
  that is compatible with older protocol versions.

19 years agoIn read_sum_head: output the who_am_i() info in our error messages.
Wayne Davison [Tue, 1 Feb 2005 16:42:01 +0000 (16:42 +0000)]
In read_sum_head: output the who_am_i() info in our error messages.

19 years agoSet am_sender to -1 until the end of the option parsing. This
Wayne Davison [Tue, 1 Feb 2005 09:46:42 +0000 (09:46 +0000)]
Set am_sender to -1 until the end of the option parsing.  This
lets who_am_i() output better values for the command-line
--filter/--include/--exclude options.

19 years agoChanged who_am_i() to output "server" or "client" when am_sender
Wayne Davison [Tue, 1 Feb 2005 09:45:09 +0000 (09:45 +0000)]
Changed who_am_i() to output "server" or "client" when am_sender
is negative.  This will only occur during the startup phase
before we know if we're the sender or not (e.g. when parsing
client-side --filter/--exclude/--include options).

19 years agoMake sure the %f expansion handles the new dir.root properly.
Wayne Davison [Tue, 1 Feb 2005 09:23:59 +0000 (09:23 +0000)]
Make sure the %f expansion handles the new dir.root properly.

19 years ago- Made flist_find() and receive_file_entry() static functions.
Wayne Davison [Tue, 1 Feb 2005 09:21:32 +0000 (09:21 +0000)]
- Made flist_find() and receive_file_entry() static functions.
- Changed receive_file_entry() args.
- We now store the directory depth into file->dir.depth when
  receiving the file list.  This will be used to aid in the
  traversal of the file list on the receiving side for things
  such as the future --fuzzy option and better --delete-during
  processing.
- Fixed a bug when -R was used with "." as a source directory:
  subdirectories were not being promoted to FLAG_DEL_START when
  --delete-during was specified.
- Refer to the old basedir variable as dir.root.
- Got rid of the first-push code -- I decided that it wasn't
  the right thing to do for per-dir merge-file processing.
- Improved the flist_find() function to make it a little more
  optimal.  The new code no longer needs the inline function
  flist_up().
- In clean_flist() we now set two new values in the flist struct:
  "low" and "high".  These are used by the new flist_find().
- Tweaked the output_flist() function to output each entry's
  flags and to output the directory-depth on the receiving side
  in place of the directory-root (which is still output on the
  sending side).

19 years ago- Put "basedir" into a union "dir" and named it "root". The other
Wayne Davison [Tue, 1 Feb 2005 09:21:30 +0000 (09:21 +0000)]
- Put "basedir" into a union "dir" and named it "root".  The other
  member of the union is "depth".
- Added members "low" and "high" to the file list structure (which
  are set when the list is cleaned).
- Got rid of the flist_up() inline function.

19 years agoRefer to the old basedir variable as dir.root.
Wayne Davison [Tue, 1 Feb 2005 09:21:28 +0000 (09:21 +0000)]
Refer to the old basedir variable as dir.root.

19 years agoFixed a typo in a variable name.
Wayne Davison [Tue, 1 Feb 2005 08:12:00 +0000 (08:12 +0000)]
Fixed a typo in a variable name.

19 years agoChanged the "s" modifier to "w" for word-splitting tokens from a
Wayne Davison [Mon, 31 Jan 2005 23:57:35 +0000 (23:57 +0000)]
Changed the "s" modifier to "w" for word-splitting tokens from a
merge filter file.  Also sprinkled some bf(...) macros into that
section.

19 years agoChanged the "s" modifier to "w" for a word-splitting merge file.
Wayne Davison [Mon, 31 Jan 2005 23:51:54 +0000 (23:51 +0000)]
Changed the "s" modifier to "w" for a word-splitting merge file.

19 years ago- Mark references to command-line switches with the bf(...) macro.
Wayne Davison [Mon, 31 Jan 2005 23:41:08 +0000 (23:41 +0000)]
- Mark references to command-line switches with the bf(...) macro.
- Changed some verb(...) macros to use other yodl idioms because
  yodl inserts way too much vertical whitespace surrounding the
  item.
- Some items weren't indenting enough in the manpage, though they
  were indenting fine in the HTML version, so used some creative
  idioms to get things to render well in both.
- Got rid of some empty lines in lists.
- Made several quote(...) items also tt(...).

19 years agoTweaked one or more warning messages.
Wayne Davison [Mon, 31 Jan 2005 19:13:19 +0000 (19:13 +0000)]
Tweaked one or more warning messages.

19 years agoImproved the exclude tests to make sure that the filter files
Wayne Davison [Mon, 31 Jan 2005 18:09:23 +0000 (18:09 +0000)]
Improved the exclude tests to make sure that the filter files
are interacting with --delete-during correctly.

19 years agoAdded "need_first_push" logic to delete_in_dir().
Wayne Davison [Sun, 30 Jan 2005 20:24:11 +0000 (20:24 +0000)]
Added "need_first_push" logic to delete_in_dir().

19 years agoThe --delete-during processing only happens during the first phase
Wayne Davison [Sun, 30 Jan 2005 10:06:18 +0000 (10:06 +0000)]
The --delete-during processing only happens during the first phase
(not the redo phase).  We also call delete_in_dir(NULL, NULL) to
make sure that all the local filter files get popped.

19 years agodelete_in_dir() now mananges the push/pop levels of nested
Wayne Davison [Sun, 30 Jan 2005 10:01:21 +0000 (10:01 +0000)]
delete_in_dir() now mananges the push/pop levels of nested
directories properly.

19 years ago- Now delete_in_dir() calls send_directory(), not send_file_name().
Wayne Davison [Sun, 30 Jan 2005 09:12:55 +0000 (09:12 +0000)]
- Now delete_in_dir() calls send_directory(), not send_file_name().
- Moved the local-list push/pop code out of send_directory() so that
  the callers (send_file_name() and delete_in_dir()) can call the
  push/pop functions themselves.  This is in preparation for
  delete_in_dir() getting fully correct push/pop semantics (for
  its --delete-during handling of per-dir filter files).

19 years ago- Restored the io_error test to delete_files().
Wayne Davison [Sun, 30 Jan 2005 07:35:13 +0000 (07:35 +0000)]
- Restored the io_error test to delete_files().
- Sanity check the dir_list value from send_file_list().

19 years ago- Made delete_files() call send_file_list() and delete_missing()
Wayne Davison [Sat, 29 Jan 2005 22:35:53 +0000 (22:35 +0000)]
- Made delete_files() call send_file_list() and delete_missing()
  instead of delete_in_dir().
- Tweaked check in front of delete_files() call.

19 years agoIf --recurse wasn't specified, turn off all the --delete* options.
Wayne Davison [Sat, 29 Jan 2005 22:35:50 +0000 (22:35 +0000)]
If --recurse wasn't specified, turn off all the --delete* options.

19 years agoTweaked check in front of delete_files() call.
Wayne Davison [Sat, 29 Jan 2005 22:35:47 +0000 (22:35 +0000)]
Tweaked check in front of delete_files() call.

19 years ago- Improved the handling of -x with -K.
Wayne Davison [Sat, 29 Jan 2005 22:35:44 +0000 (22:35 +0000)]
- Improved the handling of -x with -K.
- Changed delete_in_dir() to only be used by the --delete-during
  option.
- Added delete_missing() that is used by both delete_files() and
  delete_in_dir().
- delete_files() still uses send_file_list(), but delete_in_dir()
  now uses send_file_name().

19 years agoThe --dirs was sending -k instead of -d.
Wayne Davison [Sat, 29 Jan 2005 21:25:44 +0000 (21:25 +0000)]
The --dirs was sending -k instead of -d.

19 years ago- Document the new "/" modifier for -/+.
Wayne Davison [Sat, 29 Jan 2005 20:48:27 +0000 (20:48 +0000)]
- Document the new "/" modifier for -/+.
- "=" is no longer a valid separator for a filter rule.

19 years agoRenamed XFLG_ABS_PATH XFLG_ANCHORED2ABS.
Wayne Davison [Sat, 29 Jan 2005 20:48:23 +0000 (20:48 +0000)]
Renamed XFLG_ABS_PATH XFLG_ANCHORED2ABS.

19 years agoMoved the module_id define into clientserver.c.
Wayne Davison [Sat, 29 Jan 2005 20:48:20 +0000 (20:48 +0000)]
Moved the module_id define into clientserver.c.

19 years ago- Renamed make_filter() to filter_rule().
Wayne Davison [Sat, 29 Jan 2005 20:48:17 +0000 (20:48 +0000)]
- Renamed make_filter() to filter_rule().
- Added the "/" modifier to the -/+ filter rules to allow the
  rule to specify an absolute path (sets MATCHFLG_ABS_PATH).
- Added the passing of the xflgags to filter_rule() and key off
  XFLG_ANCHORED2ABS to prepend the current dirbuf value (was
  keing off MATCHFLG_ABS_PATH).
- We no longer allow a '=' to separate the filter rule from its
  arg (just a single space or an underscore).
- For triple verbose levels, mention when we look for a filter
  file even if we don't find it (used to only mention the file
  when it was found).
- A chrooted daemon process now includes /.cvsignore (inside the
  chrooted hierarchy) instead of $HOME/.cvsignore.

19 years ago- Moved the module_id definition from options.c to here.
Wayne Davison [Sat, 29 Jan 2005 20:48:14 +0000 (20:48 +0000)]
- Moved the module_id definition from options.c to here.
- Use the new XFLG_ANCHORED2ABS name for the old XFLG_ABS_PATH
  define.

19 years agoChange one call to add_cvs_excludes() to add_filter() to just add
Wayne Davison [Sat, 29 Jan 2005 20:29:06 +0000 (20:29 +0000)]
Change one call to add_cvs_excludes() to add_filter() to just add
the per-dir .cvsignore rule for protocols < 29.

19 years agoA minor change to the HAVE_GETPGRP code.
Wayne Davison [Fri, 28 Jan 2005 23:00:58 +0000 (23:00 +0000)]
A minor change to the HAVE_GETPGRP code.

19 years agoFixed some typos.
Wayne Davison [Fri, 28 Jan 2005 22:01:02 +0000 (22:01 +0000)]
Fixed some typos.

19 years agoMention a few more things.
Wayne Davison [Fri, 28 Jan 2005 21:48:32 +0000 (21:48 +0000)]
Mention a few more things.

19 years agoPass an unsigned character to isdigit().
Wayne Davison [Fri, 28 Jan 2005 21:32:20 +0000 (21:32 +0000)]
Pass an unsigned character to isdigit().

19 years agoDon't allow the user to specify a filter file that is excluded
Wayne Davison [Fri, 28 Jan 2005 21:28:08 +0000 (21:28 +0000)]
Don't allow the user to specify a filter file that is excluded
by a daemon's config options.

19 years agoGot rid of an unreachable free() call.
Wayne Davison [Fri, 28 Jan 2005 21:07:05 +0000 (21:07 +0000)]
Got rid of an unreachable free() call.

19 years agoCast each value referenced from the struct mallinfo to a long
Wayne Davison [Fri, 28 Jan 2005 21:05:50 +0000 (21:05 +0000)]
Cast each value referenced from the struct mallinfo to a long
in order to print it.

19 years agoDon't set unsigned del_heir_name_len to -1 -- it's only used
Wayne Davison [Fri, 28 Jan 2005 21:03:50 +0000 (21:03 +0000)]
Don't set unsigned del_heir_name_len to -1 -- it's only used
if in_del_hier is non-zero, so it doesn't need to take on an
invalid value.

19 years agoCase uchar pointer to a char pointer when calling strlen().
Wayne Davison [Fri, 28 Jan 2005 21:02:15 +0000 (21:02 +0000)]
Case uchar pointer to a char pointer when calling strlen().

19 years ago- Use "uchar" instead of "unsigned char".
Wayne Davison [Fri, 28 Jan 2005 21:01:21 +0000 (21:01 +0000)]
- Use "uchar" instead of "unsigned char".
- Tweaked an initializer to try to avoid a compiler warning.

19 years agoCall the right stat function based on USE_STAT64_FUNCS.
Wayne Davison [Fri, 28 Jan 2005 20:43:09 +0000 (20:43 +0000)]
Call the right stat function based on USE_STAT64_FUNCS.

19 years agoChanged direct call to fstat() into a call to do_fstat().
Wayne Davison [Fri, 28 Jan 2005 20:41:36 +0000 (20:41 +0000)]
Changed direct call to fstat() into a call to do_fstat().

19 years agoUse new USE_STAT64_FUNCS define.
Wayne Davison [Fri, 28 Jan 2005 20:33:55 +0000 (20:33 +0000)]
Use new USE_STAT64_FUNCS define.

19 years ago- Use off_t if SIZEOF_OFF_T is 8.
Wayne Davison [Fri, 28 Jan 2005 20:32:47 +0000 (20:32 +0000)]
- Use off_t if SIZEOF_OFF_T is 8.
- Define USE_STAT64_FUNCS if we defined STRUCT_STAT as
  "struct stat64".

19 years agoChanged "char" to "uchar" in delayed_bits's new_array() call.
Wayne Davison [Fri, 28 Jan 2005 20:24:23 +0000 (20:24 +0000)]
Changed "char" to "uchar" in delayed_bits's new_array() call.

19 years agoMake use of new HAVE_STRUCT_STAT64 define.
Wayne Davison [Fri, 28 Jan 2005 20:15:08 +0000 (20:15 +0000)]
Make use of new HAVE_STRUCT_STAT64 define.

19 years agoAdded a check for "struct stat64".
Wayne Davison [Fri, 28 Jan 2005 20:15:06 +0000 (20:15 +0000)]
Added a check for "struct stat64".

19 years agoDo a better job defining an int32. Also define SIZEOF_INT32
Wayne Davison [Fri, 28 Jan 2005 19:03:16 +0000 (19:03 +0000)]
Do a better job defining an int32.  Also define SIZEOF_INT32
instead of the (unused) LARGE_INT32 variable.

19 years ago- Changed the main core of system include files to use the same "#if"
Wayne Davison [Fri, 28 Jan 2005 18:50:54 +0000 (18:50 +0000)]
- Changed the main core of system include files to use the same "#if"
  idioms that configure uses.
- Use "#if" (not "#ifdef") for configure-defined macros.
- Use "#if !" (not "#ifndef") for configure-defined macros.

19 years agoUse "#if" (not "#ifdef") for configure-defined macros.
Wayne Davison [Fri, 28 Jan 2005 18:50:49 +0000 (18:50 +0000)]
Use "#if" (not "#ifdef") for configure-defined macros.

19 years agoMade log_open() static and made it die with an error if the
Wayne Davison [Fri, 28 Jan 2005 17:42:21 +0000 (17:42 +0000)]
Made log_open() static and made it die with an error if the
log-file can't be opened.

19 years agoNo need to call log_open() in start_accept_loop() because
Wayne Davison [Fri, 28 Jan 2005 17:33:57 +0000 (17:33 +0000)]
No need to call log_open() in start_accept_loop() because
rsync_module() calls log_init() before it gives up its privileges.

19 years agoDocument the "max verbosity" setting.
Wayne Davison [Fri, 28 Jan 2005 17:11:48 +0000 (17:11 +0000)]
Document the "max verbosity" setting.

19 years agoDocument the --verbose (-v) option for the daemon.
Wayne Davison [Fri, 28 Jan 2005 17:10:58 +0000 (17:10 +0000)]
Document the --verbose (-v) option for the daemon.

19 years ago- Moved read_only variable here from options.c
Wayne Davison [Fri, 28 Jan 2005 17:10:16 +0000 (17:10 +0000)]
- Moved read_only variable here from options.c
- Set read_only to 1 if the module is read-only.
- Make sure that the verbose level is 0 before we parse the client's
  options.

19 years ago- Added --verbose option parsing to the daemon options.
Wayne Davison [Fri, 28 Jan 2005 17:07:54 +0000 (17:07 +0000)]
- Added --verbose option parsing to the daemon options.
- Moved read_only into clientserver.c.

19 years agoGot rid of unused mmap section.
Wayne Davison [Fri, 28 Jan 2005 17:06:41 +0000 (17:06 +0000)]
Got rid of unused mmap section.

19 years agoChanged HAVE_OFF64_T to SIZEOF_OFF64_T.
Wayne Davison [Fri, 28 Jan 2005 16:27:02 +0000 (16:27 +0000)]
Changed HAVE_OFF64_T to SIZEOF_OFF64_T.

19 years agoChanged HAVE_OFF64_T to SIZEOF_OFF64_T.
Wayne Davison [Fri, 28 Jan 2005 16:21:37 +0000 (16:21 +0000)]
Changed HAVE_OFF64_T to SIZEOF_OFF64_T.

19 years agoImproved the option summaries.
Wayne Davison [Fri, 28 Jan 2005 09:55:36 +0000 (09:55 +0000)]
Improved the option summaries.

19 years agoImproved the option-descriptions in the --help text.
Wayne Davison [Fri, 28 Jan 2005 09:55:18 +0000 (09:55 +0000)]
Improved the option-descriptions in the --help text.

19 years agoMore --delete-before improvements.
Wayne Davison [Fri, 28 Jan 2005 08:01:33 +0000 (08:01 +0000)]
More --delete-before improvements.

19 years agoOne minor tweak to the --delete-before option-passing code.
Wayne Davison [Fri, 28 Jan 2005 07:50:00 +0000 (07:50 +0000)]
One minor tweak to the --delete-before option-passing code.