rsync-patches.git
19 years agoFixed failing hunks.
Wayne Davison [Wed, 3 Nov 2004 23:15:53 +0000 (23:15 +0000)]
Fixed failing hunks.

19 years agoUpdated to work with latest g2r changes.
Wayne Davison [Wed, 3 Nov 2004 23:00:57 +0000 (23:00 +0000)]
Updated to work with latest g2r changes.

19 years agoMake --inplace work with --compare-dest, and efficient too.
Wayne Davison [Wed, 3 Nov 2004 22:45:53 +0000 (22:45 +0000)]
Make --inplace work with --compare-dest, and efficient too.

19 years agoAdded the FNAMECMP_CMPDEST define to avoid a literal 0 in the code.
Wayne Davison [Wed, 3 Nov 2004 20:19:27 +0000 (20:19 +0000)]
Added the FNAMECMP_CMPDEST define to avoid a literal 0 in the code.

19 years agoOptimized the flushing of the buffered I/O when we're writing the
Wayne Davison [Wed, 3 Nov 2004 19:59:47 +0000 (19:59 +0000)]
Optimized the flushing of the buffered I/O when we're writing the
g2r bytestream -- it only happens now if the g2r pipe fills up.

19 years agoA few more tweaks to sysacls.c and sysacls.h.
Wayne Davison [Wed, 20 Oct 2004 15:41:05 +0000 (15:41 +0000)]
A few more tweaks to sysacls.c and sysacls.h.

19 years ago- Put sysacls.c into lib because it is taken from samba and because
Wayne Davison [Wed, 20 Oct 2004 08:11:50 +0000 (08:11 +0000)]
- Put sysacls.c into lib because it is taken from samba and because
  it interferes with the generation of proto.h in the main dir.
- Synchronized sysacls.c with the lastest samba version from CVS.
- Created lib/sysacls.h to provide prototypes to acls.c, and also to
  define Realloc() for lib/sysacls.c.

19 years agoAdded a couple command-line options.
Wayne Davison [Wed, 20 Oct 2004 05:36:36 +0000 (05:36 +0000)]
Added a couple command-line options.

19 years agoGot rid of fuzz.
Wayne Davison [Thu, 14 Oct 2004 17:37:49 +0000 (17:37 +0000)]
Got rid of fuzz.

19 years agoFixed a failing hunk.
Wayne Davison [Thu, 14 Oct 2004 17:22:32 +0000 (17:22 +0000)]
Fixed a failing hunk.

19 years agoFixed failing hunk.
Wayne Davison [Thu, 14 Oct 2004 17:21:03 +0000 (17:21 +0000)]
Fixed failing hunk.

19 years agoFixed 2 failing hunks.
Wayne Davison [Thu, 14 Oct 2004 17:15:09 +0000 (17:15 +0000)]
Fixed 2 failing hunks.

19 years ago- Got rid of some compiler warnings (code moved from compare-dest.diff).
Wayne Davison [Sat, 9 Oct 2004 04:39:38 +0000 (04:39 +0000)]
- Got rid of some compiler warnings (code moved from compare-dest.diff).
- Fixed a failing hunk.

19 years agoAdded a variable to t_stub.c so that "make test" works.
Wayne Davison [Sat, 9 Oct 2004 04:39:33 +0000 (04:39 +0000)]
Added a variable to t_stub.c so that "make test" works.

19 years agoMoved some variable-init code into g2r-basis-filename.diff.
Wayne Davison [Sat, 9 Oct 2004 04:39:28 +0000 (04:39 +0000)]
Moved some variable-init code into g2r-basis-filename.diff.

19 years agoA recently added compare_dest check needed to be patched.
Wayne Davison [Sat, 9 Oct 2004 04:39:22 +0000 (04:39 +0000)]
A recently added compare_dest check needed to be patched.

19 years agoFixed a failing hunk.
Wayne Davison [Sat, 9 Oct 2004 04:39:15 +0000 (04:39 +0000)]
Fixed a failing hunk.

19 years ago- Handle autoconf/autoheader requirements better when asked to build.
Wayne Davison [Fri, 8 Oct 2004 21:06:20 +0000 (21:06 +0000)]
- Handle autoconf/autoheader requirements better when asked to build.
- Look for ./configure options specified in the opening comments and
  use it/them when asked to build.

