Wayne Davison [Fri, 24 Nov 2006 08:41:23 +0000 (08:41 +0000)]
Fixed failing hunks.
Wayne Davison [Thu, 23 Nov 2006 04:07:50 +0000 (04:07 +0000)]
Fixed failing hunks.
Wayne Davison [Tue, 21 Nov 2006 08:52:10 +0000 (08:52 +0000)]
Fixed failing hunks.
Wayne Davison [Sun, 19 Nov 2006 05:56:21 +0000 (05:56 +0000)]
Fixed failing hunks.
Wayne Davison [Tue, 14 Nov 2006 08:37:29 +0000 (08:37 +0000)]
Simplified the patch a bit.
Wayne Davison [Sat, 11 Nov 2006 17:32:27 +0000 (17:32 +0000)]
Fixed failing hunks.
Wayne Davison [Sat, 11 Nov 2006 07:58:28 +0000 (07:58 +0000)]
Added missing no-delete check.
Wayne Davison [Sat, 11 Nov 2006 07:45:25 +0000 (07:45 +0000)]
Fixed failing hunks.
Wayne Davison [Fri, 10 Nov 2006 20:41:43 +0000 (20:41 +0000)]
Fixed some patch fuzz.
Wayne Davison [Fri, 10 Nov 2006 20:40:55 +0000 (20:40 +0000)]
Fixed failing hunks.
Wayne Davison [Fri, 10 Nov 2006 20:34:48 +0000 (20:34 +0000)]
Fixed the combining of --delete with --xattrs.
Wayne Davison [Fri, 10 Nov 2006 15:29:19 +0000 (15:29 +0000)]
Fixed the combination of --acls with --delete-*.
Wayne Davison [Fri, 10 Nov 2006 07:40:36 +0000 (07:40 +0000)]
Fixed failing hunks.
Wayne Davison [Fri, 10 Nov 2006 05:58:10 +0000 (05:58 +0000)]
Use the new isDigit() function.
Wayne Davison [Fri, 10 Nov 2006 05:57:10 +0000 (05:57 +0000)]
Fixed failing hunks.
Wayne Davison [Thu, 9 Nov 2006 02:50:26 +0000 (02:50 +0000)]
Fixed failing hunk.
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.
Wayne Davison [Tue, 7 Nov 2006 04:35:23 +0000 (04:35 +0000)]
Fixed the setting of extra_len in receive_xattr().
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().
Wayne Davison [Sat, 4 Nov 2006 18:18:58 +0000 (18:18 +0000)]
Tweaked the increment style of a "for" loop.
Wayne Davison [Sat, 4 Nov 2006 18:05:27 +0000 (18:05 +0000)]
Moved the %-name preserving code into the regular xattr patch.
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.
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.
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.
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.
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).
Wayne Davison [Sat, 4 Nov 2006 08:14:39 +0000 (08:14 +0000)]
Fixed length check when excluding XSTAT_ATTR.
Wayne Davison [Sat, 4 Nov 2006 07:36:03 +0000 (07:36 +0000)]
Fixed the value of CENT_POS for non-Linux systems.
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.
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.
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.
Wayne Davison [Fri, 3 Nov 2006 07:59:02 +0000 (07:59 +0000)]
Fixed a compile problem in the non-Linux code.
Wayne Davison [Thu, 2 Nov 2006 17:31:08 +0000 (17:31 +0000)]
Namespace improvements.
Wayne Davison [Thu, 2 Nov 2006 00:40:11 +0000 (00:40 +0000)]
Fixed to work with the latest xattr.diff.
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.
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.
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.
Wayne Davison [Mon, 30 Oct 2006 20:19:17 +0000 (20:19 +0000)]
Got rid of a superfluous extern.
Wayne Davison [Mon, 30 Oct 2006 20:17:02 +0000 (20:17 +0000)]
Got rid of superfluous externs.
Wayne Davison [Mon, 30 Oct 2006 19:36:21 +0000 (19:36 +0000)]
Got rid of a comment on an #endif.
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.
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).
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.
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.
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.
Wayne Davison [Sat, 28 Oct 2006 20:16:59 +0000 (20:16 +0000)]
Fixed a typo in configure.in that always enabled xattr support.
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.
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.
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.
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.
Wayne Davison [Sat, 28 Oct 2006 00:20:00 +0000 (00:20 +0000)]
Changed the unique_prefix and upre_len vars into defines.
Wayne Davison [Fri, 27 Oct 2006 23:50:29 +0000 (23:50 +0000)]
One more fix to get the consistent-chmod value right.
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).
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.
Wayne Davison [Fri, 27 Oct 2006 22:07:04 +0000 (22:07 +0000)]
Fixed a problem with the new fgetxattr() stubs.
Wayne Davison [Fri, 27 Oct 2006 21:11:41 +0000 (21:11 +0000)]
Added sys_fgetxattr().
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.
Wayne Davison [Fri, 27 Oct 2006 08:24:58 +0000 (08:24 +0000)]
Split the major & minor device numbers.
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.
Wayne Davison [Fri, 27 Oct 2006 07:22:21 +0000 (07:22 +0000)]
My verison of Wesley W. Terpstra's --fake-super patch.
Wayne Davison [Fri, 27 Oct 2006 06:28:19 +0000 (06:28 +0000)]
Set the xattrs prior to setting the ACLs.
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).
Wayne Davison [Thu, 26 Oct 2006 16:34:40 +0000 (16:34 +0000)]
Output ssize_t values for rprintf() cast to long for portability.
Wayne Davison [Thu, 26 Oct 2006 15:14:03 +0000 (15:14 +0000)]
A fix that lets xattr support be compiled without ACL support.
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.
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.
Wayne Davison [Tue, 24 Oct 2006 00:55:22 +0000 (00:55 +0000)]
Got rid of some patch fuzz.
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.
Wayne Davison [Sun, 22 Oct 2006 07:15:17 +0000 (07:15 +0000)]
Added missing DEBUG() define.
Wayne Davison [Sun, 22 Oct 2006 04:16:23 +0000 (04:16 +0000)]
Need to use (mode_t)~0 instead of ~0u for portability.
Wayne Davison [Sun, 22 Oct 2006 02:21:15 +0000 (02:21 +0000)]
Fixed the crash problem Matt found.
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).
Wayne Davison [Wed, 18 Oct 2006 04:43:11 +0000 (04:43 +0000)]
Fixed failing hunk.
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.
Wayne Davison [Mon, 16 Oct 2006 06:54:06 +0000 (06:54 +0000)]
Got rid of the (unneeded) ./prepare_source instructions.
Wayne Davison [Sun, 15 Oct 2006 20:22:53 +0000 (20:22 +0000)]
Fixed compilation problems that crept into the code.
Wayne Davison [Sun, 15 Oct 2006 19:09:52 +0000 (19:09 +0000)]
I don't think we need this.
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().
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.
Wayne Davison [Sat, 14 Oct 2006 20:12:49 +0000 (20:12 +0000)]
Fixed a failing hunk.
Wayne Davison [Sat, 14 Oct 2006 20:10:21 +0000 (20:10 +0000)]
Fixed failing hunk.
Wayne Davison [Fri, 13 Oct 2006 23:57:13 +0000 (23:57 +0000)]
Fixed failing hunks.
Wayne Davison [Fri, 13 Oct 2006 07:54:52 +0000 (07:54 +0000)]
Got rid of double-fuzz hunk.
Wayne Davison [Fri, 13 Oct 2006 07:53:38 +0000 (07:53 +0000)]
Fixed failing hunks.
Wayne Davison [Fri, 13 Oct 2006 06:53:59 +0000 (06:53 +0000)]
Fixed a failing hunk.
Wayne Davison [Thu, 12 Oct 2006 03:08:46 +0000 (03:08 +0000)]
Updated for rolled-back trunk.
Wayne Davison [Wed, 11 Oct 2006 00:54:29 +0000 (00:54 +0000)]
Fixed failing hunks and failing itemize testsuite.
Wayne Davison [Mon, 9 Oct 2006 03:13:47 +0000 (03:13 +0000)]
Fixed a failing hunk.
Wayne Davison [Mon, 9 Oct 2006 00:56:12 +0000 (00:56 +0000)]
Fixed some failing hunks.
Wayne Davison [Sun, 8 Oct 2006 22:32:34 +0000 (22:32 +0000)]
Fixed failing hunks.
Wayne Davison [Sun, 24 Sep 2006 03:31:34 +0000 (03:31 +0000)]
Fixed some failing hunks.
Wayne Davison [Wed, 20 Sep 2006 14:22:49 +0000 (14:22 +0000)]
Some improvements from marineam@osuosl.org.
Wayne Davison [Wed, 20 Sep 2006 14:11:37 +0000 (14:11 +0000)]
Fixed failing hunks.
Wayne Davison [Tue, 25 Jul 2006 14:53:33 +0000 (14:53 +0000)]
Fixed failing hunks.
Wayne Davison [Wed, 5 Jul 2006 06:00:31 +0000 (06:00 +0000)]
Fixed failing hunks.
Wayne Davison [Wed, 7 Jun 2006 23:32:41 +0000 (23:32 +0000)]
A patch from Antti Tapaninen.
Wayne Davison [Wed, 7 Jun 2006 23:31:34 +0000 (23:31 +0000)]
Fixed failing hunks.
Wayne Davison [Wed, 7 Jun 2006 18:36:49 +0000 (18:36 +0000)]
A patch from Stefan Müller.
Wayne Davison [Mon, 5 Jun 2006 20:58:58 +0000 (20:58 +0000)]
Got rid of some patch fuzz.
Wayne Davison [Mon, 5 Jun 2006 20:57:03 +0000 (20:57 +0000)]
Fixed a failing hunk.