rsync/rsync-patches.git
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.

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

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

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

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

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

18 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).

18 years agoFixed some patch fuzz.
Wayne Davison [Fri, 5 May 2006 16:09:53 +0000 (16:09 +0000)]
Fixed some patch fuzz.

18 years agoFixed failing hunks.
Wayne Davison [Fri, 5 May 2006 16:06:22 +0000 (16:06 +0000)]
Fixed failing hunks.

18 years agoFixed a problem with the ACLS_NEED_MASK code in unpack_smb_acl().
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().

18 years ago- A couple minor changes for systems with a forced mask.
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.

18 years agoFixed failing hunks.
Wayne Davison [Wed, 3 May 2006 17:23:14 +0000 (17:23 +0000)]
Fixed failing hunks.

18 years agoFixed failing hunks.
Wayne Davison [Wed, 3 May 2006 06:38:00 +0000 (06:38 +0000)]
Fixed failing hunks.

18 years agoFixed failing hunks.
Wayne Davison [Tue, 2 May 2006 17:21:29 +0000 (17:21 +0000)]
Fixed failing hunks.

18 years ago- Updated to apply over the new ACL patch.
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).

18 years ago- Improved send_acl() to handle an error case where the ACL info
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.

18 years agoGot rid of the extra file-list int32 index vars on the sending side.
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.

18 years agoMoved the inclusion of the ACL include files from rsync.h into
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.

18 years agoTweaked the naming of the ACL functions.
Wayne Davison [Mon, 1 May 2006 16:50:31 +0000 (16:50 +0000)]
Tweaked the naming of the ACL functions.

18 years agoImproved expand_item_list() to allow the increment size to be specified.
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.

18 years agoMoved the generic list-growing function into util.c so that the
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.

18 years agoRenamed a variable in flist.c.
Wayne Davison [Sun, 30 Apr 2006 23:06:27 +0000 (23:06 +0000)]
Renamed a variable in flist.c.

18 years agoFixed failing hunks.
Wayne Davison [Sun, 30 Apr 2006 22:40:58 +0000 (22:40 +0000)]
Fixed failing hunks.

18 years agoSome extensive changes include:
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).

18 years agoGot rid of a superfluous call to f_name() in receive_acl().
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().

18 years agoWe make sure that the rsync_acl objects never have a forced
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).

18 years agoFixed a problem with send_acl() when f == -1.
Wayne Davison [Thu, 27 Apr 2006 00:34:52 +0000 (00:34 +0000)]
Fixed a problem with send_acl() when f == -1.

18 years agoUpdated the header comments in two files to have the latest FSF address.
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.

18 years agoUpdated two more header comments with 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.

18 years agoUpdated the copyright info in the new acls.c file.
Wayne Davison [Tue, 25 Apr 2006 23:56:15 +0000 (23:56 +0000)]
Updated the copyright info in the new acls.c file.

18 years agoMake sure that ida_list_free() doesn't call free() on a NULL pointer.
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.

18 years agoFixed some high-level patch fuzz.
Wayne Davison [Tue, 25 Apr 2006 20:32:41 +0000 (20:32 +0000)]
Fixed some high-level patch fuzz.

18 years agoFixed failing hunks.
Wayne Davison [Tue, 25 Apr 2006 20:30:35 +0000 (20:30 +0000)]
Fixed failing hunks.

18 years agoFixed a bug in rsync_acl_extended_parts_equal() where it could
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).

18 years agoFixed a failing hunk.
Wayne Davison [Fri, 21 Apr 2006 16:58:13 +0000 (16:58 +0000)]
Fixed a failing hunk.

18 years agoFixed a build problem with the last change.
Wayne Davison [Fri, 21 Apr 2006 02:56:35 +0000 (02:56 +0000)]
Fixed a build problem with the last change.

18 years agoAdded a sanity check to the xattr-reading code so that some crafty
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.

18 years agoFixed failing hunks.
Wayne Davison [Tue, 18 Apr 2006 04:45:44 +0000 (04:45 +0000)]
Fixed failing hunks.

18 years agoA slight tweak to the logic that calls log_exit().
Wayne Davison [Tue, 18 Apr 2006 04:45:30 +0000 (04:45 +0000)]
A slight tweak to the logic that calls log_exit().

18 years agoAdded a simple ACL-copying test to the testsuite.
Wayne Davison [Tue, 11 Apr 2006 00:19:37 +0000 (00:19 +0000)]
Added a simple ACL-copying test to the testsuite.

