rsync/rsync.git
20 years agoPreparing for release of 2.6.2
Wayne Davison [Fri, 30 Apr 2004 18:03:33 +0000 (18:03 +0000)]
Preparing for release of 2.6.2

20 years agoMention the last few tweaks that made it into 2.6.2.
Wayne Davison [Fri, 30 Apr 2004 17:53:51 +0000 (17:53 +0000)]
Mention the last few tweaks that made it into 2.6.2.

20 years agoImproved the program that checks for broken large-file locking.
Wayne Davison [Fri, 30 Apr 2004 17:38:22 +0000 (17:38 +0000)]
Improved the program that checks for broken large-file locking.

20 years agoDon't rely on the local shell's wildcard expansion to make the test
Wayne Davison [Fri, 30 Apr 2004 17:24:49 +0000 (17:24 +0000)]
Don't rely on the local shell's wildcard expansion to make the test
work right -- it might not be quite as compatible as we need.

20 years agoOnly refer to AI_NUMERICHOST if it is defined.
Wayne Davison [Fri, 30 Apr 2004 16:10:45 +0000 (16:10 +0000)]
Only refer to AI_NUMERICHOST if it is defined.

20 years agoFixed a few typos.
Wayne Davison [Fri, 30 Apr 2004 15:46:41 +0000 (15:46 +0000)]
Fixed a few typos.

20 years agoMention the desire to improve how a daemon returns errors.
Wayne Davison [Thu, 29 Apr 2004 21:12:46 +0000 (21:12 +0000)]
Mention the desire to improve how a daemon returns errors.

20 years agoDescribe the changes for 2.6.2.
Wayne Davison [Thu, 29 Apr 2004 21:09:33 +0000 (21:09 +0000)]
Describe the changes for 2.6.2.

20 years agoPreparing for release of 2.6.2pre1
Wayne Davison [Thu, 29 Apr 2004 20:36:22 +0000 (20:36 +0000)]
Preparing for release of 2.6.2pre1

20 years agoGot rid of unused check for sys/sysctl.h.
Wayne Davison [Thu, 29 Apr 2004 19:40:17 +0000 (19:40 +0000)]
Got rid of unused check for sys/sysctl.h.

20 years agoFixed a sorting problem when an entry has an empty (but not NULL)
Wayne Davison [Thu, 29 Apr 2004 19:37:15 +0000 (19:37 +0000)]
Fixed a sorting problem when an entry has an empty (but not NULL)
dirname (which I had thought impossible, but it appears to occur
with --relative in some instances).

20 years agoRestore old behavior of logging most daemon errors instead of sending
Wayne Davison [Thu, 29 Apr 2004 19:34:31 +0000 (19:34 +0000)]
Restore old behavior of logging most daemon errors instead of sending
them to the user.  This should eventually be improved to duplicate
some of these messages to the user to keep them informed about what
went wrong.

20 years agoUndefined __attribute__ in some circumstances.
Wayne Davison [Wed, 28 Apr 2004 17:35:08 +0000 (17:35 +0000)]
Undefined __attribute__ in some circumstances.

20 years agoFixed the use of an uninitialized variable in map_uid() and map_gid().
Wayne Davison [Wed, 28 Apr 2004 17:31:31 +0000 (17:31 +0000)]
Fixed the use of an uninitialized variable in map_uid() and map_gid().

20 years agoIn copy_file(), check len < 0 before checking the close() return values.
Wayne Davison [Tue, 27 Apr 2004 19:59:37 +0000 (19:59 +0000)]
In copy_file(), check len < 0 before checking the close() return values.

20 years agoCheck the return code from close() and output an error if it
Wayne Davison [Tue, 27 Apr 2004 19:51:33 +0000 (19:51 +0000)]
Check the return code from close() and output an error if it
fails.

20 years agoGot rid of a debug-output statement.
Wayne Davison [Tue, 27 Apr 2004 16:41:33 +0000 (16:41 +0000)]
Got rid of a debug-output statement.

20 years agoPreparing for release of 2.6.1
Wayne Davison [Tue, 27 Apr 2004 03:55:37 +0000 (03:55 +0000)]
Preparing for release of 2.6.1

