rsync/rsync.git
19 years agoMade full_fname()'s char-pointer arg const.
Wayne Davison [Mon, 24 May 2004 08:10:22 +0000 (08:10 +0000)]
Made full_fname()'s char-pointer arg const.

19 years ago- Properly quote the $excl references.
Wayne Davison [Mon, 24 May 2004 00:16:07 +0000 (00:16 +0000)]
- Properly quote the $excl references.
- Moved the creation of our .cvsignore exclude file.

19 years agoImproved the depth calculation in sanitize_path() so that it properly
Wayne Davison [Sun, 23 May 2004 23:46:56 +0000 (23:46 +0000)]
Improved the depth calculation in sanitize_path() so that it properly
handles a trailing slash, a leading slash, and an empty string.

19 years agoMoved a couple lines.
Wayne Davison [Sat, 22 May 2004 19:29:53 +0000 (19:29 +0000)]
Moved a couple lines.

19 years agoA few minor improvements to the existing items.
Wayne Davison [Sat, 22 May 2004 19:24:24 +0000 (19:24 +0000)]
A few minor improvements to the existing items.

19 years agoFixed a typo in the sending of the --checksum-seed option to the server.
Wayne Davison [Sat, 22 May 2004 06:09:22 +0000 (06:09 +0000)]
Fixed a typo in the sending of the --checksum-seed option to the server.

19 years agoFixed the comment for get_exclude_tok().
Wayne Davison [Sat, 22 May 2004 05:32:20 +0000 (05:32 +0000)]
Fixed the comment for get_exclude_tok().

19 years agoTweaked the alloc/realloc code in flist_expand().
Wayne Davison [Fri, 21 May 2004 23:22:14 +0000 (23:22 +0000)]
Tweaked the alloc/realloc code in flist_expand().

19 years agoTell rsync to preserve permissions.
Wayne Davison [Fri, 21 May 2004 10:06:09 +0000 (10:06 +0000)]
Tell rsync to preserve permissions.

19 years agoAnother new option.
Wayne Davison [Fri, 21 May 2004 10:00:21 +0000 (10:00 +0000)]
Another new option.

