rsync/rsync.git
20 years agoUse the new LIVE_FLAGS define to fix a potential flag problem.
Wayne Davison [Sat, 10 Jan 2004 21:10:04 +0000 (21:10 +0000)]
Use the new LIVE_FLAGS define to fix a potential flag problem.

20 years agoAdded LIVE_FLAGS define.
Wayne Davison [Sat, 10 Jan 2004 21:09:06 +0000 (21:09 +0000)]
Added LIVE_FLAGS define.

20 years agoChanged the call to write_batch_csum_info() to the latest syntax.
Wayne Davison [Sat, 10 Jan 2004 20:16:18 +0000 (20:16 +0000)]
Changed the call to write_batch_csum_info() to the latest syntax.

20 years agoMassive rewrite to replace the file-list read/write code with calls to
Wayne Davison [Sat, 10 Jan 2004 20:16:13 +0000 (20:16 +0000)]
Massive rewrite to replace the file-list read/write code with calls to
send_file_entry() and receive_file_entry().  Other cleanups too.

20 years agoAllow the send_file_entry() and receive_file_entry() routines to be
Wayne Davison [Sat, 10 Jan 2004 20:15:55 +0000 (20:15 +0000)]
Allow the send_file_entry() and receive_file_entry() routines to be
called by the batch processor.

20 years agoSupport the recent changes in the flist_struct.
Wayne Davison [Sat, 10 Jan 2004 08:39:57 +0000 (08:39 +0000)]
Support the recent changes in the flist_struct.

20 years agoGot rid of tmpsum[].
Wayne Davison [Fri, 9 Jan 2004 18:35:41 +0000 (18:35 +0000)]
Got rid of tmpsum[].

20 years agoNote latest changes.
Wayne Davison [Fri, 9 Jan 2004 18:27:15 +0000 (18:27 +0000)]
Note latest changes.

20 years ago- Never allocate a useless sum array for a non-regular flist item.
Wayne Davison [Fri, 9 Jan 2004 18:19:32 +0000 (18:19 +0000)]
- Never allocate a useless sum array for a non-regular flist item.
- Don't transmit the sum array for non-regular files (p28 onward).
- Tweaked a couple comments.

20 years agoA couple minor code improvements.
Wayne Davison [Fri, 9 Jan 2004 18:10:31 +0000 (18:10 +0000)]
A couple minor code improvements.

20 years agoAdded an extra comment.
Wayne Davison [Fri, 9 Jan 2004 16:53:55 +0000 (16:53 +0000)]
Added an extra comment.

20 years agoAdded a few more devices to the devices.test to hopefully
J.W. Schultz [Fri, 9 Jan 2004 14:02:00 +0000 (14:02 +0000)]
Added a few more devices to the devices.test to hopefully
test same, same high and different device numbers.

20 years agoFinished the last_* renameing and fixed a cast..
J.W. Schultz [Fri, 9 Jan 2004 13:55:56 +0000 (13:55 +0000)]
Finished the last_* renameing and fixed a cast..

20 years agoUpdated the send_file_name() and receive_file_entry() functions to make
Wayne Davison [Thu, 8 Jan 2004 22:45:12 +0000 (22:45 +0000)]
Updated the send_file_name() and receive_file_entry() functions to make
some of the variable names more logical in the new program flow.  Also
improved the setting of the new last_rdev value that only remembers the
high 3 bytes.

20 years agoChanged the OLD_SAME_RDEV define to SAME_RDEV_pre28.
Wayne Davison [Thu, 8 Jan 2004 22:45:07 +0000 (22:45 +0000)]
Changed the OLD_SAME_RDEV define to SAME_RDEV_pre28.

20 years agoAdded explicit call to AC_PROG_EGREP.
Wayne Davison [Thu, 8 Jan 2004 18:33:38 +0000 (18:33 +0000)]
Added explicit call to AC_PROG_EGREP.