19 years agoFixed a build problem and a few bugs that crept into the
Wayne Davison [Fri, 8 Oct 2004 21:04:06 +0000 (21:04 +0000)]
Fixed a build problem and a few bugs that crept into the
implementation.

19 years agoRemoved now that an even better version of this patch was checked
Wayne Davison [Fri, 1 Oct 2004 07:00:25 +0000 (07:00 +0000)]
Removed now that an even better version of this patch was checked
into CVS.

19 years agoThis no longer depends on mkfifo.diff.
Wayne Davison [Fri, 1 Oct 2004 06:59:21 +0000 (06:59 +0000)]
This no longer depends on mkfifo.diff.

19 years agoUpdated to apply cleanly.
Wayne Davison [Thu, 30 Sep 2004 16:32:36 +0000 (16:32 +0000)]
Updated to apply cleanly.

19 years agoUpdate Makefile.in so that all targets that use syscall.o now include
Wayne Davison [Thu, 30 Sep 2004 10:16:15 +0000 (10:16 +0000)]
Update Makefile.in so that all targets that use syscall.o now include
lib/compat.o.

19 years agoBased on an idea by Demian M. Nave, but implemented in a better way.
Wayne Davison [Tue, 28 Sep 2004 18:56:25 +0000 (18:56 +0000)]
Based on an idea by Demian M. Nave, but implemented in a better way.

19 years agoNeed to make sure that the destination file doesn't exist before we
Wayne Davison [Mon, 27 Sep 2004 18:52:51 +0000 (18:52 +0000)]
Need to make sure that the destination file doesn't exist before we
try to link from a hashed file to the destination.

19 years agoAdded a missing close() call and removed the forcing of checksum_seed
Wayne Davison [Mon, 27 Sep 2004 18:45:26 +0000 (18:45 +0000)]
Added a missing close() call and removed the forcing of checksum_seed
to a static value (both items Paul Slootman noted).  Also got rid of
trailing whitespace.

19 years agoImproved the default (suggested) commands depending on how a
Wayne Davison [Thu, 23 Sep 2004 18:09:39 +0000 (18:09 +0000)]
Improved the default (suggested) commands depending on how a
patch applies (if it has fuzz, we want to edit, if it just has
some offsets, we want to update and move on).  Also fixed a
spelling mistake.

19 years ago- Reject --fuzzy if combined with --inplace.
Wayne Davison [Thu, 23 Sep 2004 15:41:04 +0000 (15:41 +0000)]
- Reject --fuzzy if combined with --inplace.
- Got rid of some "might be used uninitialized" compiler warnings.

19 years agoMust check if whole_file > 0 these days, not just != 0.
Wayne Davison [Thu, 23 Sep 2004 15:20:32 +0000 (15:20 +0000)]
Must check if whole_file > 0 these days, not just != 0.

19 years ago- Only include sys/un.h in syscall.c.
Wayne Davison [Thu, 23 Sep 2004 05:50:36 +0000 (05:50 +0000)]
- Only include sys/un.h in syscall.c.
- Fixed a signed/unsigned comparison warning.
- Optimized away a strlen() call.

19 years agoMake the patch safer by using strlcpy() instead of strncpy(), and by
Wayne Davison [Wed, 22 Sep 2004 22:42:05 +0000 (22:42 +0000)]
Make the patch safer by using strlcpy() instead of strncpy(), and by
checking to see if the unlink() call failed to remove an existing file.

19 years agoMoved the mkfifo() and socket-making code to mkfifo.diff.
Wayne Davison [Wed, 22 Sep 2004 16:37:45 +0000 (16:37 +0000)]
Moved the mkfifo() and socket-making code to mkfifo.diff.

19 years agoMoved the mkfifo() and socket-making stuff from tru64.diff to here so
Wayne Davison [Wed, 22 Sep 2004 16:37:10 +0000 (16:37 +0000)]
Moved the mkfifo() and socket-making stuff from tru64.diff to here so
that a system like FreeBSD can use it without the extra tru64 stuff.

