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.
Wayne Davison [Thu, 1 Jun 2006 08:07:53 +0000 (08:07 +0000)]
Fixed a failing hunk.
Wayne Davison [Wed, 31 May 2006 15:27:23 +0000 (15:27 +0000)]
Mention -X 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.
Wayne Davison [Mon, 29 May 2006 23:08:04 +0000 (23:08 +0000)]
Fixed failing hunks.
Wayne Davison [Thu, 18 May 2006 17:25:27 +0000 (17:25 +0000)]
Fixed a failing hunk.
Wayne Davison [Wed, 17 May 2006 06:30:59 +0000 (06:30 +0000)]
Fixed some patch fuzz.
Wayne Davison [Wed, 17 May 2006 06:29:55 +0000 (06:29 +0000)]
Fixed a failing hunk.
Wayne Davison [Sat, 13 May 2006 08:29:36 +0000 (08:29 +0000)]
Got rid of patch fuzz.
Wayne Davison [Tue, 9 May 2006 18:50:36 +0000 (18:50 +0000)]
Fixed failing hunks.
Wayne Davison [Tue, 9 May 2006 18:41:55 +0000 (18:41 +0000)]
Applied this to the trunk (with a few improvements).
Wayne Davison [Fri, 5 May 2006 16:09:53 +0000 (16:09 +0000)]
Fixed some patch fuzz.
Wayne Davison [Fri, 5 May 2006 16:06:22 +0000 (16:06 +0000)]
Fixed failing hunks.
Wayne Davison [Thu, 4 May 2006 05:48:09 +0000 (05:48 +0000)]
Fixed a problem with the ACLS_NEED_MASK code in unpack_smb_acl().
Wayne Davison [Thu, 4 May 2006 00:59:51 +0000 (00:59 +0000)]
- A couple minor changes for systems with a forced mask.
- Some comment tweaks.
Wayne Davison [Wed, 3 May 2006 17:23:14 +0000 (17:23 +0000)]
Fixed failing hunks.
Wayne Davison [Wed, 3 May 2006 06:38:00 +0000 (06:38 +0000)]
Fixed failing hunks.
Wayne Davison [Tue, 2 May 2006 17:21:29 +0000 (17:21 +0000)]
Fixed failing hunks.
Wayne Davison [Mon, 1 May 2006 19:07:06 +0000 (19:07 +0000)]
- Updated to apply over the new ACL patch.
- Updated with memory-allocation and backup-call improvements
(similar to what went into the ACL patch).
Wayne Davison [Mon, 1 May 2006 18:58:49 +0000 (18:58 +0000)]
- Improved send_acl() to handle an error case where the ACL info
is missing.
- Improved cache_acl() to ignore a symlink, to free the ACL info
from the statx object, and to flag missing ACL data with an
index value of -1.
- Improved set_acl() to ignore invalid index values and to assume
that missing statx ACL info means that the ACL info differs.
Wayne Davison [Mon, 1 May 2006 17:49:44 +0000 (17:49 +0000)]
Got rid of the extra file-list int32 index vars on the sending side.
Wayne Davison [Mon, 1 May 2006 17:04:20 +0000 (17:04 +0000)]
Moved the inclusion of the ACL include files from h into
lib/sysacls.h.
Wayne Davison [Mon, 1 May 2006 16:50:31 +0000 (16:50 +0000)]
Tweaked the naming of the ACL functions.
Wayne Davison [Mon, 1 May 2006 15:56:52 +0000 (15:56 +0000)]
Improved expand_item_list() to allow the increment size to be specified.
Wayne Davison [Sun, 30 Apr 2006 23:53:14 +0000 (23:53 +0000)]
Moved the generic list-growing function into util.c so that the
xattr code can use it.
Wayne Davison [Sun, 30 Apr 2006 23:06:27 +0000 (23:06 +0000)]
Renamed a variable in flist.c.
Wayne Davison [Sun, 30 Apr 2006 22:40:58 +0000 (22:40 +0000)]
Fixed failing hunks.
Wayne Davison [Sun, 30 Apr 2006 22:06:41 +0000 (22:06 +0000)]
Some extensive changes include:
- Added an ACL indicator to the itemized output.
- Ensure that --link-dest doesn't link together two items that
differ in their ACLs (when ACLs are being preserved).
- Optimized the memory allocation routines, getting rid of the
redundant allocation functions saving memory, and, getting rid
of the need for a sort routine and a search routine.
- Added a more general-purpose ACL-reading function that can be
used by the sending code and the receiving code (including the
backup code, which removes a bunch of special-purpose functions
that the backup code was using).
Wayne Davison [Sat, 29 Apr 2006 09:14:31 +0000 (09:14 +0000)]
Got rid of a superfluous call to f_name() in receive_acl().
Wayne Davison [Fri, 28 Apr 2006 17:39:09 +0000 (17:39 +0000)]
We make sure that the rsync_acl objects never have a forced
mask entry (i.e. one that is present even when a list is not).
Wayne Davison [Thu, 27 Apr 2006 00:34:52 +0000 (00:34 +0000)]
Fixed a problem with send_acl() when f == -1.
Wayne Davison [Wed, 26 Apr 2006 00:31:10 +0000 (00:31 +0000)]
Updated the header comments in two files to have the latest FSF address.
Wayne Davison [Wed, 26 Apr 2006 00:30:03 +0000 (00:30 +0000)]
Updated two more header comments with the latest FSF address.
Wayne Davison [Tue, 25 Apr 2006 23:56:15 +0000 (23:56 +0000)]
Updated the copyright info in the new acls.c file.
Wayne Davison [Tue, 25 Apr 2006 23:35:11 +0000 (23:35 +0000)]
Make sure that ida_list_free() doesn't call free() on a NULL pointer.
Wayne Davison [Tue, 25 Apr 2006 20:32:41 +0000 (20:32 +0000)]
Fixed some high-level patch fuzz.
Wayne Davison [Tue, 25 Apr 2006 20:30:35 +0000 (20:30 +0000)]
Fixed failing hunks.
Wayne Davison [Sat, 22 Apr 2006 19:31:54 +0000 (19:31 +0000)]
Fixed a bug in rsync_acl_extended_parts_equal() where it could
return False just because the second arg had a mask w/o a group_obj
(because the identical group_obj had been elided for transit).
Wayne Davison [Fri, 21 Apr 2006 16:58:13 +0000 (16:58 +0000)]
Fixed a failing hunk.
Wayne Davison [Fri, 21 Apr 2006 02:56:35 +0000 (02:56 +0000)]
Fixed a build problem with the last change.
Wayne Davison [Fri, 21 Apr 2006 00:04:16 +0000 (00:04 +0000)]
Added a sanity check to the xattr-reading code so that some crafty
size values cannot cause a buffer overflow.
Wayne Davison [Tue, 18 Apr 2006 04:45:44 +0000 (04:45 +0000)]
Fixed failing hunks.
Wayne Davison [Tue, 18 Apr 2006 04:45:30 +0000 (04:45 +0000)]
A slight tweak to the logic that calls log_exit().
Wayne Davison [Tue, 11 Apr 2006 00:19:37 +0000 (00:19 +0000)]
Added a simple ACL-copying test to the testsuite.
Wayne Davison [Sat, 8 Apr 2006 16:25:09 +0000 (16:25 +0000)]
A tweak to the configure output from Mike Frysinger.
Wayne Davison [Sat, 8 Apr 2006 16:15:30 +0000 (16:15 +0000)]
Make sure that whenever log_init() gets called, that a daemon rsync
will use the current value of lp_log_file().
Wayne Davison [Thu, 6 Apr 2006 21:14:18 +0000 (21:14 +0000)]
Changed variable "logfile" to "logfile_fp".
Wayne Davison [Thu, 6 Apr 2006 07:51:54 +0000 (07:51 +0000)]
- Make sure that logfile_name is set properly for all possible
daemon modes.
- Fixed some failing hunks.
Wayne Davison [Wed, 22 Mar 2006 09:24:41 +0000 (09:24 +0000)]
Fixed a failing hunk.