18 years agoA tweak to the configure output from Mike Frysinger.
Wayne Davison [Sat, 8 Apr 2006 16:25:09 +0000 (16:25 +0000)]
A tweak to the configure output from Mike Frysinger.

18 years agoMake sure that whenever log_init() gets called, that a daemon rsync
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().

18 years agoChanged variable "logfile" to "logfile_fp".
Wayne Davison [Thu, 6 Apr 2006 21:14:18 +0000 (21:14 +0000)]
Changed variable "logfile" to "logfile_fp".

18 years ago- Make sure that logfile_name is set properly for all possible
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.

18 years agoFixed a failing hunk.
Wayne Davison [Wed, 22 Mar 2006 09:24:41 +0000 (09:24 +0000)]
Fixed a failing hunk.

18 years agoImproved the opening comments.
Wayne Davison [Wed, 22 Mar 2006 09:21:46 +0000 (09:21 +0000)]
Improved the opening comments.

18 years agoA fix to define SUPPORT_FLAGS earlier in rsync.h.
Wayne Davison [Tue, 21 Mar 2006 21:59:35 +0000 (21:59 +0000)]
A fix to define SUPPORT_FLAGS earlier in rsync.h.

18 years agoA little more misc. cleanup.
Wayne Davison [Tue, 21 Mar 2006 07:55:12 +0000 (07:55 +0000)]
A little more misc. cleanup.

18 years agoA new version of an old patch by Rolf Grossmann.
Wayne Davison [Mon, 20 Mar 2006 23:54:26 +0000 (23:54 +0000)]
A new version of an old patch by Rolf Grossmann.

18 years agoThis is a better version for the updated acls.diff patch than
Wayne Davison [Mon, 20 Mar 2006 18:01:57 +0000 (18:01 +0000)]
This is a better version for the updated acls.diff patch than
what I had created before.

18 years ago- Fixed a logic problem for an ACLS_NEED_MASK system where group_obj
Wayne Davison [Mon, 20 Mar 2006 00:59:12 +0000 (00:59 +0000)]
- Fixed a logic problem for an ACLS_NEED_MASK system where group_obj
  would not get reconstructed correctly for simple ACL sets.
- Fixed a build problem for an ACLS_NEED_MASK system.
- Avoid sending redundant group/mask info when possible.
- Renamed NO_ENTRY define ACL_NO_ENTRY.

18 years agoMake sure that an ACLS_NEED_MASK system strips a redundant mask
Wayne Davison [Sat, 18 Mar 2006 08:50:40 +0000 (08:50 +0000)]
Make sure that an ACLS_NEED_MASK system strips a redundant mask
value prior to the send so that the ACL transmission is as efficient
as it would be on a non-ACLS_NEED_MASK sytem.

18 years agoFixed a failing hunk.
Wayne Davison [Fri, 17 Mar 2006 23:58:08 +0000 (23:58 +0000)]
Fixed a failing hunk.

18 years agoUpdated the rsync.yo file.
Wayne Davison [Fri, 17 Mar 2006 17:55:46 +0000 (17:55 +0000)]
Updated the rsync.yo file.

18 years agoIf the user repeats the --acls (-A) option, use a backward-compatible
Wayne Davison [Fri, 17 Mar 2006 17:19:37 +0000 (17:19 +0000)]
If the user repeats the --acls (-A) option, use a backward-compatible
ACL-send that should let us send files to an older ACL-enabled rsync.

18 years ago- Added configure support for cygwin.
Wayne Davison [Thu, 16 Mar 2006 21:38:59 +0000 (21:38 +0000)]
- Added configure support for cygwin.
- Added support for a system that loses the special mode bits
  (such as cygwin) via the SMB_ACL_LOSES_SPECIAL_MODE_BITS define.
- Made the default-acls.test work on solaris.

18 years agoUpdated to work with latest io.c changes.
Wayne Davison [Thu, 16 Mar 2006 17:54:16 +0000 (17:54 +0000)]
Updated to work with latest io.c changes.

18 years agoUpdated to work with the newest io.c code.
Wayne Davison [Thu, 16 Mar 2006 03:12:42 +0000 (03:12 +0000)]
Updated to work with the newest io.c code.

18 years agoSet LC_COLLATE=C explicitly in the environment.
Wayne Davison [Wed, 15 Mar 2006 01:59:45 +0000 (01:59 +0000)]
Set LC_COLLATE=C explicitly in the environment.

