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

20 years agoA couple more minor twiddles.
Wayne Davison [Thu, 1 Apr 2004 20:56:50 +0000 (20:56 +0000)]
A couple more minor twiddles.

20 years agoUpdated the sizeof syntax and trimmed some trailing whitespace.
Wayne Davison [Thu, 1 Apr 2004 20:53:39 +0000 (20:53 +0000)]
Updated the sizeof syntax and trimmed some trailing whitespace.

20 years agoDecided to use "nobody" instead of "guest".
Wayne Davison [Thu, 1 Apr 2004 18:05:40 +0000 (18:05 +0000)]
Decided to use "nobody" instead of "guest".

20 years agoSome more IOERR_VANISHED support.
Wayne Davison [Thu, 1 Apr 2004 18:04:59 +0000 (18:04 +0000)]
Some more IOERR_VANISHED support.

20 years agoImproved the include/exclude example section some more. Document
Wayne Davison [Wed, 31 Mar 2004 18:53:57 +0000 (18:53 +0000)]
Improved the include/exclude example section some more.  Document
the new username default of "guest" if neither USER or LOGNAME is
set in the environment.

20 years agoThe auth_client function must not return without outputting something
Wayne Davison [Wed, 31 Mar 2004 18:52:38 +0000 (18:52 +0000)]
The auth_client function must not return without outputting something
on the socket, so a NULL or empty username now defaults to "guest".