20 years agoOptimized the sending of dev+inode data for hard-linking support
Wayne Davison [Thu, 8 Jan 2004 11:29:50 +0000 (11:29 +0000)]
Optimized the sending of dev+inode data for hard-linking support
(but only when speaking protocol 28).

20 years ago- Added flags HAS_INODE_DATA and SAME_DEV.
Wayne Davison [Thu, 8 Jan 2004 11:28:07 +0000 (11:28 +0000)]
- Added flags HAS_INODE_DATA and SAME_DEV.
- Changed PROTOCOL_VERSION to 28 now.

20 years agoImplemented an extended-flag-byte in the transfer protocol by moving
Wayne Davison [Thu, 8 Jan 2004 11:08:30 +0000 (11:08 +0000)]
Implemented an extended-flag-byte in the transfer protocol by moving
the SAME_RDEV bit into the next 8 bits and adding an EXTENDED_FLAG
bit.  Also modified the meaning of this bit for protocol 28 and above:
SAME_HIGH_RDEV indicates that all but the lowest byte matches.  The
older protocols get OLD_SAME_RDEV set (with the old semantics) for
compatibility.  Note also that protocol 28 isn't turned on yet.

20 years agoAdded EXTENDED_FLAGS and SAME_HIGH_RDEV. Changed SAME_RDEV to OLD_SAME_RDEV.
Wayne Davison [Thu, 8 Jan 2004 11:08:30 +0000 (11:08 +0000)]
Added EXTENDED_FLAGS and SAME_HIGH_RDEV. Changed SAME_RDEV to OLD_SAME_RDEV.

20 years agoPass the $srcdir/wildtest.txt file on the command-line to wildtest.
Wayne Davison [Thu, 8 Jan 2004 09:00:14 +0000 (09:00 +0000)]
Pass the $srcdir/wildtest.txt file on the command-line to wildtest.

20 years agoWe now take a TESTFILE arg on the command-line.
Wayne Davison [Thu, 8 Jan 2004 08:59:52 +0000 (08:59 +0000)]
We now take a TESTFILE arg on the command-line.

20 years agoImproved the code in send_file_entry() and receive_file_entry() to
Wayne Davison [Thu, 8 Jan 2004 04:56:27 +0000 (04:56 +0000)]
Improved the code in send_file_entry() and receive_file_entry() to
make it a little easier to read and a little more optimized.  Also
made the flag size in our function calls match the size of the flags
in the flist_struct.  These changes will make it easier for me to
optimize the sending of the hard-link data in a future commit.

20 years agoMade the flags in the file_struct a little smaller.
Wayne Davison [Thu, 8 Jan 2004 04:53:16 +0000 (04:53 +0000)]
Made the flags in the file_struct a little smaller.

20 years ago- No need to check S_ISREG() on files already in the hlink_list.
Wayne Davison [Thu, 8 Jan 2004 03:17:07 +0000 (03:17 +0000)]
- No need to check S_ISREG() on files already in the hlink_list.
- The realloc in init_hard_links() might fail if the list is empty
  (which can happen if there are no regular files in the transfer).
  I changed the code to free the list in that case.

20 years agoOld-protocols.
Wayne Davison [Thu, 8 Jan 2004 00:47:17 +0000 (00:47 +0000)]
Old-protocols.

20 years agoGot rid of support for protocols 17 and 18.
Wayne Davison [Thu, 8 Jan 2004 00:45:41 +0000 (00:45 +0000)]
Got rid of support for protocols 17 and 18.

20 years agoNoted hardlink memory footprint reduction.
J.W. Schultz [Wed, 7 Jan 2004 11:38:23 +0000 (11:38 +0000)]
Noted hardlink memory footprint reduction.

20 years agoCosmetic changes to file_compare() for readability and to
J.W. Schultz [Wed, 7 Jan 2004 09:11:56 +0000 (09:11 +0000)]
Cosmetic changes to file_compare() for readability and to
match hlink_compare()

20 years agoChange hlink_list so we only have a list of pointers to
J.W. Schultz [Wed, 7 Jan 2004 09:06:37 +0000 (09:06 +0000)]
Change hlink_list so we only have a list of pointers to
file_struct instead of a copy of the file_struct list.

