rsync-patches.git
17 years agoFixed the combining of --delete with --xattrs.
Wayne Davison [Fri, 10 Nov 2006 20:34:48 +0000 (20:34 +0000)]
Fixed the combining of --delete with --xattrs.

17 years agoFixed the combination of --acls with --delete-*.
Wayne Davison [Fri, 10 Nov 2006 15:29:19 +0000 (15:29 +0000)]
Fixed the combination of --acls with --delete-*.

17 years agoFixed failing hunks.
Wayne Davison [Fri, 10 Nov 2006 07:40:36 +0000 (07:40 +0000)]
Fixed failing hunks.

17 years agoUse the new isDigit() function.
Wayne Davison [Fri, 10 Nov 2006 05:58:10 +0000 (05:58 +0000)]
Use the new isDigit() function.

17 years agoFixed failing hunks.
Wayne Davison [Fri, 10 Nov 2006 05:57:10 +0000 (05:57 +0000)]
Fixed failing hunks.

17 years agoFixed failing hunk.
Wayne Davison [Thu, 9 Nov 2006 02:50:26 +0000 (02:50 +0000)]
Fixed failing hunk.

17 years ago- Fixed the setting of extra_len in receive_xattr().
Wayne Davison [Tue, 7 Nov 2006 04:37:59 +0000 (04:37 +0000)]
- Fixed the setting of extra_len in receive_xattr().
- Fixed name_len in Linux code when prepending "user.rsync.".
- Got rid of CENT_POS to make use of RPRE_LEN consistent.

17 years agoFixed the setting of extra_len in receive_xattr().
Wayne Davison [Tue, 7 Nov 2006 04:35:23 +0000 (04:35 +0000)]
Fixed the setting of extra_len in receive_xattr().