20 years agoDon't complain about a null --suffix if we're the server/sender (since
Wayne Davison [Wed, 31 Mar 2004 17:02:22 +0000 (17:02 +0000)]
Don't complain about a null --suffix if we're the server/sender (since
we might not have received the --backup-dir path from the client).

20 years agoI'm no longer maintaining this. Tell people to use the lists instead.
Martin Pool [Wed, 31 Mar 2004 02:48:47 +0000 (02:48 +0000)]
I'm no longer maintaining this.  Tell people to use the lists instead.

20 years agoThe --files-from option needs to allow a server-sender to sometimes
Wayne Davison [Tue, 30 Mar 2004 02:08:07 +0000 (02:08 +0000)]
The --files-from option needs to allow a server-sender to sometimes
have just 1 arg on the command-line.

20 years agoTry to avoid running on a system that allows us to create devices
Wayne Davison [Mon, 29 Mar 2004 17:02:31 +0000 (17:02 +0000)]
Try to avoid running on a system that allows us to create devices
without being root (like cygwin) because rsync won't copy the
devices if it is not root.

20 years agoIn sigchild_handler(), finish with waitpid() before reinitializing
Wayne Davison [Mon, 29 Mar 2004 16:30:53 +0000 (16:30 +0000)]
In sigchild_handler(), finish with waitpid() before reinitializing
the SIGCHLD handling.

20 years agoAdded one more example to the new include/exclude section to show how
Wayne Davison [Sat, 27 Mar 2004 20:04:04 +0000 (20:04 +0000)]
Added one more example to the new include/exclude section to show how
--relative works with a non-absolute path.

20 years agoMention that certain options treat an absolute path as relative to the
Wayne Davison [Sat, 27 Mar 2004 19:47:27 +0000 (19:47 +0000)]
Mention that certain options treat an absolute path as relative to the
module's "path" dir, even when chroot is off.

20 years agoImproved the "relative to the destination dir" description for
Wayne Davison [Sat, 27 Mar 2004 19:46:28 +0000 (19:46 +0000)]
Improved the "relative to the destination dir" description for
several options.

20 years agoGot rid of debug-output statement.
Wayne Davison [Sat, 27 Mar 2004 19:42:13 +0000 (19:42 +0000)]
Got rid of debug-output statement.

20 years agoTry to make the complexities of includes/excludes a little more clear.
Wayne Davison [Sat, 27 Mar 2004 18:25:41 +0000 (18:25 +0000)]
Try to make the complexities of includes/excludes a little more clear.

20 years agoOptionally sanitize the args in parse_arguments() using the new
Wayne Davison [Sat, 27 Mar 2004 09:46:42 +0000 (09:46 +0000)]
Optionally sanitize the args in parse_arguments() using the new
alloc_sanitize_path() function.

20 years agoAdded alloc_sanitize_path().
Wayne Davison [Sat, 27 Mar 2004 09:44:49 +0000 (09:44 +0000)]
Added alloc_sanitize_path().

20 years agoThe args are now sanitized in parse_arguments() instead of here.
Wayne Davison [Sat, 27 Mar 2004 09:44:01 +0000 (09:44 +0000)]
The args are now sanitized in parse_arguments() instead of here.

20 years agoFixed a crash bug when hlink_list is NULL and a link_u.links
Wayne Davison [Fri, 26 Mar 2004 16:46:20 +0000 (16:46 +0000)]
Fixed a crash bug when hlink_list is NULL and a link_u.links
pointer in one of the file_struct nodes is not.

20 years agoFixed a typo and made a sentence read better.
Wayne Davison [Fri, 26 Mar 2004 15:51:51 +0000 (15:51 +0000)]
Fixed a typo and made a sentence read better.

20 years agoPreparing for release of 2.6.1pre-1 v2.6.1pre1
Wayne Davison [Wed, 24 Mar 2004 21:59:07 +0000 (21:59 +0000)]
Preparing for release of 2.6.1pre-1

20 years agoMoved a few externs and made a couple formatting tweaks.
Wayne Davison [Tue, 23 Mar 2004 16:50:40 +0000 (16:50 +0000)]
Moved a few externs and made a couple formatting tweaks.

20 years agoGot rid of an ancient (and no longer relevant) comment.
Wayne Davison [Tue, 23 Mar 2004 16:36:00 +0000 (16:36 +0000)]
Got rid of an ancient (and no longer relevant) comment.

20 years agoA few formatting tweaks in delete_file().
Wayne Davison [Tue, 23 Mar 2004 16:16:15 +0000 (16:16 +0000)]
A few formatting tweaks in delete_file().

20 years agoFixed the test for sin_len as noted by Shinichi Maruyama. Changed
Wayne Davison [Tue, 16 Mar 2004 01:26:39 +0000 (01:26 +0000)]
Fixed the test for sin_len as noted by Shinichi Maruyama.  Changed
the define name generated for this test and the sa_len test.

20 years agoChanged HAVE_SOCKADDR_SIN_LEN to HAVE_SOCKADDR_IN_LEN.
Wayne Davison [Tue, 16 Mar 2004 01:26:31 +0000 (01:26 +0000)]
Changed HAVE_SOCKADDR_SIN_LEN to HAVE_SOCKADDR_IN_LEN.

20 years agoCheck robust_rename()'s return value using < 0.
Wayne Davison [Sat, 13 Mar 2004 20:18:03 +0000 (20:18 +0000)]
Check robust_rename()'s return value using < 0.

20 years agoMention the changes in the "patches" dir.
Wayne Davison [Wed, 10 Mar 2004 08:32:38 +0000 (08:32 +0000)]
Mention the changes in the "patches" dir.

20 years agoUse CHMOD_BITS instead of ~_S_IFMT.
Wayne Davison [Sun, 7 Mar 2004 20:29:59 +0000 (20:29 +0000)]
Use CHMOD_BITS instead of ~_S_IFMT.

20 years agoImproved an entry.
Wayne Davison [Sat, 6 Mar 2004 20:07:24 +0000 (20:07 +0000)]
Improved an entry.

20 years agoOther files use S_IWUSR instead of S_IWRITE, so use S_IWUSR and S_IRUSR.
Wayne Davison [Sat, 6 Mar 2004 07:45:52 +0000 (07:45 +0000)]
Other files use S_IWUSR instead of S_IWRITE, so use S_IWUSR and S_IRUSR.

20 years agoDefine S_IRUSR if it doesn't already exist.
Wayne Davison [Sat, 6 Mar 2004 07:43:55 +0000 (07:43 +0000)]
Define S_IRUSR if it doesn't already exist.

20 years agoUpdated to version from autoconf 2.59 (2003-10-03).
Wayne Davison [Sat, 6 Mar 2004 07:00:47 +0000 (07:00 +0000)]
Updated to version from autoconf 2.59 (2003-10-03).

20 years agoUpdated to version from autoconf 2.59 (2003-08-18).
Wayne Davison [Sat, 6 Mar 2004 07:00:16 +0000 (07:00 +0000)]
Updated to version from autoconf 2.59 (2003-08-18).

20 years agoMoved out the old news and improved the new.
Wayne Davison [Thu, 4 Mar 2004 19:36:28 +0000 (19:36 +0000)]
Moved out the old news and improved the new.

20 years agoMoved the previous release's NEWS here.
Wayne Davison [Thu, 4 Mar 2004 19:35:57 +0000 (19:35 +0000)]
Moved the previous release's NEWS here.

20 years agoProgress improvement.
Wayne Davison [Sat, 28 Feb 2004 02:02:37 +0000 (02:02 +0000)]
Progress improvement.

20 years agoImproved the progress reporting/E.T.A. using a (slightly modifed)
Wayne Davison [Sat, 28 Feb 2004 02:00:57 +0000 (02:00 +0000)]
Improved the progress reporting/E.T.A. using a (slightly modifed)
patch from Timo Sirainen.

20 years agoGot rid of some superfluous parens.
Wayne Davison [Fri, 27 Feb 2004 08:03:49 +0000 (08:03 +0000)]
Got rid of some superfluous parens.

20 years agoTru64 fix.
Wayne Davison [Fri, 27 Feb 2004 07:37:43 +0000 (07:37 +0000)]
Tru64 fix.

20 years agoUse new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN).
Wayne Davison [Fri, 27 Feb 2004 07:22:40 +0000 (07:22 +0000)]
Use new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN).