18 years agoA first-cut at a --log-file=FILE option.
Wayne Davison [Tue, 14 Mar 2006 19:28:08 +0000 (19:28 +0000)]
A first-cut at a --log-file=FILE option.

18 years agoRemoved patch fuzz.
Wayne Davison [Mon, 13 Mar 2006 22:03:21 +0000 (22:03 +0000)]
Removed patch fuzz.

18 years agoModifed to work with the latest acls.diff patch.
Wayne Davison [Mon, 13 Mar 2006 22:02:10 +0000 (22:02 +0000)]
Modifed to work with the latest acls.diff patch.

18 years agoThe tag char doesn't need to be unsigned.
Wayne Davison [Mon, 13 Mar 2006 21:50:55 +0000 (21:50 +0000)]
The tag char doesn't need to be unsigned.

18 years agoSome improved error checking.
Wayne Davison [Mon, 13 Mar 2006 21:45:54 +0000 (21:45 +0000)]
Some improved error checking.

18 years agoFixed a problem in the computing of a missing mask value.
Wayne Davison [Mon, 13 Mar 2006 01:03:51 +0000 (01:03 +0000)]
Fixed a problem in the computing of a missing mask value.

18 years agoA much-improved version of the --acls option that Matt and I have been
Wayne Davison [Sat, 11 Mar 2006 21:47:01 +0000 (21:47 +0000)]
A much-improved version of the --acls option that Matt and I have been
working on.

18 years agoFixed a failing hunk.
Wayne Davison [Sat, 11 Mar 2006 18:13:22 +0000 (18:13 +0000)]
Fixed a failing hunk.

18 years ago- Reverted some of the recent changes that were not quite right.
Wayne Davison [Sat, 11 Mar 2006 05:41:17 +0000 (05:41 +0000)]
- Reverted some of the recent changes that were not quite right.
- Changed the chmod()/set_acl() interaction yet again.  Now, -A mode
  has chmod() only turn off bits that got disabled while it properly
  sets the special permission bits; then set_acl() finishes the job
  by turning on any new access bits when it sets the updated ACL.

18 years agoThe ACL code in make_file() needed to happen after the --chmod
Wayne Davison [Fri, 10 Mar 2006 21:53:41 +0000 (21:53 +0000)]
The ACL code in make_file() needed to happen after the --chmod
code twiddled the permissions.

18 years agoChanged the uid/gid mapping to not use such a convoluted call-back
Wayne Davison [Fri, 10 Mar 2006 19:34:30 +0000 (19:34 +0000)]
Changed the uid/gid mapping to not use such a convoluted call-back
method; just return a pointer to the id that needs to be updated.

18 years agoThe pack_smb_acl() function sets more than just the mask now: the
Wayne Davison [Fri, 10 Mar 2006 18:40:18 +0000 (18:40 +0000)]
The pack_smb_acl() function sets more than just the mask now:  the
group permissions IIF no mask exists, and the other permissions too.

18 years agoReverting the change in 1.21.
Wayne Davison [Fri, 10 Mar 2006 17:04:22 +0000 (17:04 +0000)]
Reverting the change in 1.21.

18 years ago- If an access ACL has a mask, we set it to the group bits of the
Wayne Davison [Fri, 10 Mar 2006 17:02:50 +0000 (17:02 +0000)]
- If an access ACL has a mask, we set it to the group bits of the
  file on the disk (which will be 0 for a new file) and let the
  following chmod() fix it.
- The chmod() call now follows set_acl() again.
- Improved the code in receive_rsync_acl().
- If we don't receive one of the  SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ,
  SMB_ACL_OTHER, and/or SMB_ACL_MASK objects, we set the access bits
  based on the incoming file's mode bits.
- Tweaked some comments.

18 years agoUpdated the opening comments.
Wayne Davison [Thu, 9 Mar 2006 20:36:11 +0000 (20:36 +0000)]
Updated the opening comments.

18 years agoMoved the set_xattr() call back after do_chmod().
Wayne Davison [Thu, 9 Mar 2006 19:51:50 +0000 (19:51 +0000)]
Moved the set_xattr() call back after do_chmod().

18 years agoMoved the set_acl() call after the do_chmod() call again.
Wayne Davison [Thu, 9 Mar 2006 19:50:49 +0000 (19:50 +0000)]
Moved the set_acl() call after the do_chmod() call again.

