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

18 years agoMake sure that the hash-table index can't overflow its variable.
Wayne Davison [Mon, 27 Feb 2006 02:48:40 +0000 (02:48 +0000)]
Make sure that the hash-table index can't overflow its variable.

18 years agoIncorporated some feedback from Shachar Shemesh.
Wayne Davison [Sun, 26 Feb 2006 15:48:01 +0000 (15:48 +0000)]
Incorporated some feedback from Shachar Shemesh.

18 years agoFixed a typo.
Wayne Davison [Sun, 26 Feb 2006 00:59:54 +0000 (00:59 +0000)]
Fixed a typo.

18 years agoAn improved way to hash the checksum data (used by the sender).
Wayne Davison [Sun, 26 Feb 2006 00:29:34 +0000 (00:29 +0000)]
An improved way to hash the checksum data (used by the sender).

18 years agoFixed failing hunks.
Wayne Davison [Fri, 24 Feb 2006 18:03:01 +0000 (18:03 +0000)]
Fixed failing hunks.

18 years agoFixed a build problem.
Wayne Davison [Fri, 24 Feb 2006 06:42:16 +0000 (06:42 +0000)]
Fixed a build problem.

18 years agoFixed failing hunks.
Wayne Davison [Fri, 24 Feb 2006 02:03:21 +0000 (02:03 +0000)]
Fixed failing hunks.

18 years agoFixed a failing hunk.
Wayne Davison [Thu, 23 Feb 2006 20:31:44 +0000 (20:31 +0000)]
Fixed a failing hunk.

18 years agoFixed failing hunks.
Wayne Davison [Thu, 23 Feb 2006 20:02:11 +0000 (20:02 +0000)]
Fixed failing hunks.

18 years agoOne more missing bit for bug 3543.
Wayne Davison [Thu, 23 Feb 2006 19:27:39 +0000 (19:27 +0000)]
One more missing bit for bug 3543.

18 years agoFixed bug #3543 (https://bugzilla.samba.org/show_bug.cgi?id=3543).
Wayne Davison [Thu, 23 Feb 2006 19:19:09 +0000 (19:19 +0000)]
Fixed bug #3543 (https://bugzilla.samba.org/show_bug.cgi?id=3543).

18 years agoFixed failing hunks.
Wayne Davison [Mon, 20 Feb 2006 19:23:28 +0000 (19:23 +0000)]
Fixed failing hunks.

18 years agoA patch that appears to help some cygwin users.
Wayne Davison [Mon, 20 Feb 2006 05:49:04 +0000 (05:49 +0000)]
A patch that appears to help some cygwin users.

18 years agoA simple --slow-down=USECs option that is somewhat useful.
Wayne Davison [Fri, 17 Feb 2006 02:27:57 +0000 (02:27 +0000)]
A simple --slow-down=USECs option that is somewhat useful.

18 years agoFixed a failing hunk.
Wayne Davison [Wed, 15 Feb 2006 20:07:03 +0000 (20:07 +0000)]
Fixed a failing hunk.

18 years agoFixed a problem joining multiple .rej names in the edit command.
Wayne Davison [Wed, 15 Feb 2006 17:34:20 +0000 (17:34 +0000)]
Fixed a problem joining multiple .rej names in the edit command.

18 years agoFixed a failing hunk.
Wayne Davison [Tue, 14 Feb 2006 19:27:45 +0000 (19:27 +0000)]
Fixed a failing hunk.

18 years agoThe code now compiles if slp is disabled.
Wayne Davison [Thu, 9 Feb 2006 03:54:28 +0000 (03:54 +0000)]
The code now compiles if slp is disabled.

18 years agoFixed a build problem.
Wayne Davison [Thu, 9 Feb 2006 03:50:07 +0000 (03:50 +0000)]
Fixed a build problem.

18 years agoOne more fix for the scanning of configure's args.
Wayne Davison [Thu, 9 Feb 2006 03:49:34 +0000 (03:49 +0000)]
One more fix for the scanning of configure's args.

18 years ago- Use the first configure command given in a diff, even if
Wayne Davison [Thu, 9 Feb 2006 03:05:38 +0000 (03:05 +0000)]
- Use the first configure command given in a diff, even if
  it has no args.