20 years agoWe now set HAVE_SOCKADDR_SA_LEN and HAVE_SOCKADDR_SIN_LEN based on
Wayne Davison [Fri, 27 Feb 2004 07:22:39 +0000 (07:22 +0000)]
We now set HAVE_SOCKADDR_SA_LEN and HAVE_SOCKADDR_SIN_LEN based on
sockaddr.sa_len and sockaddr.sin_len, respectively (replacing
HAVE_SOCKADDR_LEN).

20 years agoNo longer needed.
Wayne Davison [Thu, 26 Feb 2004 04:03:44 +0000 (04:03 +0000)]
No longer needed.

20 years agoA couple AC_DEFINE() changes so that we can do without acconfig.h.
Wayne Davison [Thu, 26 Feb 2004 04:03:35 +0000 (04:03 +0000)]
A couple AC_DEFINE() changes so that we can do without acconfig.h.

20 years agoTweaked some comments and some whitespace.
Wayne Davison [Wed, 25 Feb 2004 21:20:59 +0000 (21:20 +0000)]
Tweaked some comments and some whitespace.

20 years agoConfigure addition.
Wayne Davison [Mon, 23 Feb 2004 20:09:14 +0000 (20:09 +0000)]
Configure addition.

20 years agoAllow the default (system) rsyncd.conf file to be specified via configure.
Wayne Davison [Mon, 23 Feb 2004 20:00:20 +0000 (20:00 +0000)]
Allow the default (system) rsyncd.conf file to be specified via configure.

20 years agoTrivial whitespace tweak.
Wayne Davison [Mon, 23 Feb 2004 19:23:53 +0000 (19:23 +0000)]
Trivial whitespace tweak.

20 years agoShouldn't ignore .cvsignore.
Wayne Davison [Mon, 23 Feb 2004 18:19:13 +0000 (18:19 +0000)]
Shouldn't ignore .cvsignore.

20 years agoA couple fixes from Shinichi Maruyama.
Wayne Davison [Mon, 23 Feb 2004 07:03:03 +0000 (07:03 +0000)]
A couple fixes from Shinichi Maruyama.

20 years agoMentioned the recent change in slash handling.
Wayne Davison [Mon, 23 Feb 2004 02:28:04 +0000 (02:28 +0000)]
Mentioned the recent change in slash handling.

20 years agoChanged the literal 9000 into "OPT_REFUSED_BASE".
Wayne Davison [Sun, 22 Feb 2004 08:56:43 +0000 (08:56 +0000)]
Changed the literal 9000 into "OPT_REFUSED_BASE".

20 years agoAnother bug fix.
Wayne Davison [Sat, 21 Feb 2004 21:39:54 +0000 (21:39 +0000)]
Another bug fix.

20 years agoGot rid of the "refuse options" section.
Wayne Davison [Sat, 21 Feb 2004 21:37:14 +0000 (21:37 +0000)]
Got rid of the "refuse options" section.

20 years agoComplain in the daemon log file if there is an unknown option in the
Wayne Davison [Sat, 21 Feb 2004 21:36:55 +0000 (21:36 +0000)]
Complain in the daemon log file if there is an unknown option in the
"refuse options" value.  Also changed the idiom used to mark refused
options in the popt struct.

20 years agoFixed the "refuse options" setting in the daemon after Fabrice Bellet
Wayne Davison [Sat, 21 Feb 2004 21:12:49 +0000 (21:12 +0000)]
Fixed the "refuse options" setting in the daemon after Fabrice Bellet
identified what was wrong.

20 years ago- Guard against and out-of-memory condition.
Wayne Davison [Fri, 20 Feb 2004 17:09:30 +0000 (17:09 +0000)]
- Guard against and out-of-memory condition.
- Don't use the NGROUPS_MAX define.

20 years agoDon't use NGROUPS_MAX define.
Wayne Davison [Fri, 20 Feb 2004 17:01:33 +0000 (17:01 +0000)]
Don't use NGROUPS_MAX define.

20 years agoDon't use ENOMSG -- it's not portable.
Wayne Davison [Wed, 18 Feb 2004 22:33:21 +0000 (22:33 +0000)]
Don't use ENOMSG -- it's not portable.

20 years agoMoved the EXDEV handling into robust_rename().
Wayne Davison [Tue, 17 Feb 2004 23:13:10 +0000 (23:13 +0000)]
Moved the EXDEV handling into robust_rename().