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

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

15 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.

15 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.

15 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.

15 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

15 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.

15 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.

15 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().

15 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.

15 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.

15 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.

15 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.

15 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.

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

15 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.

15 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.

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

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

15 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.

15 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.

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

15 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.

15 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.

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

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

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

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

15 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.

15 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.

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

15 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.

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

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

15 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.

15 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.

15 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".

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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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().

15 years ago- If we return an error because of dry_run being set, we now set errno.
Wayne Davison [Tue, 17 Feb 2004 23:00:00 +0000 (23:00 +0000)]
- If we return an error because of dry_run being set, we now set errno.
- The do_mkstemp() routine now preserves the errno value from fchmod()
  if that call fails.
- Improved the CHECK_RO macro stuff.

15 years agoWe no longer munge a double-leading slash in do_open() because we
Wayne Davison [Tue, 17 Feb 2004 22:49:19 +0000 (22:49 +0000)]
We no longer munge a double-leading slash in do_open() because we
shouldn't generate a path with a double-leading slash anymore.

15 years agoDon't create a pathname that has two leading slashes (which we used
Wayne Davison [Tue, 17 Feb 2004 21:57:44 +0000 (21:57 +0000)]
Don't create a pathname that has two leading slashes (which we used
to do when the root of the transfer was "/").

15 years agoRemove "Conditional -z for old protocols" because those old
J.W. Schultz [Sat, 14 Feb 2004 01:43:24 +0000 (01:43 +0000)]
Remove "Conditional -z for old protocols" because those old
protocols are no longer supported.

15 years agoReordered the items inside the file_struct so that alignment padding
Wayne Davison [Wed, 11 Feb 2004 08:01:21 +0000 (08:01 +0000)]
Reordered the items inside the file_struct so that alignment padding
should be minimized.

15 years agoIf --backup was specified, the links we remove are backed up.
Wayne Davison [Wed, 11 Feb 2004 05:03:04 +0000 (05:03 +0000)]
If --backup was specified, the links we remove are backed up.

15 years ago- Revised and optimized the directory-making code.
Wayne Davison [Wed, 11 Feb 2004 05:02:21 +0000 (05:02 +0000)]
- Revised and optimized the directory-making code.
- Optimized the keep_backup() code.

15 years agoAdded backup_dir_buf and backup_dir_remainder.
Wayne Davison [Wed, 11 Feb 2004 04:30:41 +0000 (04:30 +0000)]
Added backup_dir_buf and backup_dir_remainder.

15 years agoFixed a crash bug when keep_backup() calls make_file() and the lastdir
Wayne Davison [Wed, 11 Feb 2004 02:48:58 +0000 (02:48 +0000)]
Fixed a crash bug when keep_backup() calls make_file() and the lastdir
pointer is no longer valid.

15 years agoGot rid of hard-link message (since I don't think it was ever
Wayne Davison [Wed, 11 Feb 2004 02:33:17 +0000 (02:33 +0000)]
Got rid of hard-link message (since I don't think it was ever
output in older rsync versions).

15 years agoAnother attempt at measuring the minimum alignment for a system.
Wayne Davison [Tue, 10 Feb 2004 23:35:12 +0000 (23:35 +0000)]
Another attempt at measuring the minimum alignment for a system.

15 years agoSimplified test for hardlink in make_backup debug message to
J.W. Schultz [Tue, 10 Feb 2004 23:23:09 +0000 (23:23 +0000)]
Simplified test for hardlink in make_backup debug message to
avoid core-dump.

15 years agoGot rid of useless extern.
Wayne Davison [Tue, 10 Feb 2004 22:56:16 +0000 (22:56 +0000)]
Got rid of useless extern.

15 years agoTrying a different MINALIGN because of core dumps on the sparc-64
Wayne Davison [Tue, 10 Feb 2004 22:28:36 +0000 (22:28 +0000)]
Trying a different MINALIGN because of core dumps on the sparc-64
build-farm machines.

15 years agoRevert pool_alloc's use of bomb if pool == NULL.
J.W. Schultz [Tue, 10 Feb 2004 21:11:24 +0000 (21:11 +0000)]
Revert pool_alloc's use of bomb if pool == NULL.

15 years agoKeep in sync with protocol if idev data on stream but no hlink_pool.
J.W. Schultz [Tue, 10 Feb 2004 21:11:24 +0000 (21:11 +0000)]
Keep in sync with protocol if idev data on stream but no hlink_pool.

15 years agoIf XMIT_HAS_IDEV_DATA is set in receive_file_entry(), we now bomb out
Wayne Davison [Tue, 10 Feb 2004 17:53:52 +0000 (17:53 +0000)]
If XMIT_HAS_IDEV_DATA is set in receive_file_entry(), we now bomb out
if flist->hlink_pool isn't set (instead of neglecting to read the idev
info).