- Output the build commands being run.

18 years agoFixed a build failure and some compiler warnings.
Wayne Davison [Thu, 9 Feb 2006 02:33:30 +0000 (02:33 +0000)]
Fixed a build failure and some compiler warnings.

18 years agoFixed a build problem.
Wayne Davison [Thu, 9 Feb 2006 02:22:31 +0000 (02:22 +0000)]
Fixed a build problem.

18 years agoFixed a simple build problem that crept into the patch.
Wayne Davison [Thu, 9 Feb 2006 02:14:52 +0000 (02:14 +0000)]
Fixed a simple build problem that crept into the patch.

18 years agoAdded build instructions.
Wayne Davison [Thu, 9 Feb 2006 02:05:06 +0000 (02:05 +0000)]
Added build instructions.

18 years agoFixed failing hunks.
Wayne Davison [Thu, 9 Feb 2006 01:56:48 +0000 (01:56 +0000)]
Fixed failing hunks.

18 years ago- Allow --auto-cmd (-a) additions to be specifed while running.
Wayne Davison [Thu, 9 Feb 2006 01:56:30 +0000 (01:56 +0000)]
- Allow --auto-cmd (-a) additions to be specifed while running.
- Only use the auto-cmd on the first prompt for a patch, not after
  any other work has been done.
- Got rid of --require-quit (-Q).

18 years agoAdds some extended attributes after acls.diff.
Wayne Davison [Thu, 9 Feb 2006 00:10:08 +0000 (00:10 +0000)]
Adds some extended attributes after acls.diff.
(The original patch was from Philip Lowman.)

18 years agoTweaked a message.
Wayne Davison [Wed, 8 Feb 2006 20:47:30 +0000 (20:47 +0000)]
Tweaked a message.

18 years agoAllow --auto-cmd (-a) to be repeated.
Wayne Davison [Wed, 8 Feb 2006 17:40:26 +0000 (17:40 +0000)]
Allow --auto-cmd (-a) to be repeated.

18 years ago- Added a short option (-a) for --auto-cmd.
Wayne Davison [Wed, 8 Feb 2006 17:32:48 +0000 (17:32 +0000)]
- Added a short option (-a) for --auto-cmd.
- Made the --auto-cmd REGEX a case-insensitive match.

18 years agoFixed a failing hunk.
Wayne Davison [Wed, 8 Feb 2006 17:28:31 +0000 (17:28 +0000)]
Fixed a failing hunk.

18 years agoEnhanced --auto-cmd to take a REGEX instead of a STRING.
Wayne Davison [Wed, 8 Feb 2006 01:48:38 +0000 (01:48 +0000)]
Enhanced --auto-cmd to take a REGEX instead of a STRING.

18 years agoAdded --auto-cmd=STR option.
Wayne Davison [Wed, 8 Feb 2006 01:40:03 +0000 (01:40 +0000)]
Added --auto-cmd=STR option.