20 years ago- Tweaked the bullet char so that vim can auto-format the items more
Wayne Davison [Tue, 27 Apr 2004 03:53:28 +0000 (03:53 +0000)]
- Tweaked the bullet char so that vim can auto-format the items more
  easily (and then used vim to re-flow the items).
- Added a mention about the daemon security fix.
- Added the 2.6.1 release date.

20 years ago- Changed XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.
Wayne Davison [Tue, 27 Apr 2004 01:36:16 +0000 (01:36 +0000)]
- Changed XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.
- Got rid of HP-UX kludge (since it didn't help).

20 years agoChanged XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.
Wayne Davison [Tue, 27 Apr 2004 01:36:10 +0000 (01:36 +0000)]
Changed XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.

20 years ago- Changed XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.
Wayne Davison [Tue, 27 Apr 2004 01:36:06 +0000 (01:36 +0000)]
- Changed XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.
- Don't parse comment lines in add_exclude_file() when XFLG_WORD_SPLIT
  is set.

20 years agoGot rid of HP-UX kludge (since it didn't help).
Wayne Davison [Tue, 27 Apr 2004 01:36:00 +0000 (01:36 +0000)]
Got rid of HP-UX kludge (since it didn't help).

20 years agoMade a comment clearer.
Wayne Davison [Tue, 27 Apr 2004 01:00:58 +0000 (01:00 +0000)]
Made a comment clearer.

20 years agoOne more try at getting the HP-UX system in the build farm to compile
Wayne Davison [Sun, 25 Apr 2004 20:36:41 +0000 (20:36 +0000)]
One more try at getting the HP-UX system in the build farm to compile
popt.

20 years agoDon't use __attribute__((__unused__)) on HP-UX w/o gcc.
Wayne Davison [Sun, 25 Apr 2004 16:10:09 +0000 (16:10 +0000)]
Don't use __attribute__((__unused__)) on HP-UX w/o gcc.

20 years agoImproved the debug string for the local_exclude_list.
Wayne Davison [Sat, 24 Apr 2004 08:00:39 +0000 (08:00 +0000)]
Improved the debug string for the local_exclude_list.

20 years agoImproved the EXCLUDE PATTERNS section some more.
Wayne Davison [Sat, 24 Apr 2004 06:16:04 +0000 (06:16 +0000)]
Improved the EXCLUDE PATTERNS section some more.

20 years agoFixed a comment.
Wayne Davison [Fri, 23 Apr 2004 08:09:13 +0000 (08:09 +0000)]
Fixed a comment.

20 years agoMention how --update behaves when the type of the file differs on
Wayne Davison [Fri, 23 Apr 2004 05:14:39 +0000 (05:14 +0000)]
Mention how --update behaves when the type of the file differs on
the source and destination systems.

20 years agoRecently added caveat is no longer true.
Wayne Davison [Fri, 23 Apr 2004 01:33:35 +0000 (01:33 +0000)]
Recently added caveat is no longer true.

20 years agoRestore the old include behavior where a command-line include could
Wayne Davison [Thu, 22 Apr 2004 22:17:15 +0000 (22:17 +0000)]
Restore the old include behavior where a command-line include could
override a .cvsignore exclude.

20 years agoGot rid of a wrong paragraph.
Wayne Davison [Thu, 22 Apr 2004 21:35:45 +0000 (21:35 +0000)]
Got rid of a wrong paragraph.

20 years agoGot rid of a bunch of cruft.
Wayne Davison [Thu, 22 Apr 2004 21:17:58 +0000 (21:17 +0000)]
Got rid of a bunch of cruft.

20 years agoUpdated the default list of cvs-excluded files and added some extra
Wayne Davison [Thu, 22 Apr 2004 18:17:30 +0000 (18:17 +0000)]
Updated the default list of cvs-excluded files and added some extra
info on how the option interacts with other include/exclude rules.

20 years agoAdded "debug_type" to the exclude_list_struct.
Wayne Davison [Thu, 22 Apr 2004 09:58:24 +0000 (09:58 +0000)]
Added "debug_type" to the exclude_list_struct.

20 years agoNo need to pass a debug string to check_exclude() anymore.
Wayne Davison [Thu, 22 Apr 2004 09:58:21 +0000 (09:58 +0000)]
No need to pass a debug string to check_exclude() anymore.

20 years agoNo need to pass a debug string to check_exclude() anymore. When we
Wayne Davison [Thu, 22 Apr 2004 09:58:18 +0000 (09:58 +0000)]
No need to pass a debug string to check_exclude() anymore.  When we
free an exclude list, make sure we don't clear the debug_type string.

20 years agoInitialize the new debug_type string in each exclude list and output
Wayne Davison [Thu, 22 Apr 2004 09:58:15 +0000 (09:58 +0000)]
Initialize the new debug_type string in each exclude list and output
it in a couple extra debug messages.  When we free an exclude list,
make sure we don't clear the debug_type string.

20 years agoChanged check_exclude()'s prototype.
Wayne Davison [Thu, 22 Apr 2004 09:58:11 +0000 (09:58 +0000)]
Changed check_exclude()'s prototype.

20 years agoThe debug output for add_exclude() now needs to limit the pattern to
Wayne Davison [Thu, 22 Apr 2004 08:41:03 +0000 (08:41 +0000)]
The debug output for add_exclude() now needs to limit the pattern to
print only "pat_len" chars.

20 years agoA couple minor text improvements.
Wayne Davison [Mon, 19 Apr 2004 17:52:39 +0000 (17:52 +0000)]
A couple minor text improvements.

20 years agoMentioned the better handling of option paths when a daemon is not
Wayne Davison [Sun, 18 Apr 2004 06:29:06 +0000 (06:29 +0000)]
Mentioned the better handling of option paths when a daemon is not
running with chroot enabled.

20 years agoMade the device-changes section agree with the latest code.
Wayne Davison [Sat, 17 Apr 2004 19:58:12 +0000 (19:58 +0000)]
Made the device-changes section agree with the latest code.

20 years agoPreparing for release of 2.6.1pre-2
Wayne Davison [Sat, 17 Apr 2004 18:40:16 +0000 (18:40 +0000)]
Preparing for release of 2.6.1pre-2

20 years agoMention that --from0 does not affect --cvs-exclude's reading of the
Wayne Davison [Sat, 17 Apr 2004 18:12:33 +0000 (18:12 +0000)]
Mention that --from0 does not affect --cvs-exclude's reading of the
.cvsignore files.

20 years agoIn add_exclude_file(), if we're word-splitting, stop reading a "line"
Wayne Davison [Sat, 17 Apr 2004 17:55:45 +0000 (17:55 +0000)]
In add_exclude_file(), if we're word-splitting, stop reading a "line"
at any whitespace (so that we don't overflow the line buffer).

20 years agoThe inode and dev values in the idev struct are now uint64.
Wayne Davison [Sat, 17 Apr 2004 17:14:16 +0000 (17:14 +0000)]
The inode and dev values in the idev struct are now uint64.

20 years agoChanged the dev handling for -H back to using an opaque 64-bit
Wayne Davison [Sat, 17 Apr 2004 17:14:12 +0000 (17:14 +0000)]
Changed the dev handling for -H back to using an opaque 64-bit
integer instead of trying to transfer it as separate major & minor
values.  Since the value is not interpreted by the receiving side
(just compared for equality), this is a safer way to go.

20 years agoUse "uint64" instead of INO64_T (which is now gone).
Wayne Davison [Sat, 17 Apr 2004 17:07:23 +0000 (17:07 +0000)]
Use "uint64" instead of INO64_T (which is now gone).

20 years agoFixed alloc_sanitize_path()'s handling of a rootdir == "/" (the old
Wayne Davison [Sat, 17 Apr 2004 17:06:03 +0000 (17:06 +0000)]
Fixed alloc_sanitize_path()'s handling of a rootdir == "/" (the old
code would generate a string that started with "//" instead of "/").

20 years agoDon't say "skipped" if the file is just not being transferred (i.e.
Wayne Davison [Thu, 15 Apr 2004 18:32:24 +0000 (18:32 +0000)]
Don't say "skipped" if the file is just not being transferred (i.e.
when other updates, such as owner/permissions/etc. might be made).

20 years agoMention exclude improvements.
Wayne Davison [Thu, 15 Apr 2004 18:23:52 +0000 (18:23 +0000)]
Mention exclude improvements.

20 years agoGot rid of a couple useless lines.
Wayne Davison [Thu, 15 Apr 2004 18:22:56 +0000 (18:22 +0000)]
Got rid of a couple useless lines.

20 years agoMoved some externs.
Wayne Davison [Thu, 15 Apr 2004 16:55:23 +0000 (16:55 +0000)]
Moved some externs.

20 years agoGot rid of zlib/dummy ("dummy" is in the zlib .cvsignore, where it
Wayne Davison [Thu, 15 Apr 2004 06:54:14 +0000 (06:54 +0000)]
Got rid of zlib/dummy ("dummy" is in the zlib .cvsignore, where it
should be).

20 years agoOur exclude lists are now comprised of a base structure with a head
Wayne Davison [Wed, 14 Apr 2004 23:33:40 +0000 (23:33 +0000)]
Our exclude lists are now comprised of a base structure with a head
and a tail pointer pointing to a linked list of items (rather than
an array of pointers that has to be reallocated all the time).

20 years agoAdded a "next" pointer to "exclude_struct" and added a new structure
Wayne Davison [Wed, 14 Apr 2004 23:33:37 +0000 (23:33 +0000)]
Added a "next" pointer to "exclude_struct" and added a new structure
for exclude lists, exclude_list_struct, that holds the head/tail
pointers for the list.

20 years agoUpdated the exclude-list code to handle the new linked-list
Wayne Davison [Wed, 14 Apr 2004 23:33:34 +0000 (23:33 +0000)]
Updated the exclude-list code to handle the new linked-list
structure format.

20 years agoUpdated the exclude-list code to handle the new linked-list
Wayne Davison [Wed, 14 Apr 2004 23:33:34 +0000 (23:33 +0000)]
Updated the exclude-list code to handle the new linked-list
structure format.

20 years agoUpdated stub version of check_exclude().
Wayne Davison [Wed, 14 Apr 2004 22:49:54 +0000 (22:49 +0000)]
Updated stub version of check_exclude().

20 years agoAdded a description arg to check_exclude().
Wayne Davison [Wed, 14 Apr 2004 21:59:45 +0000 (21:59 +0000)]
Added a description arg to check_exclude().

20 years agoThe check_exclude() and report_exclude_result() functions now take a
Wayne Davison [Wed, 14 Apr 2004 21:59:41 +0000 (21:59 +0000)]
The check_exclude() and report_exclude_result() functions now take a
description string that describes what kind of an include/exclude is
happening (which only gets output when verbose is set to 2 or more).

20 years agoImproved the exclude testing by adding tests that exercise --cvs-exclude
Wayne Davison [Wed, 14 Apr 2004 20:50:32 +0000 (20:50 +0000)]
Improved the exclude testing by adding tests that exercise --cvs-exclude
and --delete-excluded.

20 years agoMoved (and expanded) a verbose message from clientserver.c to socket.c
Wayne Davison [Wed, 14 Apr 2004 16:51:48 +0000 (16:51 +0000)]
Moved (and expanded) a verbose message from clientserver.c to socket.c
to solve an old FIXME comment.

20 years agoFixed a potential problem parsing the "!" token from a word-split string.
Wayne Davison [Tue, 13 Apr 2004 19:07:21 +0000 (19:07 +0000)]
Fixed a potential problem parsing the "!" token from a word-split string.

20 years agoA few more improvements to get_exclude_tok() and add_exclude().
Wayne Davison [Tue, 13 Apr 2004 18:35:08 +0000 (18:35 +0000)]
A few more improvements to get_exclude_tok() and add_exclude().

20 years agoAdded an example for --link-dest.
Wayne Davison [Tue, 13 Apr 2004 00:32:58 +0000 (00:32 +0000)]
Added an example for --link-dest.

20 years agoUpdated with latest news and some spelling mistakes corrected.
Wayne Davison [Mon, 12 Apr 2004 18:03:08 +0000 (18:03 +0000)]
Updated with latest news and some spelling mistakes corrected.

20 years agoReplaced MISSING_OK, MISSING_FATAL, ADD_INCLUDE, and ADD_EXCLUDE with
Wayne Davison [Mon, 12 Apr 2004 17:42:35 +0000 (17:42 +0000)]
Replaced MISSING_OK, MISSING_FATAL, ADD_INCLUDE, and ADD_EXCLUDE with
some new XFLG_* values (for the add_exclude*() function).

20 years ago- add_exclude() now takes a flag int and can optionally word-split
Wayne Davison [Mon, 12 Apr 2004 17:42:32 +0000 (17:42 +0000)]
- add_exclude() now takes a flag int and can optionally word-split
  items and/or ignore +/- prefixes.
- add_exclude_file() changed to take the same flags as add_exclude().
- add_exclude_line() was removed since add_exclude() can now do its job.
- make_exclude() now takes a size-limited string without a +/- prefix.
- add_cvs_excludes() was changed to word-split the items that come from
  a .cvsignore file, and to ignore all +/- prefixes in all the ignore
  sources.  Since CVS doesn't check if its ignore items are directories,
  the dir-names (e.g. SCCS, CVS, etc.) no longer have a trailing slash
  (making our excludes match CVS's ignores more exactly).

20 years agoUse the new XFLG_* flags to call the add_exclude*() functions.
Wayne Davison [Mon, 12 Apr 2004 17:42:29 +0000 (17:42 +0000)]
Use the new XFLG_* flags to call the add_exclude*() functions.

20 years agoNo need to cast st.st_rdev to DEV64_T anymore.
Wayne Davison [Mon, 12 Apr 2004 16:52:43 +0000 (16:52 +0000)]
No need to cast st.st_rdev to DEV64_T anymore.

20 years ago- Use dev_t instead of DEV64_T.
Wayne Davison [Mon, 12 Apr 2004 16:52:40 +0000 (16:52 +0000)]
- Use dev_t instead of DEV64_T.
- Changed rdev_high to rdev_major.
- Use major(), minor(), and makedev() to manipulate device numbers.
- Send the major and minor values separately in protocol 28 and beyond.

20 years ago- Got rid of DEV64_T and changed the internal device variables to dev_t.
Wayne Davison [Mon, 12 Apr 2004 16:52:37 +0000 (16:52 +0000)]
- Got rid of DEV64_T and changed the internal device variables to dev_t.
- Changed XMIT_SAME_HIGH_RDEV to XMIT_SAME_RDEV_MAJOR.
- Added XMIT_RDEV_MINOR_IS_SMALL.

20 years agoFixed a bug where an exclude name that got sent over the wire could get
Wayne Davison [Sat, 10 Apr 2004 10:31:11 +0000 (10:31 +0000)]
Fixed a bug where an exclude name that got sent over the wire could get
an extra "- " or "+ " parsed off the start of the name (i.e. we have to
quote excluded names that start with those strings with an extra "- "
at the start).

20 years agoUNUSED() misbehaves on HP-UX, not AIX.
Wayne Davison [Fri, 9 Apr 2004 22:25:33 +0000 (22:25 +0000)]
UNUSED() misbehaves on HP-UX, not AIX.

20 years agoAIX doesn't like our UNUSED() macro, so let's eliminate it for them.
Wayne Davison [Fri, 9 Apr 2004 21:51:34 +0000 (21:51 +0000)]
AIX doesn't like our UNUSED() macro, so let's eliminate it for them.

20 years agoSilence compiler warnings on Solaris.
Wayne Davison [Fri, 9 Apr 2004 20:22:44 +0000 (20:22 +0000)]
Silence compiler warnings on Solaris.

20 years agoMissed one void-pointer-arithmetic case.
Wayne Davison [Fri, 9 Apr 2004 20:17:01 +0000 (20:17 +0000)]
Missed one void-pointer-arithmetic case.

20 years agoAIX's cc was complaining about the void* arithmetic.
Wayne Davison [Fri, 9 Apr 2004 19:53:50 +0000 (19:53 +0000)]
AIX's cc was complaining about the void* arithmetic.

20 years agoRemoved debug code.
Wayne Davison [Fri, 9 Apr 2004 19:18:34 +0000 (19:18 +0000)]
Removed debug code.

20 years agoChanged sysmacros.h to sys/sysmacros.h.
Wayne Davison [Fri, 9 Apr 2004 19:04:03 +0000 (19:04 +0000)]
Changed sysmacros.h to sys/sysmacros.h.

20 years agoAdded some test code to assist in the remote debugging of the build
Wayne Davison [Fri, 9 Apr 2004 18:36:01 +0000 (18:36 +0000)]
Added some test code to assist in the remote debugging of the build
farm's Solaris machines.

20 years agoUse MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.
Wayne Davison [Fri, 9 Apr 2004 18:10:03 +0000 (18:10 +0000)]
Use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.

20 years agoUse AC_HEADER_MAJOR for better makedev/major/minor determination.
Wayne Davison [Fri, 9 Apr 2004 18:09:16 +0000 (18:09 +0000)]
Use AC_HEADER_MAJOR for better makedev/major/minor determination.

20 years agoInclude <sys/mkdev.h> if it exists.
Wayne Davison [Fri, 9 Apr 2004 17:59:50 +0000 (17:59 +0000)]
Include <sys/mkdev.h> if it exists.

20 years agoAdded sys/mkdev.h to the searched-for headers.
Wayne Davison [Fri, 9 Apr 2004 17:56:58 +0000 (17:56 +0000)]
Added sys/mkdev.h to the searched-for headers.

20 years agoAdded a couple extra character devices to be copied.
Wayne Davison [Fri, 9 Apr 2004 00:36:45 +0000 (00:36 +0000)]
Added a couple extra character devices to be copied.

20 years agoIf we're listing a device, output the major and minor device numbers.
Wayne Davison [Fri, 9 Apr 2004 00:33:34 +0000 (00:33 +0000)]
If we're listing a device, output the major and minor device numbers.

20 years agoSimplify the setting of rdev & rdev_high in send_file_entry().
Wayne Davison [Thu, 8 Apr 2004 23:15:39 +0000 (23:15 +0000)]
Simplify the setting of rdev & rdev_high in send_file_entry().

20 years agoFixed a bug in the sending of rdev when the high-bits match.
Wayne Davison [Thu, 8 Apr 2004 23:05:36 +0000 (23:05 +0000)]
Fixed a bug in the sending of rdev when the high-bits match.

20 years agoExplicitly cast our ~0xFF mask using ~(DEV64_T)0xFF, just to be sure
Wayne Davison [Thu, 8 Apr 2004 21:51:49 +0000 (21:51 +0000)]
Explicitly cast our ~0xFF mask using ~(DEV64_T)0xFF, just to be sure
(sign-extention would have probably made the former work OK).

20 years agoMention the rsync-daemon fix for --sufix=''.
Wayne Davison [Wed, 7 Apr 2004 23:13:02 +0000 (23:13 +0000)]
Mention the rsync-daemon fix for --sufix=''.

20 years agoIf --daemon was specified, exit the option-parsing code before
Wayne Davison [Wed, 7 Apr 2004 23:09:14 +0000 (23:09 +0000)]
If --daemon was specified, exit the option-parsing code before
adjusting various default values (the real defaults will get
set when the client's options arrive).

20 years agoAdded a couple missing items.
Wayne Davison [Mon, 5 Apr 2004 15:05:46 +0000 (15:05 +0000)]
Added a couple missing items.

20 years agoDecided against "Source root" in the exclude/include examples.
Wayne Davison [Sat, 3 Apr 2004 20:47:54 +0000 (20:47 +0000)]
Decided against "Source root" in the exclude/include examples.

20 years agoMentioned the CoW improvement and got rid of a bug-fix mention that
Wayne Davison [Sat, 3 Apr 2004 18:13:51 +0000 (18:13 +0000)]
Mentioned the CoW improvement and got rid of a bug-fix mention that
was for a bug introduced during the 2.6.1 developement.

20 years agoUse getaddrinfo() to figure out if a numeric address is IPv4 or IPv6.
Wayne Davison [Thu, 1 Apr 2004 21:39:35 +0000 (21:39 +0000)]
Use getaddrinfo() to figure out if a numeric address is IPv4 or IPv6.

20 years agoLast of the cleanup before the patching starts.
Wayne Davison [Thu, 1 Apr 2004 21:08:24 +0000 (21:08 +0000)]
Last of the cleanup before the patching starts.