19 years agoOne more tweak to the code in the backup.c file.
Wayne Davison [Wed, 22 Sep 2004 02:37:39 +0000 (02:37 +0000)]
One more tweak to the code in the backup.c file.

19 years agoNew patch from Marc St-Onge.
Wayne Davison [Wed, 22 Sep 2004 02:27:53 +0000 (02:27 +0000)]
New patch from Marc St-Onge.

19 years agoThis patch shouldn't be needed anymore.
Wayne Davison [Tue, 21 Sep 2004 15:48:45 +0000 (15:48 +0000)]
This patch shouldn't be needed anymore.

19 years agoUpdated to apply cleanly.
Wayne Davison [Tue, 21 Sep 2004 15:47:58 +0000 (15:47 +0000)]
Updated to apply cleanly.

19 years agoOne possible solution to let users who can chown files (but aren't
Wayne Davison [Sat, 18 Sep 2004 01:57:47 +0000 (01:57 +0000)]
One possible solution to let users who can chown files (but aren't
UID 0) preserve owner and group info.

19 years agoGot rid of an UNUSED() that was causing a problem.
Wayne Davison [Wed, 8 Sep 2004 07:28:57 +0000 (07:28 +0000)]
Got rid of an UNUSED() that was causing a problem.

19 years agoA compatibility fix that tries to handle a transfer between systems
Wayne Davison [Wed, 8 Sep 2004 06:15:44 +0000 (06:15 +0000)]
A compatibility fix that tries to handle a transfer between systems
that differ in their ACLS_NEED_MASK setting.

19 years agoUpdated to work with latest generator/receiver changes.
Wayne Davison [Tue, 7 Sep 2004 22:36:27 +0000 (22:36 +0000)]
Updated to work with latest generator/receiver changes.

19 years agoUpdated for latest generator/receiver changes.
Wayne Davison [Tue, 7 Sep 2004 22:36:05 +0000 (22:36 +0000)]
Updated for latest generator/receiver changes.

19 years agoFixed failing hunk.
Wayne Davison [Tue, 7 Sep 2004 22:34:21 +0000 (22:34 +0000)]
Fixed failing hunk.

19 years agoOutput statistics about how long certain file-list events take.
Wayne Davison [Tue, 7 Sep 2004 19:56:04 +0000 (19:56 +0000)]
Output statistics about how long certain file-list events take.

19 years agoA potential solution for symlink-dir loop-breaking.
Wayne Davison [Tue, 31 Aug 2004 20:49:38 +0000 (20:49 +0000)]
A potential solution for symlink-dir loop-breaking.

19 years agoMention a TODO item in the initial comments.
Wayne Davison [Tue, 31 Aug 2004 20:49:10 +0000 (20:49 +0000)]
Mention a TODO item in the initial comments.

19 years agoTweaked the text of a few error messages.
Wayne Davison [Mon, 23 Aug 2004 01:20:21 +0000 (01:20 +0000)]
Tweaked the text of a few error messages.

19 years agoConfigure now fails if ACL support is requested and no ACL support
Wayne Davison [Thu, 19 Aug 2004 19:55:11 +0000 (19:55 +0000)]
Configure now fails if ACL support is requested and no ACL support
is found.

19 years agoMake sure we complain if -A is specified and ACL support wasn't
Wayne Davison [Thu, 19 Aug 2004 17:18:35 +0000 (17:18 +0000)]
Make sure we complain if -A is specified and ACL support wasn't
compiled in.

19 years ago- Fixed an instruction in the opening comments.
Wayne Davison [Thu, 19 Aug 2004 17:07:24 +0000 (17:07 +0000)]
- Fixed an instruction in the opening comments.
- Fixed a FIXME in options.c.

19 years agoUpdated.
Wayne Davison [Fri, 13 Aug 2004 19:05:19 +0000 (19:05 +0000)]
Updated.

19 years ago- Fixed some bogus rsyserr() calls.
Wayne Davison [Fri, 13 Aug 2004 19:04:45 +0000 (19:04 +0000)]
- Fixed some bogus rsyserr() calls.
- Sanitize the --link-by-hash arg when needed.
- Got rid of a duplicate robust_rename() call that got inserted into
  finish_transfer().

19 years agoUpdated the section that ensures that server-excluded files aren't
Wayne Davison [Fri, 13 Aug 2004 19:02:24 +0000 (19:02 +0000)]
Updated the section that ensures that server-excluded files aren't
referenced by any compare-dest/link-dest args.

19 years agoMade "make test" work.
Wayne Davison [Fri, 13 Aug 2004 17:33:44 +0000 (17:33 +0000)]
Made "make test" work.

19 years agoNew testsuite tests needed to use the -d option.
Wayne Davison [Fri, 13 Aug 2004 09:02:51 +0000 (09:02 +0000)]
New testsuite tests needed to use the -d option.

19 years agoThe calls to io_start_multiplex_in() and io_start_multiplex_out()
Wayne Davison [Fri, 13 Aug 2004 08:43:06 +0000 (08:43 +0000)]
The calls to io_start_multiplex_in() and io_start_multiplex_out()
no longer include an fd arg.

19 years agoFix the time-setting section in set_perms() so that it only skips the
Wayne Davison [Fri, 13 Aug 2004 08:23:06 +0000 (08:23 +0000)]
Fix the time-setting section in set_perms() so that it only skips the
call to set_times() if both PERMS_SKIP_ATIME and PERMS_SKIP_MTIME are
set.

19 years agoChanged clean_fname() calls to the updated arg syntax.
Wayne Davison [Fri, 13 Aug 2004 07:44:57 +0000 (07:44 +0000)]
Changed clean_fname() calls to the updated arg syntax.

19 years agoFixed failing hunk.
Wayne Davison [Thu, 12 Aug 2004 18:37:07 +0000 (18:37 +0000)]
Fixed failing hunk.

19 years agoUpdated to apply cleanly.
Wayne Davison [Thu, 12 Aug 2004 00:09:17 +0000 (00:09 +0000)]
Updated to apply cleanly.

19 years agoUpdated to have latest sanitize_path() calling syntax.
Wayne Davison [Thu, 12 Aug 2004 00:04:01 +0000 (00:04 +0000)]
Updated to have latest sanitize_path() calling syntax.

19 years agoUpdated to remove changes that were applied to the trunk and to use the
Wayne Davison [Wed, 11 Aug 2004 23:55:50 +0000 (23:55 +0000)]
Updated to remove changes that were applied to the trunk and to use the
newest sanitize_path() calling syntax.

19 years agoFixed an overflow check.
Wayne Davison [Wed, 11 Aug 2004 17:31:26 +0000 (17:31 +0000)]
Fixed an overflow check.

19 years agoFixed failing hunk.
Wayne Davison [Wed, 11 Aug 2004 17:30:50 +0000 (17:30 +0000)]
Fixed failing hunk.

19 years agoRemoved fuzz.
Wayne Davison [Wed, 11 Aug 2004 17:30:43 +0000 (17:30 +0000)]
Removed fuzz.

19 years ago- Work with the latest check_one_exclude().
Wayne Davison [Tue, 10 Aug 2004 18:22:28 +0000 (18:22 +0000)]
- Work with the latest check_one_exclude().
- Got rid of unused externs.
- Document how per-dir merge-files interact with deleting.

19 years agoFixed failing hunk.
Wayne Davison [Tue, 10 Aug 2004 17:21:53 +0000 (17:21 +0000)]
Fixed failing hunk.

19 years agoMore manpage improvements.
Wayne Davison [Tue, 10 Aug 2004 05:23:13 +0000 (05:23 +0000)]
More manpage improvements.

19 years agoImproved the manpage and tweaked on memcpy().
Wayne Davison [Tue, 10 Aug 2004 04:53:28 +0000 (04:53 +0000)]
Improved the manpage and tweaked on memcpy().

19 years agoApplied.
Wayne Davison [Mon, 9 Aug 2004 20:58:50 +0000 (20:58 +0000)]
Applied.

19 years ago- Made the dirbuf value always contain an absolute path.
Wayne Davison [Mon, 9 Aug 2004 18:45:15 +0000 (18:45 +0000)]
- Made the dirbuf value always contain an absolute path.
- Fixed a bug in the token-parsing after a nested merge-file.
- Absolute excludes in daemon mode are now rooted at the module root.
- The sanitize_path() routine now takes a root value that we want to
  use in place of a leading slash.  This allows the parent to specify
  "", "/", or lp_path(module_id) (the default when expanding).

19 years ago- Changed the way that daemon excludes get anchored to the module dir
Wayne Davison [Mon, 9 Aug 2004 03:35:35 +0000 (03:35 +0000)]
- Changed the way that daemon excludes get anchored to the module dir
  to use the new "dirbuf" (setting it through a new accessor function)
  and a new XFLG_ABS_PATH flag.
- Made anchored rules read in from a per-dir merge file relative to
  the merge file's directory.  This makes it possible to set each rule
  to either be "inherited" or not based on if it is anchored.
- Got rid of the -i (inherited) option for merge files.
- Set a MATCHFLG_FINISH_SETUP flag on each per-dir merge file instead
  of using a high-water "initialized_mergelist_cnt" index.
- Make sure that any merge file that starts with a dash does not get
  its name interpreted as an option when sent over the socket.

19 years ago- Added some extra comments.
Wayne Davison [Sat, 7 Aug 2004 08:40:57 +0000 (08:40 +0000)]
- Added some extra comments.
- Always null-terminate the buffer sent to push_local_excludes() and
  dirbuf too.
- Make sure that parse_merge_name() always returns a null-terminated
  path, even if it was given a name that was not null-terminated.

19 years agoA couple more bug fixes.
Wayne Davison [Fri, 6 Aug 2004 23:25:18 +0000 (23:25 +0000)]
A couple more bug fixes.

19 years ago- Needed to send the new merge-file options across the socket.
Wayne Davison [Fri, 6 Aug 2004 23:01:43 +0000 (23:01 +0000)]
- Needed to send the new merge-file options across the socket.
- Fixed some problems when running as a daemon.
- A few other minor fixes.
- Improved the docs.

19 years agoImproved the option syntax by eliminating the --inherit=DEPTH option and
Wayne Davison [Fri, 6 Aug 2004 09:39:57 +0000 (09:39 +0000)]
Improved the option syntax by eliminating the --inherit=DEPTH option and
adding individual options to the ". [OPTIONS] FILE" command itself.  This
lets the user directly specify if the file is a per-directory file or not
(using -p) and if the rules are inherited or not (using -i).  The user
also specifies how high up the scanning starts for per-dir files by
specifying a path on per-dir files (e.g. ". -p /start/.excl").  Added the
-E option which is an easy way to specify ". -pi /.rsync-excludes".

19 years agoFixed rules being inherited without --inherit.
Wayne Davison [Wed, 4 Aug 2004 21:09:11 +0000 (21:09 +0000)]
Fixed rules being inherited without --inherit.

19 years agoImproved the manpage and added the missing --inherit option to the
Wayne Davison [Wed, 4 Aug 2004 08:46:08 +0000 (08:46 +0000)]
Improved the manpage and added the missing --inherit option to the
help output.

19 years ago- Fixed a couple problems with the daemon's path-sanitizing.
Wayne Davison [Tue, 3 Aug 2004 17:18:14 +0000 (17:18 +0000)]
- Fixed a couple problems with the daemon's path-sanitizing.
- Avoid a useless "./" prefix on the exclude filenames.

19 years agoGot rid of fuzz.
Wayne Davison [Tue, 3 Aug 2004 16:13:39 +0000 (16:13 +0000)]
Got rid of fuzz.

19 years agoFixed a failig hunk.
Wayne Davison [Tue, 3 Aug 2004 16:13:14 +0000 (16:13 +0000)]
Fixed a failig hunk.

19 years agoUpdated to work with the latest g2r-basis-filename patch.
Wayne Davison [Fri, 30 Jul 2004 18:30:00 +0000 (18:30 +0000)]
Updated to work with the latest g2r-basis-filename patch.

19 years agoWorking with the new g2r-basis-filename patch, we just transmit the
Wayne Davison [Fri, 30 Jul 2004 18:29:03 +0000 (18:29 +0000)]
Working with the new g2r-basis-filename patch, we just transmit the
index of the compare-dest name we found, not the whole name.

19 years agoReduced the transmitted data on the generator-to-receiver pipe down
Wayne Davison [Fri, 30 Jul 2004 18:27:02 +0000 (18:27 +0000)]
Reduced the transmitted data on the generator-to-receiver pipe down
to just 1 byte in all cases (previously we would send the compare-dest
name down the pipe instead of a "use the compare-dest name" flag).

19 years agoReflect the new skip_file() calling args.
Wayne Davison [Thu, 29 Jul 2004 17:22:58 +0000 (17:22 +0000)]
Reflect the new skip_file() calling args.

19 years agoGot rid of the extra compare_dest scan in skip_file().
Wayne Davison [Thu, 29 Jul 2004 17:20:59 +0000 (17:20 +0000)]
Got rid of the extra compare_dest scan in skip_file().

19 years agoNo need to check-for/complain-about a lack of hard links for the
Wayne Davison [Thu, 29 Jul 2004 16:35:24 +0000 (16:35 +0000)]
No need to check-for/complain-about a lack of hard links for the
--compare-dest option.

19 years agoGot rid of failing or fuzzy hunks.
Wayne Davison [Thu, 29 Jul 2004 16:26:30 +0000 (16:26 +0000)]
Got rid of failing or fuzzy hunks.

19 years agoNo more need for the partial-dir.diff dependency.
Wayne Davison [Thu, 29 Jul 2004 16:26:08 +0000 (16:26 +0000)]
No more need for the partial-dir.diff dependency.

19 years agoApplied.
Wayne Davison [Thu, 29 Jul 2004 16:07:38 +0000 (16:07 +0000)]
Applied.

19 years agoOptimize the --partial-dir=. option (which is the same as just
Wayne Davison [Thu, 29 Jul 2004 16:07:23 +0000 (16:07 +0000)]
Optimize the --partial-dir=. option (which is the same as just
specifying --partial).

19 years agoFix failing hunks.
Wayne Davison [Wed, 28 Jul 2004 17:16:48 +0000 (17:16 +0000)]
Fix failing hunks.

19 years agoModified to depend on the partial-dir.diff.
Wayne Davison [Wed, 28 Jul 2004 17:16:29 +0000 (17:16 +0000)]
Modified to depend on the partial-dir.diff.

19 years ago- Needed to move the partial-dir check in the generator.
Wayne Davison [Wed, 28 Jul 2004 10:10:58 +0000 (10:10 +0000)]
- Needed to move the partial-dir check in the generator.
- Improved the docs some more.

19 years ago- Added defines for the 2 new literal args.
Wayne Davison [Wed, 28 Jul 2004 02:02:43 +0000 (02:02 +0000)]
- Added defines for the 2 new literal args.
- Improved some names (variable and function).
- Don't be quite so paranoid when creating a new dir (after all, the
  regular directory-creation code isn't that paranoid).
- Improved the docs.

19 years agoFix some fuzz in the --help text hunks.
Wayne Davison [Mon, 26 Jul 2004 06:36:25 +0000 (06:36 +0000)]
Fix some fuzz in the --help text hunks.

19 years agoFixed failing hunk.
Wayne Davison [Mon, 26 Jul 2004 06:32:13 +0000 (06:32 +0000)]
Fixed failing hunk.

19 years ago- Handle the receive-failed case properly.
Wayne Davison [Sun, 25 Jul 2004 17:45:16 +0000 (17:45 +0000)]
- Handle the receive-failed case properly.
- The warning/error for a verify failure now differentiates between
  retained (to the original file) and put into the partial-dir.
- Improved the docs.

19 years agoWhen we need to create the partial_dir directory, remove anything that
Wayne Davison [Sat, 24 Jul 2004 17:05:46 +0000 (17:05 +0000)]
When we need to create the partial_dir directory, remove anything that
might be in the way (such as a symlink).

19 years ago- Made a relative --partial-dir actually be relative to the current
Wayne Davison [Fri, 23 Jul 2004 21:54:35 +0000 (21:54 +0000)]
- Made a relative --partial-dir actually be relative to the current
  file's destination directory.
- Handle the case where we can't build the relative partial-dir path
  because it is too long.
- Sanitize the value for the daemon.