20 years agoBatch-mode fix.
Wayne Davison [Tue, 6 Jan 2004 05:35:55 +0000 (05:35 +0000)]
Batch-mode fix.

20 years agoFixed a byte-order problem for batch-file processing on big-endian
Wayne Davison [Tue, 6 Jan 2004 05:33:02 +0000 (05:33 +0000)]
Fixed a byte-order problem for batch-file processing on big-endian
systems (reported by Jay Fenlason).

20 years agoSome whitespace tweaks.
Wayne Davison [Mon, 5 Jan 2004 03:57:15 +0000 (03:57 +0000)]
Some whitespace tweaks.

20 years agoA few formatting tweaks.
Wayne Davison [Mon, 5 Jan 2004 03:56:19 +0000 (03:56 +0000)]
A few formatting tweaks.

20 years agoUse new recv_generator() calling syntax.
Wayne Davison [Sun, 4 Jan 2004 19:18:37 +0000 (19:18 +0000)]
Use new recv_generator() calling syntax.

20 years agoChanged recv_generator() to take a "struct file_struct *" instead of
Wayne Davison [Sun, 4 Jan 2004 18:43:18 +0000 (18:43 +0000)]
Changed recv_generator() to take a "struct file_struct *" instead of
a "struct file_list *", which allows us to call it with a copy of the
current file_struct entry that we've modified.  This is better than
modifying the entry directly because the latter causes the shared
memory between the generator and the receiver to slowly vanish as
the in-memory changes happen.