17 years agoMake sure that any weird mode bits (if they exist up beyond the
Wayne Davison [Sun, 5 Nov 2006 06:20:49 +0000 (06:20 +0000)]
Make sure that any weird mode bits (if they exist up beyond the
format bits) can't cause problems for the mode comparisons in
set_stat_xattr().

17 years agoTweaked the increment style of a "for" loop.
Wayne Davison [Sat, 4 Nov 2006 18:18:58 +0000 (18:18 +0000)]
Tweaked the increment style of a "for" loop.

17 years agoMoved the %-name preserving code into the regular xattr patch.
Wayne Davison [Sat, 4 Nov 2006 18:05:27 +0000 (18:05 +0000)]
Moved the %-name preserving code into the regular xattr patch.

17 years agoThe non-linux version should not strip the "rsync." prefix from any
Wayne Davison [Sat, 4 Nov 2006 18:01:30 +0000 (18:01 +0000)]
The non-linux version should not strip the "" prefix from any
name that starts with a '%'.  This makes all xattr-enabled rsync
versions compatible with xattrs generated by a fake-super enabled
version, and supports any future %-names that we might want to put
in this hierarchy.

17 years ago- The non-Linux version now preserves the user namespace on our
Wayne Davison [Sat, 4 Nov 2006 17:49:56 +0000 (17:49 +0000)]
- The non-Linux version now preserves the user namespace on our
  rsync.%stat xattr when transferring it with -X and without
  --fake-super.
- A change in the xattr patch fixed a bug in a "for" loop when
  we need to tweak a name that is losing our user.rsync prefix.

17 years ago- Improved the error messages.
Wayne Davison [Sat, 4 Nov 2006 17:40:52 +0000 (17:40 +0000)]
- Improved the error messages.
- Tweaked a "for" loop for the fake-super patch's sake.

17 years agoSimplified the prefix defines and made to work with the latest
Wayne Davison [Sat, 4 Nov 2006 16:04:10 +0000 (16:04 +0000)]
Simplified the prefix defines and made to work with the latest
xattr patch.

17 years agoThe non-Linux version should also discard non-user-space attrs
Wayne Davison [Sat, 4 Nov 2006 15:49:10 +0000 (15:49 +0000)]
The non-Linux version should also discard non-user-space attrs
when not running as root (for consistency).

17 years agoFixed length check when excluding XSTAT_ATTR.
Wayne Davison [Sat, 4 Nov 2006 08:14:39 +0000 (08:14 +0000)]
Fixed length check when excluding XSTAT_ATTR.

17 years agoFixed the value of CENT_POS for non-Linux systems.
Wayne Davison [Sat, 4 Nov 2006 07:36:03 +0000 (07:36 +0000)]
Fixed the value of CENT_POS for non-Linux systems.

17 years agoMust bump the value of name_len when adding the rsync prefix.
Wayne Davison [Sat, 4 Nov 2006 07:35:13 +0000 (07:35 +0000)]
Must bump the value of name_len when adding the rsync prefix.

17 years ago- We save our extended stat attributes using the name
Wayne Davison [Sat, 4 Nov 2006 00:31:41 +0000 (00:31 +0000)]
- We save our extended stat attributes using the name
  rsync.%stat now.  This keeps all our attriubutes in the
  rsync hierarchy, and the name should avoid a conflict with
  any namespace values that we might alias.
- If a Linux receiver is not running as root, it discards any
  non-user namespaces.  If it is running as fake-root, the non-
  user namespaces are stored in the rsync hierarchy.

17 years ago- Changed the xattr namespaces check to filter out system xattrs
Wayne Davison [Sat, 4 Nov 2006 00:24:24 +0000 (00:24 +0000)]
- Changed the xattr namespaces check to filter out system xattrs
  instead of looking for specific namespace prefixes.  This will
  ensure that we send a namespace such as "security".
- Changed the positions of the xattr name & datum in the combined
  buffer so that we can change the name pointer without affecting
  the base pointer of the buffer (which needs to be unchanged so
  that we can free it).
- If a non-Linux system gets a non-user namespace, we now store
  namespace FOO as rsync.FOO.  This allows us to strip the rsync
  prefix when sending the values back.
- Fixed a memory leak when handling an error.
- Improved some of the variable names.

17 years agoFixed a compile problem in the non-Linux code.
Wayne Davison [Fri, 3 Nov 2006 07:59:02 +0000 (07:59 +0000)]
Fixed a compile problem in the non-Linux code.

17 years agoNamespace improvements.
Wayne Davison [Thu, 2 Nov 2006 17:31:08 +0000 (17:31 +0000)]
Namespace improvements.

17 years agoFixed to work with the latest xattr.diff.
Wayne Davison [Thu, 2 Nov 2006 00:40:11 +0000 (00:40 +0000)]
Fixed to work with the latest xattr.diff.

17 years agoPreliminary xattr support for FreeBSD supplied by Wesley W. Terpstra
Wayne Davison [Thu, 2 Nov 2006 00:31:09 +0000 (00:31 +0000)]
Preliminary xattr support for FreeBSD supplied by Wesley W. Terpstra
(with an extra fix by me).  Untested, but looks promising.

17 years agoWe now look for extra "patch -p1 <patches/FOO" commands instead
Wayne Davison [Wed, 1 Nov 2006 21:33:37 +0000 (21:33 +0000)]
We now look for extra "patch -p1 <patches/FOO" commands instead
of looking for "Depends-On-Patch: FOO" lines.

17 years agoUpdated the opening comments to mention how to apply the patch
Wayne Davison [Wed, 1 Nov 2006 21:33:37 +0000 (21:33 +0000)]
Updated the opening comments to mention how to apply the patch
prior to the build.  Also updated to apply cleanly.

17 years agoGot rid of a superfluous extern.
Wayne Davison [Mon, 30 Oct 2006 20:19:17 +0000 (20:19 +0000)]
Got rid of a superfluous extern.

17 years agoGot rid of superfluous externs.
Wayne Davison [Mon, 30 Oct 2006 20:17:02 +0000 (20:17 +0000)]
Got rid of superfluous externs.

17 years agoGot rid of a comment on an #endif.
Wayne Davison [Mon, 30 Oct 2006 19:36:21 +0000 (19:36 +0000)]
Got rid of a comment on an #endif.

17 years ago- Tweaked the opening comments.
Wayne Davison [Mon, 30 Oct 2006 15:59:50 +0000 (15:59 +0000)]
- Tweaked the opening comments.
- The change in receiver.c to the do_fstat() call isn't really needed.

17 years ago- Make sure we don't write out any extraneous mode bits as part of
Wayne Davison [Mon, 30 Oct 2006 06:41:50 +0000 (06:41 +0000)]
- Make sure we don't write out any extraneous mode bits as part of
  the stat-xattr value.
- Complain if somone uses --fake-super in a patch rsync that was
  compiled without xattr support.
- Don't try to read the stat-xattr value from a device/special file
  (since such a combination can never be created by the code).
- Improved the --fake-super man section.
- Got rid of the change to generator.c (since it is not specific to
  this patch, it needs to be considered separately).

17 years ago- Really fixed the ability to configure without xattr support.
Wayne Davison [Sat, 28 Oct 2006 21:09:02 +0000 (21:09 +0000)]
- Really fixed the ability to configure without xattr support.
- Support the new, less-wide --version output.

17 years ago- Improved the build when ACL support is disabled.
Wayne Davison [Sat, 28 Oct 2006 21:08:02 +0000 (21:08 +0000)]
- Improved the build when ACL support is disabled.
- Make the output of "rsync --version" less wide.

17 years ago- Put the config.cache file in the parent dir of the workdir so that
Wayne Davison [Sat, 28 Oct 2006 21:06:21 +0000 (21:06 +0000)]
- Put the config.cache file in the parent dir of the workdir so that
  it can be reused across patches.
- Added a "patches" symlink so that the patches/tmp dir can be moved
  do a different disk, replaced by a symlink, and the the tmp dir can
  still find the place where the patch files live.

17 years agoFixed a typo in configure.in that always enabled xattr support.
Wayne Davison [Sat, 28 Oct 2006 20:16:59 +0000 (20:16 +0000)]
Fixed a typo in configure.in that always enabled xattr support.

17 years ago- Improved the error handling.
Wayne Davison [Sat, 28 Oct 2006 20:08:03 +0000 (20:08 +0000)]
- Improved the error handling.
- We will now affect symlinks if it's possible.
- The owner of a symlink without a stat-xattr defaults to 0:0.
- Improved the code to work properly without --fake-super.
- Fixed the code to compile without xattrs enabled.

17 years ago- Make sure that we don't write an ACL in read-only or list-only modes.
Wayne Davison [Sat, 28 Oct 2006 19:16:05 +0000 (19:16 +0000)]
- Make sure that we don't write an ACL in read-only or list-only modes.
- Check for acl/libacl.h and include it if found.

17 years agoMake sure we don't write any xattrs in read-only or list-only mode.
Wayne Davison [Sat, 28 Oct 2006 19:04:12 +0000 (19:04 +0000)]
Make sure we don't write any xattrs in read-only or list-only mode.

17 years ago- I decided that we should leave as much of the real mode attached
Wayne Davison [Sat, 28 Oct 2006 06:26:40 +0000 (06:26 +0000)]
- I decided that we should leave as much of the real mode attached
  to the real file as we can.
- Added the --fake-super option to the rsync.yo manpage.
- Added the "fake super" setting to the rsyncd.conf.yo manpage.

17 years agoChanged the unique_prefix and upre_len vars into defines.
Wayne Davison [Sat, 28 Oct 2006 00:20:00 +0000 (00:20 +0000)]
Changed the unique_prefix and upre_len vars into defines.

17 years agoOne more fix to get the consistent-chmod value right.
Wayne Davison [Fri, 27 Oct 2006 23:50:29 +0000 (23:50 +0000)]
One more fix to get the consistent-chmod value right.

17 years agoFixed the code that maintains the files with a consistent mode (so
Wayne Davison [Fri, 27 Oct 2006 22:54:24 +0000 (22:54 +0000)]
Fixed the code that maintains the files with a consistent mode (so
that the owner can always read/write files and scan directories).

17 years agoChanged the way the fake xattr-stat data gets read. The do_stat()
Wayne Davison [Fri, 27 Oct 2006 22:10:55 +0000 (22:10 +0000)]
Changed the way the fake xattr-stat data gets read.  The do_stat()
functions are no longer modified, but instead new x_stat() functions
have been added that return both stat() and xattr-stat data, either
merged into one stat struct or in separate stat structs.

17 years agoFixed a problem with the new fgetxattr() stubs.
Wayne Davison [Fri, 27 Oct 2006 22:07:04 +0000 (22:07 +0000)]
Fixed a problem with the new fgetxattr() stubs.

17 years agoAdded sys_fgetxattr().
Wayne Davison [Fri, 27 Oct 2006 21:11:41 +0000 (21:11 +0000)]
Added sys_fgetxattr().

17 years ago- Fixed a problem with the sscanf() count (now 5, not 4).
Wayne Davison [Fri, 27 Oct 2006 15:21:22 +0000 (15:21 +0000)]
- Fixed a problem with the sscanf() count (now 5, not 4).
- Make sure we only create an xattr stat value when we need it
  and we delete it when it's not needed.

17 years agoSplit the major & minor device numbers.
Wayne Davison [Fri, 27 Oct 2006 08:24:58 +0000 (08:24 +0000)]
Split the major & minor device numbers.

17 years ago- Fixed a bug I introduced into the daemon's "fake super" handling.
Wayne Davison [Fri, 27 Oct 2006 07:43:28 +0000 (07:43 +0000)]
- Fixed a bug I introduced into the daemon's "fake super" handling.
- Make sure that the client can't send the daemon --fake-super.

17 years agoMy verison of Wesley W. Terpstra's --fake-super patch.
Wayne Davison [Fri, 27 Oct 2006 07:22:21 +0000 (07:22 +0000)]
My verison of Wesley W. Terpstra's --fake-super patch.

17 years agoSet the xattrs prior to setting the ACLs.
Wayne Davison [Fri, 27 Oct 2006 06:28:19 +0000 (06:28 +0000)]
Set the xattrs prior to setting the ACLs.

17 years agoAdded removexattr() functions, which aren't used yet, but will need
Wayne Davison [Fri, 27 Oct 2006 03:56:55 +0000 (03:56 +0000)]
Added removexattr() functions, which aren't used yet, but will need
to be (and are useful for the --fake-root patch).

17 years agoOutput ssize_t values for rprintf() cast to long for portability.
Wayne Davison [Thu, 26 Oct 2006 16:34:40 +0000 (16:34 +0000)]
Output ssize_t values for rprintf() cast to long for portability.

17 years agoA fix that lets xattr support be compiled without ACL support.
Wayne Davison [Thu, 26 Oct 2006 15:14:03 +0000 (15:14 +0000)]
A fix that lets xattr support be compiled without ACL support.

17 years agoThe OS X version now transmits a unique prefix ("user.0S%.") for
Wayne Davison [Thu, 26 Oct 2006 01:53:32 +0000 (01:53 +0000)]
The OS X version now transmits a unique prefix ("user.0S%.") for
attrs that don't begin with "user." or "system.".  It also strips
this prefix when it is received.

17 years ago- Fixed a couple bugs in the rsync_xal_store(): the item_list we
Wayne Davison [Thu, 26 Oct 2006 01:10:40 +0000 (01:10 +0000)]
- Fixed a couple bugs in the rsync_xal_store(): the item_list we
  were expanding needed to have its memory initialized, and the
  array items we were copying were the wrong type.
- Added preliminary support for Mac OS X, as provided by Wesley
  W. Terpstra.

17 years agoGot rid of some patch fuzz.
Wayne Davison [Tue, 24 Oct 2006 00:55:22 +0000 (00:55 +0000)]
Got rid of some patch fuzz.

17 years agoChanged the sys_acl_get_file() function to return ENOTSUP for
Wayne Davison [Sun, 22 Oct 2006 23:43:06 +0000 (23:43 +0000)]
Changed the sys_acl_get_file() function to return ENOTSUP for
the non-supported SMB_ACL_TYPE_DEFAULT ACLs.

17 years agoAdded missing DEBUG() define.
Wayne Davison [Sun, 22 Oct 2006 07:15:17 +0000 (07:15 +0000)]
Added missing DEBUG() define.

17 years agoNeed to use (mode_t)~0 instead of ~0u for portability.
Wayne Davison [Sun, 22 Oct 2006 04:16:23 +0000 (04:16 +0000)]
Need to use (mode_t)~0 instead of ~0u for portability.

17 years agoFixed the crash problem Matt found.
Wayne Davison [Sun, 22 Oct 2006 02:21:15 +0000 (02:21 +0000)]
Fixed the crash problem Matt found.

17 years agoFixed a bug when acls are being preserved and one of the --*-dest options
Wayne Davison [Sat, 21 Oct 2006 21:00:47 +0000 (21:00 +0000)]
Fixed a bug when acls are being preserved and one of the --*-dest options
are in effect.  Matt pointed out that the ACL-checking code was trying to
check the perms of a non-existent destination file instead of an alternate
basis file (when the dest does not exist and an alt-basis does).

17 years agoFixed failing hunk.
Wayne Davison [Wed, 18 Oct 2006 04:43:11 +0000 (04:43 +0000)]
Fixed failing hunk.

17 years ago- Fixed the filename passed to make_mutable().
Wayne Davison [Mon, 16 Oct 2006 06:54:58 +0000 (06:54 +0000)]
- Fixed the filename passed to make_mutable().
- Mention the ./prepare_source; configure commands.

17 years agoGot rid of the (unneeded) ./prepare_source instructions.
Wayne Davison [Mon, 16 Oct 2006 06:54:06 +0000 (06:54 +0000)]
Got rid of the (unneeded) ./prepare_source instructions.

17 years agoFixed compilation problems that crept into the code.
Wayne Davison [Sun, 15 Oct 2006 20:22:53 +0000 (20:22 +0000)]
Fixed compilation problems that crept into the code.

17 years agoI don't think we need this.
Wayne Davison [Sun, 15 Oct 2006 19:09:52 +0000 (19:09 +0000)]
I don't think we need this.

17 years agoChanged the code to call make_mutable() on a temp file that is about
Wayne Davison [Sun, 15 Oct 2006 17:57:46 +0000 (17:57 +0000)]
Changed the code to call make_mutable() on a temp file that is about
to be renamed.  Also, optimized the make_mutable() call to avoid an
extra stat().

17 years agoThe changes to cleanup.c now use the new case_N.h file.
Wayne Davison [Sun, 15 Oct 2006 15:47:56 +0000 (15:47 +0000)]
The changes to cleanup.c now use the new case_N.h file.

17 years agoFixed a failing hunk.
Wayne Davison [Sat, 14 Oct 2006 20:12:49 +0000 (20:12 +0000)]
Fixed a failing hunk.

17 years agoFixed failing hunk.
Wayne Davison [Sat, 14 Oct 2006 20:10:21 +0000 (20:10 +0000)]
Fixed failing hunk.

17 years agoFixed failing hunks.
Wayne Davison [Fri, 13 Oct 2006 23:57:13 +0000 (23:57 +0000)]
Fixed failing hunks.

17 years agoGot rid of double-fuzz hunk.
Wayne Davison [Fri, 13 Oct 2006 07:54:52 +0000 (07:54 +0000)]
Got rid of double-fuzz hunk.

17 years agoFixed failing hunks.
Wayne Davison [Fri, 13 Oct 2006 07:53:38 +0000 (07:53 +0000)]
Fixed failing hunks.

17 years agoFixed a failing hunk.
Wayne Davison [Fri, 13 Oct 2006 06:53:59 +0000 (06:53 +0000)]
Fixed a failing hunk.

17 years agoUpdated for rolled-back trunk.
Wayne Davison [Thu, 12 Oct 2006 03:08:46 +0000 (03:08 +0000)]
Updated for rolled-back trunk.

17 years agoFixed failing hunks and failing itemize testsuite.
Wayne Davison [Wed, 11 Oct 2006 00:54:29 +0000 (00:54 +0000)]
Fixed failing hunks and failing itemize testsuite.

17 years agoFixed a failing hunk.
Wayne Davison [Mon, 9 Oct 2006 03:13:47 +0000 (03:13 +0000)]
Fixed a failing hunk.

17 years agoFixed some failing hunks.
Wayne Davison [Mon, 9 Oct 2006 00:56:12 +0000 (00:56 +0000)]
Fixed some failing hunks.

17 years agoFixed failing hunks.
Wayne Davison [Sun, 8 Oct 2006 22:32:34 +0000 (22:32 +0000)]
Fixed failing hunks.

17 years agoFixed some failing hunks.
Wayne Davison [Sun, 24 Sep 2006 03:31:34 +0000 (03:31 +0000)]
Fixed some failing hunks.

17 years agoSome improvements from marineam@osuosl.org.
Wayne Davison [Wed, 20 Sep 2006 14:22:49 +0000 (14:22 +0000)]
Some improvements from marineam@osuosl.org.

17 years agoFixed failing hunks.
Wayne Davison [Wed, 20 Sep 2006 14:11:37 +0000 (14:11 +0000)]
Fixed failing hunks.

17 years agoFixed failing hunks.
Wayne Davison [Tue, 25 Jul 2006 14:53:33 +0000 (14:53 +0000)]
Fixed failing hunks.

17 years agoFixed failing hunks.
Wayne Davison [Wed, 5 Jul 2006 06:00:31 +0000 (06:00 +0000)]
Fixed failing hunks.

17 years agoA patch from Antti Tapaninen.
Wayne Davison [Wed, 7 Jun 2006 23:32:41 +0000 (23:32 +0000)]
A patch from Antti Tapaninen.

17 years agoFixed failing hunks.
Wayne Davison [Wed, 7 Jun 2006 23:31:34 +0000 (23:31 +0000)]
Fixed failing hunks.

17 years agoA patch from Stefan Müller.
Wayne Davison [Wed, 7 Jun 2006 18:36:49 +0000 (18:36 +0000)]
A patch from Stefan Müller.

17 years agoGot rid of some patch fuzz.
Wayne Davison [Mon, 5 Jun 2006 20:58:58 +0000 (20:58 +0000)]
Got rid of some patch fuzz.

17 years agoFixed a failing hunk.
Wayne Davison [Mon, 5 Jun 2006 20:57:03 +0000 (20:57 +0000)]
Fixed a failing hunk.

17 years agoFixed a failing hunk.
Wayne Davison [Thu, 1 Jun 2006 08:07:53 +0000 (08:07 +0000)]
Fixed a failing hunk.

17 years agoMention -X isn't included in --archive (-a) in option summary.
Wayne Davison [Wed, 31 May 2006 15:27:23 +0000 (15:27 +0000)]
Mention -X isn't included in --archive (-a) in option summary.

17 years agoMention -A isn't included in --archive (-a) in option summary.
Wayne Davison [Wed, 31 May 2006 15:24:12 +0000 (15:24 +0000)]
Mention -A isn't included in --archive (-a) in option summary.

17 years agoFixed failing hunks.
Wayne Davison [Mon, 29 May 2006 23:08:04 +0000 (23:08 +0000)]
Fixed failing hunks.

17 years agoFixed a failing hunk.
Wayne Davison [Thu, 18 May 2006 17:25:27 +0000 (17:25 +0000)]
Fixed a failing hunk.

17 years agoFixed some patch fuzz.
Wayne Davison [Wed, 17 May 2006 06:30:59 +0000 (06:30 +0000)]
Fixed some patch fuzz.

17 years agoFixed a failing hunk.
Wayne Davison [Wed, 17 May 2006 06:29:55 +0000 (06:29 +0000)]
Fixed a failing hunk.

17 years agoGot rid of patch fuzz.
Wayne Davison [Sat, 13 May 2006 08:29:36 +0000 (08:29 +0000)]
Got rid of patch fuzz.

17 years agoFixed failing hunks.
Wayne Davison [Tue, 9 May 2006 18:50:36 +0000 (18:50 +0000)]
Fixed failing hunks.

17 years agoApplied this to the trunk (with a few improvements).
Wayne Davison [Tue, 9 May 2006 18:41:55 +0000 (18:41 +0000)]
Applied this to the trunk (with a few improvements).