Wayne Davison [Fri, 21 May 2004 09:29:17 +0000 (09:29 +0000)]
Document a couple more changes.
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.
Wayne Davison [Fri, 21 May 2004 08:40:25 +0000 (08:40 +0000)]
Moved a few externs.
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).
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.
Wayne Davison [Wed, 19 May 2004 22:19:19 +0000 (22:19 +0000)]
Added the "write only" option to the daemon config file.
Wayne Davison [Tue, 18 May 2004 09:54:52 +0000 (09:54 +0000)]
A few minor text improvements.
Wayne Davison [Tue, 18 May 2004 09:47:42 +0000 (09:47 +0000)]
Added a little more quoting.
Wayne Davison [Tue, 18 May 2004 08:50:17 +0000 (08:50 +0000)]
Output a message when we skip a server-excluded file.
Wayne Davison [Tue, 18 May 2004 01:13:14 +0000 (01:13 +0000)]
Document the latest changes.
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.
Wayne Davison [Tue, 18 May 2004 00:41:51 +0000 (00:41 +0000)]
Test that a config-file-specified exclude works right.
Wayne Davison [Tue, 18 May 2004 00:41:49 +0000 (00:41 +0000)]
Quote the dir expansions to avoid problems with spaces.
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.
Wayne Davison [Tue, 18 May 2004 00:41:43 +0000 (00:41 +0000)]
- Use $suitedir to find rsync.fns.
- Use tmpdir instead of TMP.
Wayne Davison [Tue, 18 May 2004 00:41:40 +0000 (00:41 +0000)]
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.
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.
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).
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.
Wayne Davison [Sun, 16 May 2004 23:54:12 +0000 (23:54 +0000)]
Renamed free_exclude_list() to clear_exclude_list().
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().
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.
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.
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.
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.
Wayne Davison [Sat, 15 May 2004 19:31:10 +0000 (19:31 +0000)]
Changed 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().
Wayne Davison [Sat, 15 May 2004 19:31:05 +0000 (19:31 +0000)]
Added rsyserr().
Wayne Davison [Sat, 15 May 2004 19:09:42 +0000 (19:09 +0000)]
Whitespace tweaks.
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.
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 .
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.
Wayne Davison [Thu, 13 May 2004 18:51:22 +0000 (18:51 +0000)]
Changed PERMS_SKIP_TIME to PERMS_SKIP_MTIME.
Wayne Davison [Thu, 13 May 2004 18:41:17 +0000 (18:41 +0000)]
Got rid of some useless externs.
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.
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).
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.
Wayne Davison [Thu, 13 May 2004 06:55:01 +0000 (06:55 +0000)]
Use the new PERMS_REPORT flag when calling set_perms().
Wayne Davison [Thu, 13 May 2004 06:53:23 +0000 (06:53 +0000)]
Added PERMS_REPORT and PERMS_SKIP_TIME.
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).
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.
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).
Wayne Davison [Tue, 11 May 2004 19:46:56 +0000 (19:46 +0000)]
Use memset() to initialize a new map_struct.
Wayne Davison [Tue, 11 May 2004 17:25:16 +0000 (17:25 +0000)]
Got rid of an unused extern.
Wayne Davison [Tue, 11 May 2004 17:25:01 +0000 (17:25 +0000)]
Got rid of unused externs.
Wayne Davison [Sat, 8 May 2004 22:49:58 +0000 (22:49 +0000)]
Let's just remove all the UNUSED() macros for now.
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.
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.
Wayne Davison [Sat, 8 May 2004 19:37:28 +0000 (19:37 +0000)]
Improved a comment and got rid of some trailing whitespace.
Wayne Davison [Sat, 8 May 2004 19:26:53 +0000 (19:26 +0000)]
Tweaked the sizeof syntax and some multi-statement lines.
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).
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.
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.
Wayne Davison [Fri, 7 May 2004 00:18:37 +0000 (00:18 +0000)]
Document the -4, -6, --ipv4, --ipv6 options.
Wayne Davison [Thu, 6 May 2004 21:29:36 +0000 (21:29 +0000)]
Correct a typo.
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).
Wayne Davison [Thu, 6 May 2004 21:08:01 +0000 (21:08 +0000)]
Introduced long-option names for -4 and -6.
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.
Wayne Davison [Wed, 5 May 2004 17:15:03 +0000 (17:15 +0000)]
Added missing extern for 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.
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.
Wayne Davison [Mon, 3 May 2004 01:24:10 +0000 (01:24 +0000)]
A slight refinement to my last patch.
Wayne Davison [Mon, 3 May 2004 01:18:07 +0000 (01:18 +0000)]
Fixed crash bug that can affect --delete in certain circumstances.
Wayne Davison [Sun, 2 May 2004 17:04:14 +0000 (17:04 +0000)]
Got rid of a TODO comment that was fixed long ago.
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.
Wayne Davison [Sun, 2 May 2004 16:34:33 +0000 (16:34 +0000)]
Got rid of trailing comma in an enum.
Wayne Davison [Fri, 30 Apr 2004 21:10:58 +0000 (21:10 +0000)]
Moved some news items under new headings.
Wayne Davison [Fri, 30 Apr 2004 20:39:29 +0000 (20:39 +0000)]
Changed the order that ssh and rsh are mentioned.
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.
Wayne Davison [Fri, 30 Apr 2004 18:03:33 +0000 (18:03 +0000)]
Preparing for release of 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.
Wayne Davison [Fri, 30 Apr 2004 17:38:22 +0000 (17:38 +0000)]
Improved the program that checks for broken large-file locking.
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.
Wayne Davison [Fri, 30 Apr 2004 16:10:45 +0000 (16:10 +0000)]
Only refer to AI_NUMERICHOST if it is defined.
Wayne Davison [Fri, 30 Apr 2004 15:46:41 +0000 (15:46 +0000)]
Fixed a few typos.
Wayne Davison [Thu, 29 Apr 2004 21:12:46 +0000 (21:12 +0000)]
Mention the desire to improve how a daemon returns errors.
Wayne Davison [Thu, 29 Apr 2004 21:09:33 +0000 (21:09 +0000)]
Describe the changes for 2.6.2.
Wayne Davison [Thu, 29 Apr 2004 20:36:22 +0000 (20:36 +0000)]
Preparing for release of 2.6.2pre1
Wayne Davison [Thu, 29 Apr 2004 19:40:17 +0000 (19:40 +0000)]
Got rid of unused check for sys/sysctl.h.
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).
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.
Wayne Davison [Wed, 28 Apr 2004 17:35:08 +0000 (17:35 +0000)]
Undefined __attribute__ in some circumstances.
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().
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.
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.
Wayne Davison [Tue, 27 Apr 2004 16:41:33 +0000 (16:41 +0000)]
Got rid of a debug-output statement.
Wayne Davison [Tue, 27 Apr 2004 03:55:37 +0000 (03:55 +0000)]
Preparing for release of 2.6.1
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.
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).
Wayne Davison [Tue, 27 Apr 2004 01:36:10 +0000 (01:36 +0000)]
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.
Wayne Davison [Tue, 27 Apr 2004 01:36:00 +0000 (01:36 +0000)]
Got rid of HP-UX kludge (since it didn't help).
Wayne Davison [Tue, 27 Apr 2004 01:00:58 +0000 (01:00 +0000)]
Made a comment clearer.
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.
Wayne Davison [Sun, 25 Apr 2004 16:10:09 +0000 (16:10 +0000)]
Don't use __attribute__((__unused__)) on HP-UX w/o gcc.
Wayne Davison [Sat, 24 Apr 2004 08:00:39 +0000 (08:00 +0000)]
Improved the debug string for the local_exclude_list.
Wayne Davison [Sat, 24 Apr 2004 06:16:04 +0000 (06:16 +0000)]
Improved the EXCLUDE PATTERNS section some more.
Wayne Davison [Fri, 23 Apr 2004 08:09:13 +0000 (08:09 +0000)]
Fixed a comment.
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.