15 years agoIf we call pool_alloc() on a NULL pool, bomb out with an error.
Wayne Davison [Tue, 10 Feb 2004 17:52:31 +0000 (17:52 +0000)]
If we call pool_alloc() on a NULL pool, bomb out with an error.

15 years agoEmpty-line tweaks.
Wayne Davison [Tue, 10 Feb 2004 17:35:04 +0000 (17:35 +0000)]
Empty-line tweaks.

15 years agoChanged a while loop to a for loop.
Wayne Davison [Tue, 10 Feb 2004 17:34:05 +0000 (17:34 +0000)]
Changed a while loop to a for loop.

15 years agoTweaked an if.
Wayne Davison [Tue, 10 Feb 2004 17:28:59 +0000 (17:28 +0000)]
Tweaked an if.

15 years agoChanged flist_init() to use offsetof().
Wayne Davison [Tue, 10 Feb 2004 17:28:31 +0000 (17:28 +0000)]
Changed flist_init() to use offsetof().

15 years agoAdded lib/pool_alloc.h to the HEADERS.
Wayne Davison [Tue, 10 Feb 2004 17:06:11 +0000 (17:06 +0000)]
Added lib/pool_alloc.h to the HEADERS.

15 years agoDropped support for protocol versions less than 20 (2.3.0
J.W. Schultz [Tue, 10 Feb 2004 03:54:47 +0000 (03:54 +0000)]
Dropped support for protocol versions less than 20 (2.3.0
released 15 Mar 1999) and activated warnings for protocols
less than 25 (2.5.0 released 23 Aug 2001)

15 years agoAdded allocation pool code.
J.W. Schultz [Tue, 10 Feb 2004 03:26:41 +0000 (03:26 +0000)]
Added allocation pool code.

15 years agoMake idev, hlink and file_struct + strings use allocation
J.W. Schultz [Tue, 10 Feb 2004 03:23:37 +0000 (03:23 +0000)]
Make idev, hlink and file_struct + strings use allocation
pools.

15 years agoDie if we overflowed the args[] array when building up the remote
Wayne Davison [Mon, 9 Feb 2004 21:22:59 +0000 (21:22 +0000)]
Die if we overflowed the args[] array when building up the remote
command in do_cmd().

15 years agoThe batch-options now set checksum_seed to the appropriate fixed value.
Wayne Davison [Mon, 9 Feb 2004 18:32:54 +0000 (18:32 +0000)]
The batch-options now set checksum_seed to the appropriate fixed value.

15 years agoSet checksum_seed only if it is still zero.
Wayne Davison [Mon, 9 Feb 2004 18:32:53 +0000 (18:32 +0000)]
Set checksum_seed only if it is still zero.

15 years agoMade checksum_seed an extern.
Wayne Davison [Mon, 9 Feb 2004 18:32:52 +0000 (18:32 +0000)]
Made checksum_seed an extern.

15 years agoUse asprintf() in server_options() (plus a few more whitespace tweaks).
Wayne Davison [Mon, 9 Feb 2004 18:10:57 +0000 (18:10 +0000)]
Use asprintf() in server_options() (plus a few more whitespace tweaks).

15 years agoUpdated the sizeof syntax and tweaked some whitespace.
Wayne Davison [Mon, 9 Feb 2004 17:45:22 +0000 (17:45 +0000)]
Updated the sizeof syntax and tweaked some whitespace.

15 years agoGot rid of unused true/false defines.
Wayne Davison [Sat, 7 Feb 2004 18:40:52 +0000 (18:40 +0000)]
Got rid of unused true/false defines.

15 years agoMade a couple comments a little clearer.
Wayne Davison [Sat, 7 Feb 2004 00:12:40 +0000 (00:12 +0000)]
Made a couple comments a little clearer.

15 years agoGot rid of unused string_area struct.
Wayne Davison [Fri, 6 Feb 2004 15:33:15 +0000 (15:33 +0000)]
Got rid of unused string_area struct.

15 years agoStart flist with a more reasonable size, grow it linearly
J.W. Schultz [Fri, 6 Feb 2004 10:00:33 +0000 (10:00 +0000)]
Start flist with a more reasonable size, grow it linearly
once it reaches a largish size (16 million files) and make it
actually match the comments so it may be used to initialize
flists of known size (create_flist_from_batch()).

15 years agoUpdate TODO to reflect recent changes.
J.W. Schultz [Fri, 6 Feb 2004 07:26:15 +0000 (07:26 +0000)]
Update TODO to reflect recent changes.

Hardlink handling is improved.

String area code is gone for other reasons.

15 years agoFixed the indentation in init_flist().
Wayne Davison [Fri, 6 Feb 2004 07:19:57 +0000 (07:19 +0000)]
Fixed the indentation in init_flist().

15 years agoCorrect sizeof usage and other whitespace.
J.W. Schultz [Fri, 6 Feb 2004 04:51:09 +0000 (04:51 +0000)]
Correct sizeof usage and other whitespace.

15 years agoAdded a total memory allocated (allmem) line to
J.W. Schultz [Fri, 6 Feb 2004 01:56:25 +0000 (01:56 +0000)]
Added a total memory allocated (allmem) line to
show_malloc_stats.

15 years agoCause all three processes to report memory stats when -vv --stats
J.W. Schultz [Thu, 5 Feb 2004 03:27:54 +0000 (03:27 +0000)]
Cause all three processes to report memory stats when -vv --stats

15 years agoMention a couple more changes.
Wayne Davison [Thu, 5 Feb 2004 02:56:57 +0000 (02:56 +0000)]
Mention a couple more changes.

15 years agoNow that the long-standing chgrp bug is fixed, go back to -vvv from -vvvv.
Wayne Davison [Thu, 5 Feb 2004 01:37:08 +0000 (01:37 +0000)]
Now that the long-standing chgrp bug is fixed, go back to -vvv from -vvvv.

15 years agoFixed a problem handling GID_NONE in match_gid().
Wayne Davison [Thu, 5 Feb 2004 01:32:38 +0000 (01:32 +0000)]
Fixed a problem handling GID_NONE in match_gid().

15 years ago- Fixed a bug using --numeric-ids as non-root when the receiver
Wayne Davison [Thu, 5 Feb 2004 01:07:23 +0000 (01:07 +0000)]
- Fixed a bug using --numeric-ids as non-root when the receiver
  does not have permissions to set one or more of the gids.
- If the add_[ug]id() routine couldn't find a name for an ID, we
  still note the ID in our list of IDs so that we don't try to
  look it up again (and again).  (The name-less IDs are stripped
  when sending the IDs from the sender to the receiver.)
- Created a better add_to_list() function that handles the linking
  of the new node into the list (rather than the caller doing it).
- Added new internal functions for some receiver-side work that
  needed to be done in multiple places (the recv_add_[ug]id()
  functions).
- We output debug info even for ID mappings that have no names.
  This make the list complete and also notes which gids get
  mapped to -1 (GID_NONE).
- Turned several while loops into for loops.

15 years agoAdded new extern.
Wayne Davison [Thu, 5 Feb 2004 00:46:32 +0000 (00:46 +0000)]
Added new extern.

15 years agoOnly call add_uid() or add_gid() if numeric_ids is not set.
Wayne Davison [Thu, 5 Feb 2004 00:44:11 +0000 (00:44 +0000)]
Only call add_uid() or add_gid() if numeric_ids is not set.

15 years agoMoved a function.
Wayne Davison [Wed, 4 Feb 2004 20:09:21 +0000 (20:09 +0000)]
Moved a function.

15 years agoIf a gid doesn't have a name on the originating system, the receiver
Wayne Davison [Wed, 4 Feb 2004 19:25:11 +0000 (19:25 +0000)]
If a gid doesn't have a name on the originating system, the receiver
won't see it in the list of IDs to remap.  That means that we need to
call the is_in_group() function from inside match_gid() to know if we
can set the group or not (if we're not root).

15 years agoImproved the trailing comment.
Wayne Davison [Wed, 4 Feb 2004 18:24:41 +0000 (18:24 +0000)]
Improved the trailing comment.

15 years agoUse the new HAVE_GETGROUPS define.
Wayne Davison [Wed, 4 Feb 2004 17:49:36 +0000 (17:49 +0000)]
Use the new HAVE_GETGROUPS define.

15 years agoAdded function check for getgroups.
Wayne Davison [Wed, 4 Feb 2004 17:21:48 +0000 (17:21 +0000)]
Added function check for getgroups.

15 years agoUse MY_UID() instead of getuid().
Wayne Davison [Wed, 4 Feb 2004 17:06:07 +0000 (17:06 +0000)]
Use MY_UID() instead of getuid().

15 years agoUse MY_GID() instead of getgid().
Wayne Davison [Wed, 4 Feb 2004 17:05:44 +0000 (17:05 +0000)]
Use MY_GID() instead of getgid().

15 years agoAdded two defines: MY_UID() and MY_GID().
Wayne Davison [Wed, 4 Feb 2004 17:04:58 +0000 (17:04 +0000)]
Added two defines: MY_UID() and MY_GID().