rsync/rsync.git
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.

20 years agoBacked out the RSYNC_RSH_IO support for now.
Wayne Davison [Wed, 17 Dec 2003 09:28:45 +0000 (09:28 +0000)]
Backed out the RSYNC_RSH_IO support for now.

20 years agoRemoved hardlink reporting bug from TODO list -- seems to be
J.W. Schultz [Wed, 17 Dec 2003 00:52:01 +0000 (00:52 +0000)]
Removed hardlink reporting bug from TODO list -- seems to be
fixed.

20 years agoAdded keword base reporting to TODO features list.
J.W. Schultz [Wed, 17 Dec 2003 00:49:50 +0000 (00:49 +0000)]
Added keword base reporting to TODO features list.

20 years agoReorganized and cleaned up TODO list.
J.W. Schultz [Wed, 17 Dec 2003 00:47:39 +0000 (00:47 +0000)]
Reorganized and cleaned up TODO list.

20 years ago- Changed the places that talked about rsh being the default shell.
Wayne Davison [Tue, 16 Dec 2003 23:07:19 +0000 (23:07 +0000)]
- Changed the places that talked about rsh being the default shell.
- Document the new RSYNC_RSH_IO environment variable.

20 years agoWe now support an environment variable named RSYNC_RSH_IO which lets the
Wayne Davison [Tue, 16 Dec 2003 23:06:25 +0000 (23:06 +0000)]
We now support an environment variable named RSYNC_RSH_IO which lets the
user set the blocking-IO value for the shell specified by RSYNC_RSH.

20 years agoAdded RSYNC_RSH_IO_ENV.
Wayne Davison [Tue, 16 Dec 2003 23:04:59 +0000 (23:04 +0000)]
Added RSYNC_RSH_IO_ENV.

20 years agoMention change to ssh.
Wayne Davison [Tue, 16 Dec 2003 19:48:25 +0000 (19:48 +0000)]
Mention change to ssh.

20 years agoTweaked an obsolete comment.
Wayne Davison [Tue, 16 Dec 2003 18:02:15 +0000 (18:02 +0000)]
Tweaked an obsolete comment.

20 years agoImproved the default-blocking-I/O code to discern rsh from ssh
Wayne Davison [Tue, 16 Dec 2003 18:02:03 +0000 (18:02 +0000)]
Improved the default-blocking-I/O code to discern rsh from ssh
properly.

20 years agoMade the default remote-shell be "ssh" (override with --with-rsh=FOO).
Wayne Davison [Tue, 16 Dec 2003 18:01:06 +0000 (18:01 +0000)]
Made the default remote-shell be "ssh" (override with --with-rsh=FOO).

20 years agoMoved the information on the single-use ssh key so that the --server
Wayne Davison [Mon, 15 Dec 2003 20:10:21 +0000 (20:10 +0000)]
Moved the information on the single-use ssh key so that the --server
option wasn't being mentioned early in the rsync manpage (which has
confused at least one user trying to figure out the --daemon mode
command-line syntax).

20 years agoDocument new error code 24.
Wayne Davison [Mon, 15 Dec 2003 19:49:38 +0000 (19:49 +0000)]
Document new error code 24.

20 years agoUpdated version.
Wayne Davison [Mon, 15 Dec 2003 19:04:04 +0000 (19:04 +0000)]
Updated version.

20 years agoChanged the version to 2.6.0pre1.
Wayne Davison [Mon, 15 Dec 2003 19:00:20 +0000 (19:00 +0000)]
Changed the version to 2.6.0pre1.

20 years agoRemoved some obsolete items.
Wayne Davison [Mon, 15 Dec 2003 18:45:27 +0000 (18:45 +0000)]
Removed some obsolete items.

20 years agoMake sure we only use blocking-I/O if blocking_io is > 0.
Wayne Davison [Mon, 15 Dec 2003 18:45:07 +0000 (18:45 +0000)]
Make sure we only use blocking-I/O if blocking_io is > 0.

