Wayne Davison [Wed, 3 Nov 2004 23:15:53 +0000 (23:15 +0000)]
Fixed failing hunks.
Wayne Davison [Wed, 3 Nov 2004 23:00:57 +0000 (23:00 +0000)]
Updated to work with latest g2r changes.
Wayne Davison [Wed, 3 Nov 2004 22:45:53 +0000 (22:45 +0000)]
Make --inplace work with --compare-dest, and efficient too.
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.
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.
Wayne Davison [Wed, 20 Oct 2004 15:41:05 +0000 (15:41 +0000)]
A few more tweaks to sysacls.c and sysacls.h.
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.
Wayne Davison [Wed, 20 Oct 2004 05:36:36 +0000 (05:36 +0000)]
Added a couple command-line options.
Wayne Davison [Thu, 14 Oct 2004 17:37:49 +0000 (17:37 +0000)]
Got rid of fuzz.
Wayne Davison [Thu, 14 Oct 2004 17:22:32 +0000 (17:22 +0000)]
Fixed a failing hunk.
Wayne Davison [Thu, 14 Oct 2004 17:21:03 +0000 (17:21 +0000)]
Fixed failing hunk.
Wayne Davison [Thu, 14 Oct 2004 17:15:09 +0000 (17:15 +0000)]
Fixed 2 failing hunks.
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.
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.
Wayne Davison [Sat, 9 Oct 2004 04:39:28 +0000 (04:39 +0000)]
Moved some variable-init code into g2r-basis-filename.diff.
Wayne Davison [Sat, 9 Oct 2004 04:39:22 +0000 (04:39 +0000)]
A recently added compare_dest check needed to be patched.
Wayne Davison [Sat, 9 Oct 2004 04:39:15 +0000 (04:39 +0000)]
Fixed a failing hunk.
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.
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.
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.
Wayne Davison [Fri, 1 Oct 2004 06:59:21 +0000 (06:59 +0000)]
This no longer depends on mkfifo.diff.
Wayne Davison [Thu, 30 Sep 2004 16:32:36 +0000 (16:32 +0000)]
Updated to apply cleanly.
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.
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.
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.
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.
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.
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.
Wayne Davison [Thu, 23 Sep 2004 15:20:32 +0000 (15:20 +0000)]
Must check if whole_file > 0 these days, not just != 0.
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.
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.
Wayne Davison [Wed, 22 Sep 2004 16:37:45 +0000 (16:37 +0000)]
Moved the mkfifo() and socket-making code to mkfifo.diff.
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.
Wayne Davison [Wed, 22 Sep 2004 02:37:39 +0000 (02:37 +0000)]
One more tweak to the code in the backup.c file.
Wayne Davison [Wed, 22 Sep 2004 02:27:53 +0000 (02:27 +0000)]
New patch from Marc St-Onge.
Wayne Davison [Tue, 21 Sep 2004 15:48:45 +0000 (15:48 +0000)]
This patch shouldn't be needed anymore.
Wayne Davison [Tue, 21 Sep 2004 15:47:58 +0000 (15:47 +0000)]
Updated to apply cleanly.
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.
Wayne Davison [Wed, 8 Sep 2004 07:28:57 +0000 (07:28 +0000)]
Got rid of an UNUSED() that was causing a problem.
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.
Wayne Davison [Tue, 7 Sep 2004 22:36:27 +0000 (22:36 +0000)]
Updated to work with latest generator/receiver changes.
Wayne Davison [Tue, 7 Sep 2004 22:36:05 +0000 (22:36 +0000)]
Updated for latest generator/receiver changes.
Wayne Davison [Tue, 7 Sep 2004 22:34:21 +0000 (22:34 +0000)]
Fixed failing hunk.
Wayne Davison [Tue, 7 Sep 2004 19:56:04 +0000 (19:56 +0000)]
Output statistics about how long certain file-list events take.
Wayne Davison [Tue, 31 Aug 2004 20:49:38 +0000 (20:49 +0000)]
A potential solution for symlink-dir loop-breaking.
Wayne Davison [Tue, 31 Aug 2004 20:49:10 +0000 (20:49 +0000)]
Mention a TODO item in the initial comments.
Wayne Davison [Mon, 23 Aug 2004 01:20:21 +0000 (01:20 +0000)]
Tweaked the text of a few error messages.
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.
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.
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.
Wayne Davison [Fri, 13 Aug 2004 19:05:19 +0000 (19:05 +0000)]
Updated.
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().
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.
Wayne Davison [Fri, 13 Aug 2004 17:33:44 +0000 (17:33 +0000)]
Made "make test" work.
Wayne Davison [Fri, 13 Aug 2004 09:02:51 +0000 (09:02 +0000)]
New testsuite tests needed to use the -d option.
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.
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.
Wayne Davison [Fri, 13 Aug 2004 07:44:57 +0000 (07:44 +0000)]
Changed clean_fname() calls to the updated arg syntax.
Wayne Davison [Thu, 12 Aug 2004 18:37:07 +0000 (18:37 +0000)]
Fixed failing hunk.
Wayne Davison [Thu, 12 Aug 2004 00:09:17 +0000 (00:09 +0000)]
Updated to apply cleanly.
Wayne Davison [Thu, 12 Aug 2004 00:04:01 +0000 (00:04 +0000)]
Updated to have latest sanitize_path() calling syntax.
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.
Wayne Davison [Wed, 11 Aug 2004 17:31:26 +0000 (17:31 +0000)]
Fixed an overflow check.
Wayne Davison [Wed, 11 Aug 2004 17:30:50 +0000 (17:30 +0000)]
Fixed failing hunk.
Wayne Davison [Wed, 11 Aug 2004 17:30:43 +0000 (17:30 +0000)]
Removed fuzz.
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.
Wayne Davison [Tue, 10 Aug 2004 17:21:53 +0000 (17:21 +0000)]
Fixed failing hunk.
Wayne Davison [Tue, 10 Aug 2004 05:23:13 +0000 (05:23 +0000)]
More manpage improvements.
Wayne Davison [Tue, 10 Aug 2004 04:53:28 +0000 (04:53 +0000)]
Improved the manpage and tweaked on memcpy().
Wayne Davison [Mon, 9 Aug 2004 20:58:50 +0000 (20:58 +0000)]
Applied.
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).
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.
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.
Wayne Davison [Fri, 6 Aug 2004 23:25:18 +0000 (23:25 +0000)]
A couple more bug fixes.
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.
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".
Wayne Davison [Wed, 4 Aug 2004 21:09:11 +0000 (21:09 +0000)]
Fixed rules being inherited without --inherit.
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.
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.
Wayne Davison [Tue, 3 Aug 2004 16:13:39 +0000 (16:13 +0000)]
Got rid of fuzz.
Wayne Davison [Tue, 3 Aug 2004 16:13:14 +0000 (16:13 +0000)]
Fixed a failig hunk.
Wayne Davison [Fri, 30 Jul 2004 18:30:00 +0000 (18:30 +0000)]
Updated to work with the latest g2r-basis-filename patch.
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.
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).
Wayne Davison [Thu, 29 Jul 2004 17:22:58 +0000 (17:22 +0000)]
Reflect the new skip_file() calling args.
Wayne Davison [Thu, 29 Jul 2004 17:20:59 +0000 (17:20 +0000)]
Got rid of the extra compare_dest scan in skip_file().
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.
Wayne Davison [Thu, 29 Jul 2004 16:26:30 +0000 (16:26 +0000)]
Got rid of failing or fuzzy hunks.
Wayne Davison [Thu, 29 Jul 2004 16:26:08 +0000 (16:26 +0000)]
No more need for the partial-dir.diff dependency.
Wayne Davison [Thu, 29 Jul 2004 16:07:38 +0000 (16:07 +0000)]
Applied.
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).
Wayne Davison [Wed, 28 Jul 2004 17:16:48 +0000 (17:16 +0000)]
Fix failing hunks.
Wayne Davison [Wed, 28 Jul 2004 17:16:29 +0000 (17:16 +0000)]
Modified to depend on the partial-dir.diff.
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.
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.
Wayne Davison [Mon, 26 Jul 2004 06:36:25 +0000 (06:36 +0000)]
Fix some fuzz in the --help text hunks.
Wayne Davison [Mon, 26 Jul 2004 06:32:13 +0000 (06:32 +0000)]
Fixed failing hunk.
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.
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).
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.