18 years agoAdded the --require-quit (-Q) option (used by my release-rsync
Wayne Davison [Wed, 8 Feb 2006 01:19:20 +0000 (01:19 +0000)]
Added the --require-quit (-Q) option (used by my release-rsync
script).

18 years agoUpdated to apply cleanly.
Wayne Davison [Wed, 8 Feb 2006 01:07:25 +0000 (01:07 +0000)]
Updated to apply cleanly.

18 years agoThe --detect-renamed option for finding files in the destination
Wayne Davison [Tue, 7 Feb 2006 18:32:44 +0000 (18:32 +0000)]
The --detect-renamed option for finding files in the destination
that were renamed since the last run.

18 years agoFixed failing hunks.
Wayne Davison [Tue, 7 Feb 2006 18:23:18 +0000 (18:23 +0000)]
Fixed failing hunks.

18 years agoThis has been replaced by the "incoming chmod" and "outgoing chmod"
Wayne Davison [Mon, 6 Feb 2006 18:57:10 +0000 (18:57 +0000)]
This has been replaced by the "incoming chmod" and "outgoing chmod"
daemon options.

18 years ago- Make sure that generated files always come last in the diff.
Wayne Davison [Mon, 6 Feb 2006 07:24:12 +0000 (07:24 +0000)]
- Make sure that generated files always come last in the diff.
- Sleep after a dependency patch so that the generated file's
  timestamps don't accidentally match.

18 years agoChanged the style of the diff headers (use "patch -p1" now).
Wayne Davison [Mon, 6 Feb 2006 06:32:31 +0000 (06:32 +0000)]
Changed the style of the diff headers (use "patch -p1" now).

18 years agoWe should not use the date in the header when patching, because that
Wayne Davison [Mon, 6 Feb 2006 06:31:59 +0000 (06:31 +0000)]
We should not use the date in the header when patching, because that
can lead to newly-patched files having an older date than generated
files.  I also got rid of the date-portion of the diff header and I
changed the dir prefixes to be "old/" and "new/" (we now require
"patch -p1").  Also dumped the setting of $ENV{TZ} to 'UTC' and made
a few code optimizations.

18 years agoTweaked the diff headers.
Wayne Davison [Mon, 6 Feb 2006 06:24:29 +0000 (06:24 +0000)]
Tweaked the diff headers.

18 years agoSimplified the build instructions now that we have "prepare-source".
Wayne Davison [Mon, 6 Feb 2006 05:24:01 +0000 (05:24 +0000)]
Simplified the build instructions now that we have "prepare-source".

18 years agoAdded the --prepare-source option that will regenerate generated
Wayne Davison [Mon, 6 Feb 2006 05:19:51 +0000 (05:19 +0000)]
Added the --prepare-source option that will regenerate generated
files (e.g. rsync.1, proto.h) and include these changes in the
resulting patch.

18 years agoBe a little more quiet when updating "cvsdir".
Wayne Davison [Sun, 5 Feb 2006 07:07:13 +0000 (07:07 +0000)]
Be a little more quiet when updating "cvsdir".

18 years agoFixed a failing hunk.
Wayne Davison [Sun, 5 Feb 2006 07:06:25 +0000 (07:06 +0000)]
Fixed a failing hunk.

18 years agoSome doc improvements from Matt.
Wayne Davison [Sun, 5 Feb 2006 07:06:08 +0000 (07:06 +0000)]
Some doc improvements from Matt.

18 years agoFixed a failing hunk.
Wayne Davison [Sun, 5 Feb 2006 05:08:54 +0000 (05:08 +0000)]
Fixed a failing hunk.

18 years agoAdded an extra test to default-acls.diff.
Wayne Davison [Sun, 5 Feb 2006 05:06:04 +0000 (05:06 +0000)]
Added an extra test to default-acls.diff.

18 years agoAnother fix to the directory-default-ACLs code in generator.c.
Wayne Davison [Sat, 4 Feb 2006 22:28:54 +0000 (22:28 +0000)]
Another fix to the directory-default-ACLs code in generator.c.

18 years agoMake sure that we look-up the directory-default permissions for
Wayne Davison [Sat, 4 Feb 2006 20:18:22 +0000 (20:18 +0000)]
Make sure that we look-up the directory-default permissions for
the first non-dir item in a directory, not just the first regular
file.

18 years ago- A couple more chunks of code in options.c needed to only be
Wayne Davison [Sat, 4 Feb 2006 20:07:26 +0000 (20:07 +0000)]
- A couple more chunks of code in options.c needed to only be
  included when compiling with xattrs enabled.
- Fixed a failing hunk.

18 years ago- Improved the default-acls.test.
Wayne Davison [Sat, 4 Feb 2006 20:04:25 +0000 (20:04 +0000)]
- Improved the default-acls.test.
- A couple more chunks of code in options.c needed to only be
  included when compiling with ACLs enabled.
- Fixed a failing hunk.

18 years agoChanged testsuite/default-acls-obey.test to use the new
Wayne Davison [Fri, 3 Feb 2006 18:09:54 +0000 (18:09 +0000)]
Changed testsuite/default-acls-obey.test to use the new
check_perms function.

18 years agoFixed the directory-default code that I broke with my last
Wayne Davison [Fri, 3 Feb 2006 07:02:56 +0000 (07:02 +0000)]
Fixed the directory-default code that I broke with my last
optimization.  Also migrated the setfacl/chmod code that was
in runtests.sh to the trunk.

18 years agoUse the -P option with cvs checkout.
Wayne Davison [Fri, 3 Feb 2006 06:28:33 +0000 (06:28 +0000)]
Use the -P option with cvs checkout.

18 years agoFixed failing hunks.
Wayne Davison [Thu, 2 Feb 2006 11:53:52 +0000 (11:53 +0000)]
Fixed failing hunks.

18 years agoA patch for Service Location Protocol support (derived from a
Wayne Davison [Thu, 2 Feb 2006 11:53:38 +0000 (11:53 +0000)]
A patch for Service Location Protocol support (derived from a
patch found in a SUSE src rpm).

18 years agoModified to work with the new FSOCKERR log code.
Wayne Davison [Thu, 2 Feb 2006 00:34:29 +0000 (00:34 +0000)]
Modified to work with the new FSOCKERR log code.

18 years agoCache the destination-default permissions for each destination
Wayne Davison [Tue, 31 Jan 2006 19:45:18 +0000 (19:45 +0000)]
Cache the destination-default permissions for each destination
directory rather than computing it anew for each file.  Also
silenced some error output in the tests if setfacl isn't found.

18 years agoFixed failing hunks.
Wayne Davison [Tue, 31 Jan 2006 03:35:59 +0000 (03:35 +0000)]
Fixed failing hunks.

18 years ago- Added Matt's changes to lookup directory-default ACLs.
Wayne Davison [Tue, 31 Jan 2006 03:35:20 +0000 (03:35 +0000)]
- Added Matt's changes to lookup directory-default ACLs.
- Fixed failing hunks.

18 years agoGetting rid of this patch since the patch that uses iconv is a
Wayne Davison [Fri, 27 Jan 2006 00:50:01 +0000 (00:50 +0000)]
Getting rid of this patch since the patch that uses iconv is a
better design than this.

18 years agoDecided against this patch in favor of the new --super option.
Wayne Davison [Thu, 26 Jan 2006 11:15:45 +0000 (11:15 +0000)]
Decided against this patch in favor of the new --super option.

18 years agoWe now set the access time on a file that was hard-linked via
Wayne Davison [Thu, 26 Jan 2006 09:25:18 +0000 (09:25 +0000)]
We now set the access time on a file that was hard-linked via
--link-dest (when --atimes was specified, of course).

18 years agoOne way to save 4 bytes of per-file memory.
Wayne Davison [Wed, 25 Jan 2006 19:07:50 +0000 (19:07 +0000)]
One way to save 4 bytes of per-file memory.

18 years ago- Some improvements in the itemized output, including using 'u' and 'U'
Wayne Davison [Tue, 24 Jan 2006 22:59:47 +0000 (22:59 +0000)]
- Some improvements in the itemized output, including using 'u' and 'U'
  for changes in the atime value (chosen because of the -u option to ls).
- Changed the short option from -k to -U (for the same reason).

18 years agoEnhanced the patch to remove the memory penalty when no atimes
Wayne Davison [Tue, 24 Jan 2006 19:40:51 +0000 (19:40 +0000)]
Enhanced the patch to remove the memory penalty when no atimes
are being preserved.  Also fixed a build problem that had crept
into the source and a test problem.

18 years agoChanged the short option from -A to -k (since acls.diff uses -A).
Wayne Davison [Tue, 24 Jan 2006 17:00:19 +0000 (17:00 +0000)]
Changed the short option from -A to -k (since acls.diff uses -A).

18 years agoFixed a problem with the configure script: we need to check
Wayne Davison [Mon, 23 Jan 2006 18:50:15 +0000 (18:50 +0000)]
Fixed a problem with the configure script:  we need to check
$enableval these days, not $withval.

18 years agoFixed failing hunks.
Wayne Davison [Sat, 21 Jan 2006 22:38:35 +0000 (22:38 +0000)]
Fixed failing hunks.