20 years agoTry using "id -un" before "whoami" since the latter doesn't exist on
Wayne Davison [Sun, 4 Jan 2004 07:07:08 +0000 (07:07 +0000)]
Try using "id -un" before "whoami" since the latter doesn't exist on
SunOS systems (and I hope the former works -- we'll see).

20 years agoSilence a compiler warning on Sun OS systems.
Wayne Davison [Sun, 4 Jan 2004 07:06:05 +0000 (07:06 +0000)]
Silence a compiler warning on Sun OS systems.

20 years agoImproved the text.
Wayne Davison [Sat, 3 Jan 2004 20:50:51 +0000 (20:50 +0000)]
Improved the text.

20 years agoFixed autom4te*.cache entry.
Wayne Davison [Sat, 3 Jan 2004 19:49:52 +0000 (19:49 +0000)]
Fixed autom4te*.cache entry.

20 years agoMention more INTERNALS work.
Wayne Davison [Sat, 3 Jan 2004 19:28:17 +0000 (19:28 +0000)]
Mention more INTERNALS work.

20 years agoMore variable-size cleanup.
Wayne Davison [Sat, 3 Jan 2004 19:28:03 +0000 (19:28 +0000)]
More variable-size cleanup.

20 years agoMade the types used in the sum_buf and sum_struct structures consistent
Wayne Davison [Sat, 3 Jan 2004 18:37:41 +0000 (18:37 +0000)]
Made the types used in the sum_buf and sum_struct structures consistent
with the variables in the code that manipulates these values.

20 years agoCreate GID_NONE for use gid test readability.
J.W. Schultz [Sat, 3 Jan 2004 13:17:32 +0000 (13:17 +0000)]
Create GID_NONE for use gid test readability.

20 years agoFixed a name.
Wayne Davison [Sat, 3 Jan 2004 09:48:52 +0000 (09:48 +0000)]
Fixed a name.

20 years agoFixed a size check in the new code.
Wayne Davison [Sat, 3 Jan 2004 09:44:20 +0000 (09:44 +0000)]
Fixed a size check in the new code.

20 years agoDocument the latest changes.
Wayne Davison [Sat, 3 Jan 2004 09:36:30 +0000 (09:36 +0000)]
Document the latest changes.

20 years agoAdded support for "Basic" authentication to our proxy, based on a
Wayne Davison [Sat, 3 Jan 2004 09:19:06 +0000 (09:19 +0000)]
Added support for "Basic" authentication to our proxy, based on a
patch by Bardur Arantsson.

20 years agoMade base64_encode() non-static.
Wayne Davison [Sat, 3 Jan 2004 08:53:36 +0000 (08:53 +0000)]
Made base64_encode() non-static.

20 years agoSilence a compiler warning.
Wayne Davison [Sat, 3 Jan 2004 01:12:10 +0000 (01:12 +0000)]
Silence a compiler warning.

20 years agoAdded missing '[]'s to AC_CHECK_FUNCS() calls so that this works
Wayne Davison [Sat, 3 Jan 2004 00:40:55 +0000 (00:40 +0000)]
Added missing '[]'s to AC_CHECK_FUNCS() calls so that this works
with autoconf 2.58 and above.

20 years agoSome cosmetic tweaks.
Wayne Davison [Fri, 2 Jan 2004 23:41:32 +0000 (23:41 +0000)]
Some cosmetic tweaks.

20 years agoImproved flush_write_file().
Wayne Davison [Fri, 2 Jan 2004 18:42:33 +0000 (18:42 +0000)]
Improved flush_write_file().

20 years agoApplied a slightly-tweaked version of Oliver Braun's patch that
Wayne Davison [Fri, 2 Jan 2004 18:05:51 +0000 (18:05 +0000)]
Applied a slightly-tweaked version of Oliver Braun's patch that
implements listening on multiple addresses and a fix for IPv6-only
systems.

20 years agoCall bind() with the right ai_addr/ai_addrlen info.
Wayne Davison [Fri, 2 Jan 2004 17:47:44 +0000 (17:47 +0000)]
Call bind() with the right ai_addr/ai_addrlen info.

20 years agoTidied up a few things in preparation for changes.
Wayne Davison [Fri, 2 Jan 2004 17:20:21 +0000 (17:20 +0000)]
Tidied up a few things in preparation for changes.

20 years agoMoved the is_in_group() function to uidlist.c.
Wayne Davison [Fri, 2 Jan 2004 16:52:29 +0000 (16:52 +0000)]
Moved the is_in_group() function to uidlist.c.

20 years agoSet the file's gid to -1 if we don't have permissions to set it.
Wayne Davison [Fri, 2 Jan 2004 16:51:54 +0000 (16:51 +0000)]
Set the file's gid to -1 if we don't have permissions to set it.

20 years agoFixed --link-dest's check for identicalness to ignore the uid if
Wayne Davison [Fri, 2 Jan 2004 16:50:06 +0000 (16:50 +0000)]
Fixed --link-dest's check for identicalness to ignore the uid if
non-root, and to ignore a gid of -1.

20 years agoSilence some compiler warnings.
Wayne Davison [Fri, 2 Jan 2004 08:50:25 +0000 (08:50 +0000)]
Silence some compiler warnings.

20 years agoImproved the setting of cleanup_got_literal so that we know if the
Wayne Davison [Fri, 2 Jan 2004 08:38:35 +0000 (08:38 +0000)]
Improved the setting of cleanup_got_literal so that we know if the
current file received some literal data yet or not.

20 years agoUse the new f_name_to() call instead of strlcat() an f_name().
Wayne Davison [Fri, 2 Jan 2004 08:36:58 +0000 (08:36 +0000)]
Use the new f_name_to() call instead of strlcat() an f_name().

20 years agoSome minor changes to some if statements.
Wayne Davison [Fri, 2 Jan 2004 08:33:57 +0000 (08:33 +0000)]
Some minor changes to some if statements.

20 years agoUse buffered I/O to read the exclude list.
Wayne Davison [Fri, 2 Jan 2004 08:31:12 +0000 (08:31 +0000)]
Use buffered I/O to read the exclude list.

20 years agoApplying my updated version of Craig Barratt's buffered I/O patch.
Wayne Davison [Fri, 2 Jan 2004 08:29:49 +0000 (08:29 +0000)]
Applying my updated version of Craig Barratt's buffered I/O patch.

20 years agoSome name tweaks.
Wayne Davison [Fri, 2 Jan 2004 08:19:26 +0000 (08:19 +0000)]
Some name tweaks.

20 years agoUse the f_name_to() function to avoid having to strdup() the name that
Wayne Davison [Fri, 2 Jan 2004 08:18:53 +0000 (08:18 +0000)]
Use the f_name_to() function to avoid having to strdup() the name that
f_name() returns.  Also used in a call to recv_generator() to keep the
name safe for the duration of the call.

20 years agoUse f_name_to() when producing a name for the recv_generator() call.
Wayne Davison [Fri, 2 Jan 2004 08:05:20 +0000 (08:05 +0000)]
Use f_name_to() when producing a name for the recv_generator() call.
This prevents things like the hard-link code from losing the name
before we're finished with it.

20 years agoOptimized f_name(), generating: (1) f_name_cmp(), which optimizes
Wayne Davison [Fri, 2 Jan 2004 07:57:02 +0000 (07:57 +0000)]
Optimized f_name(), generating: (1) f_name_cmp(), which optimizes
comparing two file_struct elements without copying them first, and
(2) f_name_to() which lets us supply the destination buffer for a
f_name() call (to allow it to persist without an extra copy).

20 years agoGot rid of /* dw */ comments.
Wayne Davison [Fri, 2 Jan 2004 07:42:20 +0000 (07:42 +0000)]
Got rid of /* dw */ comments.

20 years agoOptimized hard_link_one() to not call f_name() so many times.
Wayne Davison [Fri, 2 Jan 2004 07:34:49 +0000 (07:34 +0000)]
Optimized hard_link_one() to not call f_name() so many times.

20 years agoNo need to conditionally-compile EINTR code -- no other files do this.
Wayne Davison [Fri, 2 Jan 2004 07:31:02 +0000 (07:31 +0000)]
No need to conditionally-compile EINTR code -- no other files do this.

20 years agoMore twiddling of the wildcard verbage.
Wayne Davison [Fri, 2 Jan 2004 07:11:32 +0000 (07:11 +0000)]
More twiddling of the wildcard verbage.

20 years agoImproved the itemized discussion under the wildcard changes.
Wayne Davison [Thu, 1 Jan 2004 22:37:13 +0000 (22:37 +0000)]
Improved the itemized discussion under the wildcard changes.

20 years agoAllow function return values to start with "const".
Wayne Davison [Thu, 1 Jan 2004 21:10:50 +0000 (21:10 +0000)]
Allow function return values to start with "const".

20 years agoTweaked the date.
Wayne Davison [Thu, 1 Jan 2004 19:00:11 +0000 (19:00 +0000)]
Tweaked the date.

20 years agoPreparing for release of 2.6.0
Wayne Davison [Thu, 1 Jan 2004 11:36:16 +0000 (11:36 +0000)]
Preparing for release of 2.6.0

20 years agoOne more tweak to --modify-window verbage.
Wayne Davison [Tue, 30 Dec 2003 18:17:16 +0000 (18:17 +0000)]
One more tweak to --modify-window verbage.

20 years agoShorten some of the lines in the --help output.
Wayne Davison [Tue, 30 Dec 2003 18:16:25 +0000 (18:16 +0000)]
Shorten some of the lines in the --help output.

20 years agoShortened a few lines, plus a couple minor tweaks.
Wayne Davison [Tue, 30 Dec 2003 17:44:01 +0000 (17:44 +0000)]
Shortened a few lines, plus a couple minor tweaks.

20 years agoChanged the VERSION section to refer to 2.x instead of 2.0.
Wayne Davison [Mon, 29 Dec 2003 09:58:06 +0000 (09:58 +0000)]
Changed the VERSION section to refer to 2.x instead of 2.0.

20 years agoPreparing for release of 2.6.0pre2
Wayne Davison [Sun, 28 Dec 2003 21:11:38 +0000 (21:11 +0000)]
Preparing for release of 2.6.0pre2

20 years agoMake the upper copyright year "2004".
Wayne Davison [Sun, 28 Dec 2003 20:48:06 +0000 (20:48 +0000)]
Make the upper copyright year "2004".

20 years agoAged news from NEWS to OLDNEWS.
Wayne Davison [Sat, 27 Dec 2003 00:14:21 +0000 (00:14 +0000)]
Aged news from NEWS to OLDNEWS.

20 years agoUndid previous change.
Wayne Davison [Fri, 26 Dec 2003 23:04:01 +0000 (23:04 +0000)]
Undid previous change.

20 years agoA change that wasn't needed.
Wayne Davison [Fri, 26 Dec 2003 22:59:53 +0000 (22:59 +0000)]
A change that wasn't needed.

20 years agoUse %{version} to refer to the current version.
Wayne Davison [Wed, 24 Dec 2003 17:48:25 +0000 (17:48 +0000)]
Use %{version} to refer to the current version.

20 years agoGetting rid of klunky *.tmpl files.
Wayne Davison [Wed, 24 Dec 2003 17:46:46 +0000 (17:46 +0000)]
Getting rid of klunky *.tmpl files.

20 years agoMention the new-backup-dir mode change.
Wayne Davison [Wed, 24 Dec 2003 01:46:38 +0000 (01:46 +0000)]
Mention the new-backup-dir mode change.

20 years agoGetting rid of an extra newline that accidentally crept into the code.
Wayne Davison [Wed, 24 Dec 2003 01:46:07 +0000 (01:46 +0000)]
Getting rid of an extra newline that accidentally crept into the code.

20 years agoSimplified an internal function's name to remove a potentially
Wayne Davison [Wed, 24 Dec 2003 01:14:16 +0000 (01:14 +0000)]
Simplified an internal function's name to remove a potentially
cryptic suffix.

20 years agoUpdated the copyright year.
Wayne Davison [Sat, 20 Dec 2003 18:00:13 +0000 (18:00 +0000)]
Updated the copyright year.

20 years agoOutput a warning about the new remote-shell default if the --with-rsh
Wayne Davison [Sat, 20 Dec 2003 17:57:47 +0000 (17:57 +0000)]
Output a warning about the new remote-shell default if the --with-rsh
option wasn't used.

20 years agoOutput a newline before the heap statistics.
Wayne Davison [Sat, 20 Dec 2003 16:57:24 +0000 (16:57 +0000)]
Output a newline before the heap statistics.

20 years ago- Mention the extra newlines in the verbose/stats output.
Wayne Davison [Sat, 20 Dec 2003 16:56:51 +0000 (16:56 +0000)]
- Mention the extra newlines in the verbose/stats output.
- Made some spelling corrections.

20 years agoAdded a couple missing items from John Van Essen.
Wayne Davison [Sat, 20 Dec 2003 16:51:13 +0000 (16:51 +0000)]
Added a couple missing items from John Van Essen.

20 years agoQuiet a compiler warning.
Wayne Davison [Fri, 19 Dec 2003 22:19:54 +0000 (22:19 +0000)]
Quiet a compiler warning.

20 years agoMention the change we made to help ssh cleanup the tty on Ctrl-C.
Wayne Davison [Fri, 19 Dec 2003 20:21:17 +0000 (20:21 +0000)]
Mention the change we made to help ssh cleanup the tty on Ctrl-C.

20 years agoDo a small msleep() in the sig_int() handler before shutting down.
Wayne Davison [Fri, 19 Dec 2003 06:52:02 +0000 (06:52 +0000)]
Do a small msleep() in the sig_int() handler before shutting down.
This kluge allows things like SIGINT to find our children before
we go throwing around SIGUSR1's at them.

20 years agoGot rid of the RSYNC_RSH_IO stuff for now.
Wayne Davison [Wed, 17 Dec 2003 09:29:35 +0000 (09:29 +0000)]
Got rid of the RSYNC_RSH_IO stuff for now.