20 years agoChanged version to 2.6.0.
Wayne Davison [Mon, 15 Dec 2003 18:25:10 +0000 (18:25 +0000)]
Changed version to 2.6.0.

20 years agoChanged version to 2.6.0 in preparation for new release.
Wayne Davison [Mon, 15 Dec 2003 18:22:12 +0000 (18:22 +0000)]
Changed version to 2.6.0 in preparation for new release.

20 years agoGot rid of setgroups() caveat for OSX -- we fixed that a while back.
Wayne Davison [Mon, 15 Dec 2003 18:20:06 +0000 (18:20 +0000)]
Got rid of setgroups() caveat for OSX -- we fixed that a while back.

20 years agoMentioned the vanished-file warning enhancement.
Wayne Davison [Mon, 15 Dec 2003 08:44:55 +0000 (08:44 +0000)]
Mentioned the vanished-file warning enhancement.

20 years agoTwiddled some whitespace and multi-line comments.
Wayne Davison [Mon, 15 Dec 2003 08:14:27 +0000 (08:14 +0000)]
Twiddled some whitespace and multi-line comments.

20 years agoNew "io_error" variable handling for RERR_VANISHED support.
Wayne Davison [Mon, 15 Dec 2003 08:10:31 +0000 (08:10 +0000)]
New "io_error" variable handling for RERR_VANISHED support.

20 years agoReturn new RERR_VANISHED code, as appropriate.
Wayne Davison [Mon, 15 Dec 2003 08:08:44 +0000 (08:08 +0000)]
Return new RERR_VANISHED code, as appropriate.

20 years agoAdded new IOERR_* defines.
Wayne Davison [Mon, 15 Dec 2003 08:07:38 +0000 (08:07 +0000)]
Added new IOERR_* defines.

20 years agoHandle new RERR_VANISHED error.
Wayne Davison [Mon, 15 Dec 2003 08:06:52 +0000 (08:06 +0000)]
Handle new RERR_VANISHED error.

20 years agoAdded RERR_VANISHED.
Wayne Davison [Mon, 15 Dec 2003 08:04:14 +0000 (08:04 +0000)]
Added RERR_VANISHED.

20 years agoNeatened up some whitespace issues and made multi-line comments more
Wayne Davison [Mon, 15 Dec 2003 01:45:01 +0000 (01:45 +0000)]
Neatened up some whitespace issues and made multi-line comments more
consistent.

20 years agoSimplified the setting of the reading_remotely variable in function
Wayne Davison [Mon, 15 Dec 2003 00:54:44 +0000 (00:54 +0000)]
Simplified the setting of the reading_remotely variable in function
read_filesfrom_line() now that remote_filesfrom_file is set more
often.

20 years agoIf we're the server and --files-from is "-", set remote_filesfrom_file
Wayne Davison [Mon, 15 Dec 2003 00:53:07 +0000 (00:53 +0000)]
If we're the server and --files-from is "-", set remote_filesfrom_file
to "-" as well (since the data is coming over the socket from the remote
side).

20 years agoNeatened up the indentation.
Wayne Davison [Fri, 12 Dec 2003 17:13:22 +0000 (17:13 +0000)]
Neatened up the indentation.

20 years agoSanity check s2length on recept.
J.W. Schultz [Sat, 6 Dec 2003 21:35:34 +0000 (21:35 +0000)]
Sanity check s2length on recept.

20 years agoMerged in the security fixes from 2.5.7.
Wayne Davison [Sat, 6 Dec 2003 21:07:27 +0000 (21:07 +0000)]
Merged in the security fixes from 2.5.7.

20 years agoAdded reminder to update rsync.yo manpage when adding to
J.W. Schultz [Sat, 25 Oct 2003 20:02:45 +0000 (20:02 +0000)]
Added reminder to update yo manpage when adding to
exit codes.

20 years agoAdded exit code 0.
Wayne Davison [Sat, 25 Oct 2003 17:53:57 +0000 (17:53 +0000)]
Added exit code 0.

20 years agoUpdated exit codes as Jon Jensen and J.W. suggested.
Wayne Davison [Sat, 25 Oct 2003 16:21:41 +0000 (16:21 +0000)]
Updated exit codes as Jon Jensen and J.W. suggested.