18 years agoHave the xattr-function callers check preserve_xattrs.
Wayne Davison [Thu, 9 Mar 2006 17:46:22 +0000 (17:46 +0000)]
Have the xattr-function callers check preserve_xattrs.

18 years agoAdded a comment.
Wayne Davison [Thu, 9 Mar 2006 17:30:22 +0000 (17:30 +0000)]
Added a comment.

18 years agoMade the ACL-function callers check preserve_acls.
Wayne Davison [Thu, 9 Mar 2006 17:14:36 +0000 (17:14 +0000)]
Made the ACL-function callers check preserve_acls.

18 years agoMade all the type loops more efficient.
Wayne Davison [Thu, 9 Mar 2006 17:00:24 +0000 (17:00 +0000)]
Made all the type loops more efficient.

18 years ago- Made the "types" array a single static instead of a separate
Wayne Davison [Thu, 9 Mar 2006 16:08:58 +0000 (16:08 +0000)]
- Made the "types" array a single static instead of a separate
  dynamically initialized version for each function.
- Moved the set_acl() prior to chmod().

18 years agoThis change from Matt makes rsync invent a simple ACL list for an
Wayne Davison [Thu, 9 Mar 2006 15:47:12 +0000 (15:47 +0000)]
This change from Matt makes rsync invent a simple ACL list for an
item that doesn't support ACLs.

18 years agoGot rid of the uppercase XATTR function defines and updated
Wayne Davison [Thu, 9 Mar 2006 02:44:31 +0000 (02:44 +0000)]
Got rid of the uppercase XATTR function defines and updated
the patch to apply against the latest ACL patch.

18 years ago- Got rid of the uppercased ACL function defines.
Wayne Davison [Thu, 9 Mar 2006 02:17:30 +0000 (02:17 +0000)]
- Got rid of the uppercased ACL function defines.
- A few other style tweaks.

18 years agoFrom Matt:
Wayne Davison [Thu, 9 Mar 2006 01:27:17 +0000 (01:27 +0000)]
From Matt:
- Fixed the return value of set_acl() when ACLs are being copied.
- Set directory ACLs correctly.
- Got rid of an unneeded forcing of S_IWUSR.

18 years agoGot rid of some patch fuzz.
Wayne Davison [Tue, 7 Mar 2006 07:41:08 +0000 (07:41 +0000)]
Got rid of some patch fuzz.

18 years agoFixed a typo.
Wayne Davison [Tue, 7 Mar 2006 07:40:53 +0000 (07:40 +0000)]
Fixed a typo.

18 years agoChanged "%0x" in an rprintf() to "%02x".
Wayne Davison [Tue, 7 Mar 2006 07:39:51 +0000 (07:39 +0000)]
Changed "%0x" in an rprintf() to "%02x".

18 years agoWe now pass the --detect-renamed option to the server if we're not
Wayne Davison [Sun, 5 Mar 2006 21:15:48 +0000 (21:15 +0000)]
We now pass the --detect-renamed option to the server if we're not
the receiver.

18 years agoTweaked a directory copy command in default-acls.test.
Wayne Davison [Thu, 2 Mar 2006 21:14:26 +0000 (21:14 +0000)]
Tweaked a directory copy command in default-acls.test.

18 years agoMost of the patch got applied to the trunk, so what remains is
Wayne Davison [Tue, 28 Feb 2006 21:49:42 +0000 (21:49 +0000)]
Most of the patch got applied to the trunk, so what remains is
just the bit that makes the hash table dynamically sized.

18 years agoHandle a patch failure where the whole patch was rejected.
Wayne Davison [Tue, 28 Feb 2006 00:38:18 +0000 (00:38 +0000)]
Handle a patch failure where the whole patch was rejected.

18 years agoFixed a few bugs.
Wayne Davison [Tue, 28 Feb 2006 00:26:17 +0000 (00:26 +0000)]
Fixed a few bugs.

18 years agoImproved a few minor things.
Wayne Davison [Mon, 27 Feb 2006 03:28:04 +0000 (03:28 +0000)]
Improved a few minor things.

18 years agoNo need to initialize the chain var of a checksum struct since
Wayne Davison [Mon, 27 Feb 2006 02:55:55 +0000 (02:55 +0000)]
No need to initialize the chain var of a checksum struct since
it will get set when it is inserted into the hash table.