19 years agoGot rid of a compiler warning (which was only output by certain
Wayne Davison [Fri, 21 May 2004 09:59:49 +0000 (09:59 +0000)]
Got rid of a compiler warning (which was only output by certain
compilers).

19 years agoAdded the --checksum-seed option.
Wayne Davison [Fri, 21 May 2004 09:44:32 +0000 (09:44 +0000)]
Added the --checksum-seed option.

19 years ago- Improved option_error() to make sure that the user sees the error in
Wayne Davison [Fri, 21 May 2004 09:41:38 +0000 (09:41 +0000)]
- Improved option_error() to make sure that the user sees the error in
  daemon mode.
- Got rid of some repetitious outputting of the same error-message.

19 years agoDocument a couple more changes.
Wayne Davison [Fri, 21 May 2004 09:29:17 +0000 (09:29 +0000)]
Document a couple more changes.

19 years agoIf --backup was specified without a --backup-dir, don't preserve the
Wayne Davison [Fri, 21 May 2004 08:43:03 +0000 (08:43 +0000)]
If --backup was specified without a --backup-dir, don't preserve the
directory timestamps.

19 years agoMoved a few externs.
Wayne Davison [Fri, 21 May 2004 08:40:25 +0000 (08:40 +0000)]
Moved a few externs.

19 years agoChanged sum_init() to take a seed value as an arg instead of always
Wayne Davison [Fri, 21 May 2004 08:27:04 +0000 (08:27 +0000)]
Changed sum_init() to take a seed value as an arg instead of always
using checksum_init.  This fixes an authentication problem in server
mode (as pointed out by Craig Barratt).

19 years ago- Mention the change to the daemon-mode's exclude handling.
Wayne Davison [Wed, 19 May 2004 22:20:56 +0000 (22:20 +0000)]
- Mention the change to the daemon-mode's exclude handling.
- Mention the new "write only" daemon-config option.
- Fixed another entry to refer to the right files.

19 years agoAdded the "write only" option to the daemon config file.
Wayne Davison [Wed, 19 May 2004 22:19:19 +0000 (22:19 +0000)]
Added the "write only" option to the daemon config file.

19 years agoA few minor text improvements.
Wayne Davison [Tue, 18 May 2004 09:54:52 +0000 (09:54 +0000)]
A few minor text improvements.

19 years agoAdded a little more quoting.
Wayne Davison [Tue, 18 May 2004 09:47:42 +0000 (09:47 +0000)]
Added a little more quoting.

19 years agoOutput a message when we skip a server-excluded file.
Wayne Davison [Tue, 18 May 2004 08:50:17 +0000 (08:50 +0000)]
Output a message when we skip a server-excluded file.

19 years agoDocument the latest changes.
Wayne Davison [Tue, 18 May 2004 01:13:14 +0000 (01:13 +0000)]
Document the latest changes.

19 years ago- Use fromdir, todir, and tmpdir instead of FROM, TO, and TMP.
Wayne Davison [Tue, 18 May 2004 00:41:55 +0000 (00:41 +0000)]
- Use fromdir, todir, and tmpdir instead of FROM, TO, and TMP.
- Added chkdir.
- Quote the dir expansions to avoid problems with spaces.
- Added "exclude = foobar.baz" the the rsync.conf file we create.

19 years agoTest that a config-file-specified exclude works right.
Wayne Davison [Tue, 18 May 2004 00:41:51 +0000 (00:41 +0000)]
Test that a config-file-specified exclude works right.

19 years agoQuote the dir expansions to avoid problems with spaces.
Wayne Davison [Tue, 18 May 2004 00:41:49 +0000 (00:41 +0000)]
Quote the dir expansions to avoid problems with spaces.

19 years ago- Use fromdir and todir instead of FROM and TO.
Wayne Davison [Tue, 18 May 2004 00:41:46 +0000 (00:41 +0000)]
- Use fromdir and todir instead of FROM and TO.
- Quote the dir expansions to avoid problems with spaces.

19 years ago- Use $suitedir to find rsync.fns.
Wayne Davison [Tue, 18 May 2004 00:41:43 +0000 (00:41 +0000)]
- Use $suitedir to find rsync.fns.
- Use tmpdir instead of TMP.

19 years agoUse $suitedir to find rsync.fns.
Wayne Davison [Tue, 18 May 2004 00:41:40 +0000 (00:41 +0000)]
Use $suitedir to find rsync.fns.

19 years ago- Use $suitedir to find rsync.fns.
Wayne Davison [Tue, 18 May 2004 00:41:38 +0000 (00:41 +0000)]
- Use $suitedir to find rsync.fns.
- The values of fromdir, todir, and chkdir are already set.

19 years ago- Use $suitedir to find rsync.fns.
Wayne Davison [Tue, 18 May 2004 00:41:35 +0000 (00:41 +0000)]
- Use $suitedir to find rsync.fns.
- The values of fromdir and todir are already set.

19 years agoRemoving obsoleted test.sh file (we used the runtests.sh framework for
Wayne Davison [Tue, 18 May 2004 00:32:36 +0000 (00:32 +0000)]
Removing obsoleted test.sh file (we used the runtests.sh framework for
some time now).

19 years agoIf the server has excluded a file, we now exclude it from being
Wayne Davison [Tue, 18 May 2004 00:14:10 +0000 (00:14 +0000)]
If the server has excluded a file, we now exclude it from being
uploaded as well as downloaded.

19 years agoRenamed free_exclude_list() to clear_exclude_list().
Wayne Davison [Sun, 16 May 2004 23:54:12 +0000 (23:54 +0000)]
Renamed free_exclude_list() to clear_exclude_list().

19 years agoMoved the setting of ret->match_flags up a little in make_exclude().
Wayne Davison [Sun, 16 May 2004 14:08:34 +0000 (14:08 +0000)]
Moved the setting of ret->match_flags up a little in make_exclude().

19 years ago- Save some memory in each exclude_struct item by dumping the "include"
Wayne Davison [Sun, 16 May 2004 07:28:24 +0000 (07:28 +0000)]
- Save some memory in each exclude_struct item by dumping the "include"
  and "directory" ints and using bits in the match_flags value instead.
- Added defines for the new match-flag values, including a new one that
  lets get_exclude_tok() properly return an indication that it parsed
  the list-clearing token.

19 years ago- Switched the "include" and "directory" ints into bits in match_flags.
Wayne Davison [Sun, 16 May 2004 07:28:21 +0000 (07:28 +0000)]
- Switched the "include" and "directory" ints into bits in match_flags.
- Made some length vars unsigned.

19 years ago- Improved rsyserr() to prefix RSYNC_NAME (as the TODO requested),
Wayne Davison [Sat, 15 May 2004 19:31:16 +0000 (19:31 +0000)]
- Improved rsyserr() to prefix RSYNC_NAME (as the TODO requested),
  to construct the string in a better manner, and to have a buffer
  big enough to hold a full MAXPATHLEN filename plus some error
  text.
- Fixed some comments referring to vsprintf() returning -1 -- our
  configuration process now ensures that we replace such a function
  with our own lib version.

19 years ago- Complain about an exclude that was too long and then dump it
Wayne Davison [Sat, 15 May 2004 19:31:13 +0000 (19:31 +0000)]
- Complain about an exclude that was too long and then dump it
  (used to be silently truncated).
- Include extra space in our exclude-reading buffers so that we
  can fit a 2-char prefix and a trailing slash and still handle
  a MAXPATHLEN name.

19 years agoChanged rprintf() calls that included strerror() to use rsyserr().
Wayne Davison [Sat, 15 May 2004 19:31:10 +0000 (19:31 +0000)]
Changed rprintf() calls that included strerror() to use rsyserr().

19 years agoChanged rprintf() calls that included strerror() to use rsyserr().
Wayne Davison [Sat, 15 May 2004 19:31:10 +0000 (19:31 +0000)]
Changed rprintf() calls that included strerror() to use rsyserr().

19 years agoAdded rsyserr().
Wayne Davison [Sat, 15 May 2004 19:31:05 +0000 (19:31 +0000)]
Added rsyserr().

19 years agoWhitespace tweaks.
Wayne Davison [Sat, 15 May 2004 19:09:42 +0000 (19:09 +0000)]
Whitespace tweaks.

19 years agoChanging if (!write_batch) in front of send_exclude_list() to
Wayne Davison [Sat, 15 May 2004 18:51:21 +0000 (18:51 +0000)]
Changing if (!write_batch) in front of send_exclude_list() to
if (!read_batch) -- fixes hang.

19 years agoAdded a "gen" rule to remake various generated files: configure,
Wayne Davison [Sat, 15 May 2004 00:48:11 +0000 (00:48 +0000)]
Added a "gen" rule to remake various generated files: configure,
config.h.in, proto.h, rsync.1, and rsyncd.conf.5 .

19 years agoIn the debug output, distinguish between a user-requested clearing
Wayne Davison [Fri, 14 May 2004 21:23:41 +0000 (21:23 +0000)]
In the debug output, distinguish between a user-requested clearing
of the exclude list and the popping of the local exclude list that
occurs when we finish each subdir.

19 years agoChanged PERMS_SKIP_TIME to PERMS_SKIP_MTIME.
Wayne Davison [Thu, 13 May 2004 18:51:22 +0000 (18:51 +0000)]
Changed PERMS_SKIP_TIME to PERMS_SKIP_MTIME.

19 years agoGot rid of some useless externs.
Wayne Davison [Thu, 13 May 2004 18:41:17 +0000 (18:41 +0000)]
Got rid of some useless externs.

19 years agoThe finish_transfer() call takes an arg that specifies if we should set the
Wayne Davison [Thu, 13 May 2004 07:08:25 +0000 (07:08 +0000)]
The finish_transfer() call takes an arg that specifies if we should set the
modtime or not on the finished file.  It calls set_perms(), which now takes a
flag arg that allows us to specify if we want to skip the modtime modification.

19 years agoIf the file did not transfer correctly, only save it if --partial was
Wayne Davison [Thu, 13 May 2004 07:08:22 +0000 (07:08 +0000)]
If the file did not transfer correctly, only save it if --partial was
specified.  We also skip the setting of the modtime too on a partial
copy (that way the partial file won't be confused with an up-to-date
copy of the original).

19 years agoCall finish_transfer() with its new arg. Also put the externs
Wayne Davison [Thu, 13 May 2004 07:08:18 +0000 (07:08 +0000)]
Call finish_transfer() with its new arg.  Also put the externs
at the top and got rid of some trailing whitespace.

19 years agoUse the new PERMS_REPORT flag when calling set_perms().
Wayne Davison [Thu, 13 May 2004 06:55:01 +0000 (06:55 +0000)]
Use the new PERMS_REPORT flag when calling set_perms().

19 years agoAdded PERMS_REPORT and PERMS_SKIP_TIME.
Wayne Davison [Thu, 13 May 2004 06:53:23 +0000 (06:53 +0000)]
Added PERMS_REPORT and PERMS_SKIP_TIME.

19 years agoIf we got a read-error on a file, make sure that the whole-file
Wayne Davison [Thu, 13 May 2004 06:46:20 +0000 (06:46 +0000)]
If we got a read-error on a file, make sure that the whole-file
checksum we send to the receiver is wrong (so they won't save
the bogus file).

19 years agoDon't force the modtime on our backup dirs -- the dirs in the
Wayne Davison [Thu, 13 May 2004 06:34:03 +0000 (06:34 +0000)]
Don't force the modtime on our backup dirs -- the dirs in the
backup hierarchy should have their own timestamps.

19 years agoIn send_files(), changed the name of the map_struct variable from
Wayne Davison [Tue, 11 May 2004 19:53:16 +0000 (19:53 +0000)]
In send_files(), changed the name of the map_struct variable from
"buf" to "mbuf" (so that it wouldn't be so similar to the "buff"
variable nor use a name that is more typically a char* buffer).

19 years agoUse memset() to initialize a new map_struct.
Wayne Davison [Tue, 11 May 2004 19:46:56 +0000 (19:46 +0000)]
Use memset() to initialize a new map_struct.

19 years agoGot rid of an unused extern.
Wayne Davison [Tue, 11 May 2004 17:25:16 +0000 (17:25 +0000)]
Got rid of an unused extern.

19 years agoGot rid of unused externs.
Wayne Davison [Tue, 11 May 2004 17:25:01 +0000 (17:25 +0000)]
Got rid of unused externs.

19 years agoLet's just remove all the UNUSED() macros for now.
Wayne Davison [Sat, 8 May 2004 22:49:58 +0000 (22:49 +0000)]
Let's just remove all the UNUSED() macros for now.

19 years agoChanged the non-globbing version of glob_expand_one() so that it
Wayne Davison [Sat, 8 May 2004 20:03:39 +0000 (20:03 +0000)]
Changed the non-globbing version of glob_expand_one() so that it
checks the maxargs argument instead of leaving it unused.

19 years agoOne more attempt to get HP-UX's cc to build popt successfully.
Wayne Davison [Sat, 8 May 2004 19:50:22 +0000 (19:50 +0000)]
One more attempt to get HP-UX's cc to build popt successfully.

19 years agoImproved a comment and got rid of some trailing whitespace.
Wayne Davison [Sat, 8 May 2004 19:37:28 +0000 (19:37 +0000)]
Improved a comment and got rid of some trailing whitespace.

19 years agoTweaked the sizeof syntax and some multi-statement lines.
Wayne Davison [Sat, 8 May 2004 19:26:53 +0000 (19:26 +0000)]
Tweaked the sizeof syntax and some multi-statement lines.

19 years agoChanged the order of the msgcode enum so that new items now get added
Wayne Davison [Sat, 8 May 2004 18:48:09 +0000 (18:48 +0000)]
Changed the order of the msgcode enum so that new items now get added
at the start (which avoids the need for trailing-comma changes on old
entries when new ones are added).

19 years ago- Improved the get_secret()'s function comments, made it accept a line
Wayne Davison [Sat, 8 May 2004 18:18:42 +0000 (18:18 +0000)]
- Improved the get_secret()'s function comments, made it accept a line
  that doesn't end with a newline, and optimized it a bit.
- Improved getpassf() to work if the line does not end with a newline.

19 years agoImproved the function comments for read_line() and slightly tweaked
Wayne Davison [Sat, 8 May 2004 18:03:43 +0000 (18:03 +0000)]
Improved the function comments for read_line() and slightly tweaked
its code.  Also changed "IO" to "I/O" in various comments.

19 years agoDocument the -4, -6, --ipv4, --ipv6 options.
Wayne Davison [Fri, 7 May 2004 00:18:37 +0000 (00:18 +0000)]
Document the -4, -6, --ipv4, --ipv6 options.

19 years agoCorrect a typo.
Wayne Davison [Thu, 6 May 2004 21:29:36 +0000 (21:29 +0000)]
Correct a typo.

19 years ago- Updated the comments for open_socket_in().
Wayne Davison [Thu, 6 May 2004 21:26:46 +0000 (21:26 +0000)]
- Updated the comments for open_socket_in().
- Changed open_socket_in() to return an array of ints with a trailing -1
  value to indicate the end of the list.
- Use the out_of_memory() routine to complain about no memory.
- Undid the recent IPV6_V6ONLY change, as I think it would prevent the
  use of IPv6 sockets on some older systems.
- If we get an EADDRINUSE error and this is not the first socket in the
  list, suggest that the user try --ipv4 or --ipv6.
- When forking, the child now closes all the open bound sockets, not just
  one of them (I'm not talking about the fd from accept(), obviously).

19 years agoIntroduced long-option names for -4 and -6.
Wayne Davison [Thu, 6 May 2004 21:08:01 +0000 (21:08 +0000)]
Introduced long-option names for -4 and -6.

19 years agoIf we need to set IPV6_V6ONLY but setsockopt() fails, close the
Wayne Davison [Wed, 5 May 2004 22:17:48 +0000 (22:17 +0000)]
If we need to set IPV6_V6ONLY but setsockopt() fails, close the
socket and skip it.

19 years agoAdded missing extern for read_batch.
Wayne Davison [Wed, 5 May 2004 17:15:03 +0000 (17:15 +0000)]
Added missing extern for read_batch.

19 years agoDon't force the whole-file option when using read-batch.
Wayne Davison [Wed, 5 May 2004 16:23:49 +0000 (16:23 +0000)]
Don't force the whole-file option when using read-batch.

19 years agoCalls to make_bak_dir() should only happen when we fail to create a
Wayne Davison [Tue, 4 May 2004 03:10:45 +0000 (03:10 +0000)]
Calls to make_bak_dir() should only happen when we fail to create a
file/dir/etc. with errno == ENOENT.

19 years agoA slight refinement to my last patch.
Wayne Davison [Mon, 3 May 2004 01:24:10 +0000 (01:24 +0000)]
A slight refinement to my last patch.

19 years agoFixed crash bug that can affect --delete in certain circumstances.
Wayne Davison [Mon, 3 May 2004 01:18:07 +0000 (01:18 +0000)]
Fixed crash bug that can affect --delete in certain circumstances.

20 years agoGot rid of a TODO comment that was fixed long ago.
Wayne Davison [Sun, 2 May 2004 17:04:14 +0000 (17:04 +0000)]
Got rid of a TODO comment that was fixed long ago.

20 years agoRenamed variable STRIP to INSTALL_STRIP to avoid an accidental match
Wayne Davison [Sun, 2 May 2004 16:52:52 +0000 (16:52 +0000)]
Renamed variable STRIP to INSTALL_STRIP to avoid an accidental match
with an environment variable in OpenBSD.

20 years agoGot rid of trailing comma in an enum.
Wayne Davison [Sun, 2 May 2004 16:34:33 +0000 (16:34 +0000)]
Got rid of trailing comma in an enum.

20 years agoMoved some news items under new headings.
Wayne Davison [Fri, 30 Apr 2004 21:10:58 +0000 (21:10 +0000)]
Moved some news items under new headings.

20 years agoChanged the order that ssh and rsh are mentioned.
Wayne Davison [Fri, 30 Apr 2004 20:39:29 +0000 (20:39 +0000)]
Changed the order that ssh and rsh are mentioned.

20 years agoAdditional testing confirmed the limited scope of the sources affected
Wayne Davison [Fri, 30 Apr 2004 19:14:52 +0000 (19:14 +0000)]
Additional testing confirmed the limited scope of the sources affected
by the -R sorting bug.

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.