20 years agoFixed an operator-precedence problem in the batch-mode code.
Wayne Davison [Mon, 13 Oct 2003 23:46:08 +0000 (23:46 +0000)]
Fixed an operator-precedence problem in the batch-mode code.

20 years agoTried to improve the documentation surrounding a trailing-slash
Wayne Davison [Tue, 7 Oct 2003 20:33:08 +0000 (20:33 +0000)]
Tried to improve the documentation surrounding a trailing-slash
source-dir transfer.

20 years agoTweaked the just-added error message to use my new full_fname()
Wayne Davison [Tue, 16 Sep 2003 05:33:09 +0000 (05:33 +0000)]
Tweaked the just-added error message to use my new full_fname()
function.  Also removed some trailing whitespace from lines.

20 years agoDetect and report when open or opendir succeed but read and
J.W. Schultz [Tue, 16 Sep 2003 02:49:59 +0000 (02:49 +0000)]
Detect and report when open or opendir succeed but read and
readdir fail caused by network filesystems issues and
truncated files.
Thanks to David Norwood and Michael Brown

20 years agoMention my recent changes.
Wayne Davison [Thu, 11 Sep 2003 05:00:52 +0000 (05:00 +0000)]
Mention my recent changes.

20 years agoImproved file-related error messages by using the new
Wayne Davison [Thu, 11 Sep 2003 04:53:05 +0000 (04:53 +0000)]
Improved file-related error messages by using the new
full_fname() function.

20 years agoTweaked an error message.
Wayne Davison [Thu, 11 Sep 2003 04:53:01 +0000 (04:53 +0000)]
Tweaked an error message.

20 years agoAdded a new function, full_fname(), that makes a filename more complete
Wayne Davison [Thu, 11 Sep 2003 04:48:15 +0000 (04:48 +0000)]
Added a new function, full_fname(), that makes a filename more complete
for error messages.  If the path is in a module, we ensure that the
"path" setting (from the config file) is not revealed, while still
reminding the user that the path is relative to the module's root.

20 years agoInclude a few new stubs to handle the new full_fname() function.
Wayne Davison [Thu, 11 Sep 2003 04:48:13 +0000 (04:48 +0000)]
Include a few new stubs to handle the new full_fname() function.

20 years agoGot rid of some "/* dw */" comments and fixed some line's indentation.
Wayne Davison [Thu, 11 Sep 2003 04:48:09 +0000 (04:48 +0000)]
Got rid of some "/* dw */" comments and fixed some line's indentation.

20 years agoGot rid of some "/* dw */" comments.
Wayne Davison [Thu, 11 Sep 2003 04:48:07 +0000 (04:48 +0000)]
Got rid of some "/* dw */" comments.

20 years agoIf lp_path() returns "/", set exclude_path_prefix to "" (because the
Wayne Davison [Thu, 11 Sep 2003 04:00:19 +0000 (04:00 +0000)]
If lp_path() returns "/", set exclude_path_prefix to "" (because the
exclude code doesn't want any trailing slashes).

20 years agoMake sure that the new slash-stripping P_PATH code doesn't turn
Wayne Davison [Thu, 11 Sep 2003 03:49:53 +0000 (03:49 +0000)]
Make sure that the new slash-stripping P_PATH code doesn't turn
a "/" into an empty string.

20 years agoChanged main() definition to avoid an extra prototype being put
Wayne Davison [Wed, 10 Sep 2003 08:27:34 +0000 (08:27 +0000)]
Changed main() definition to avoid an extra prototype being put
into the proto.h file.

20 years agoMake sure that the "path" value has any trailing slashes removed.
Wayne Davison [Wed, 10 Sep 2003 08:08:14 +0000 (08:08 +0000)]
Make sure that the "path" value has any trailing slashes removed.

20 years agoGot rid of trailing whitespace.
Wayne Davison [Wed, 10 Sep 2003 07:31:58 +0000 (07:31 +0000)]
Got rid of trailing whitespace.