Wayne Davison
03a9ca0a97
Document the latest changes.
2004-05-18 01:13:14 +00:00
Wayne Davison
6f481bb0e0
- 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.
2004-05-18 00:41:55 +00:00
Wayne Davison
f98cc5685d
Test that a config-file-specified exclude works right.
2004-05-18 00:41:51 +00:00
Wayne Davison
9135621ff9
Quote the dir expansions to avoid problems with spaces.
2004-05-18 00:41:49 +00:00
Wayne Davison
8624daa7f8
- Use fromdir and todir instead of FROM and TO.
...
- Quote the dir expansions to avoid problems with spaces.
2004-05-18 00:41:46 +00:00
Wayne Davison
3051c46dc3
- Use $suitedir to find rsync.fns.
...
- Use tmpdir instead of TMP.
2004-05-18 00:41:43 +00:00
Wayne Davison
e920830ec5
Use $suitedir to find rsync.fns.
2004-05-18 00:41:40 +00:00
Wayne Davison
7892e5ac77
- Use $suitedir to find rsync.fns.
...
- The values of fromdir, todir, and chkdir are already set.
2004-05-18 00:41:38 +00:00
Wayne Davison
b0e9bafc78
- Use $suitedir to find rsync.fns.
...
- The values of fromdir and todir are already set.
2004-05-18 00:41:35 +00:00
Wayne Davison
44aa070770
Removing obsoleted test.sh file (we used the runtests.sh framework for
...
some time now).
2004-05-18 00:32:36 +00:00
Wayne Davison
97f9dcae6a
If the server has excluded a file, we now exclude it from being
...
uploaded as well as downloaded.
2004-05-18 00:14:10 +00:00
Wayne Davison
8cbf495a57
Renamed free_exclude_list() to clear_exclude_list().
2004-05-16 23:54:12 +00:00
Wayne Davison
c1b29492c5
Moved the setting of ret->match_flags up a little in make_exclude().
2004-05-16 14:08:34 +00:00
Wayne Davison
669a31924e
- 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.
2004-05-16 07:28:24 +00:00
Wayne Davison
5e972dcf34
- Switched the "include" and "directory" ints into bits in match_flags.
...
- Made some length vars unsigned.
2004-05-16 07:28:21 +00:00
Wayne Davison
8fcdc444df
- 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.
2004-05-15 19:31:16 +00:00
Wayne Davison
619d21ffc9
- 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.
2004-05-15 19:31:13 +00:00
Wayne Davison
d62bcc17f3
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
982e05bbd5
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
a3c8b36863
Added rsyserr().
2004-05-15 19:31:05 +00:00
Wayne Davison
630e3c408b
Whitespace tweaks.
2004-05-15 19:09:42 +00:00
Wayne Davison
1082b52bd4
Changing if (!write_batch) in front of send_exclude_list() to
...
if (!read_batch) -- fixes hang.
2004-05-15 18:51:21 +00:00
Wayne Davison
914f3066bb
Added a "gen" rule to remake various generated files: configure,
...
config.h.in, proto.h, rsync.1, and rsyncd.conf.5 .
2004-05-15 00:48:11 +00:00
Wayne Davison
de91e75724
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.
2004-05-14 21:23:41 +00:00
Wayne Davison
384431886a
Changed PERMS_SKIP_TIME to PERMS_SKIP_MTIME.
2004-05-13 18:51:22 +00:00
Wayne Davison
82b302d928
Got rid of some useless externs.
2004-05-13 18:41:17 +00:00
Wayne Davison
4ecc9e6b64
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.
2004-05-13 07:08:25 +00:00
Wayne Davison
55e50d890b
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).
2004-05-13 07:08:22 +00:00
Wayne Davison
6e86c951d7
Call finish_transfer() with its new arg. Also put the externs
...
at the top and got rid of some trailing whitespace.
2004-05-13 07:08:18 +00:00
Wayne Davison
c41b52c487
Use the new PERMS_REPORT flag when calling set_perms().
2004-05-13 06:55:01 +00:00
Wayne Davison
5c6fc4a6a3
Added PERMS_REPORT and PERMS_SKIP_TIME.
2004-05-13 06:53:23 +00:00
Wayne Davison
edecdad54d
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).
2004-05-13 06:46:20 +00:00
Wayne Davison
5291364f1d
Don't force the modtime on our backup dirs -- the dirs in the
...
backup hierarchy should have their own timestamps.
2004-05-13 06:34:03 +00:00
Wayne Davison
41cc97ae64
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).
2004-05-11 19:53:16 +00:00
Wayne Davison
bf2b7ddfc5
Use memset() to initialize a new map_struct.
2004-05-11 19:46:56 +00:00
Wayne Davison
eb0cbdaa90
Got rid of an unused extern.
2004-05-11 17:25:16 +00:00
Wayne Davison
0d0142e812
Got rid of unused externs.
2004-05-11 17:25:01 +00:00
Wayne Davison
a43e21e05c
Let's just remove all the UNUSED() macros for now.
2004-05-08 22:49:58 +00:00
Wayne Davison
4135d091a6
Changed the non-globbing version of glob_expand_one() so that it
...
checks the maxargs argument instead of leaving it unused.
2004-05-08 20:03:39 +00:00
Wayne Davison
534407b1f4
One more attempt to get HP-UX's cc to build popt successfully.
2004-05-08 19:50:22 +00:00
Wayne Davison
18cc8c7ef1
Improved a comment and got rid of some trailing whitespace.
2004-05-08 19:37:28 +00:00
Wayne Davison
58c9b4b7f6
Tweaked the sizeof syntax and some multi-statement lines.
2004-05-08 19:26:53 +00:00
Wayne Davison
cde719f49f
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).
2004-05-08 18:48:09 +00:00
Wayne Davison
38cab94d9a
- 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.
2004-05-08 18:18:42 +00:00
Wayne Davison
6ed6d7f5a8
Improved the function comments for read_line() and slightly tweaked
...
its code. Also changed "IO" to "I/O" in various comments.
2004-05-08 18:03:43 +00:00
Wayne Davison
e40a46de71
Document the -4, -6, --ipv4, --ipv6 options.
2004-05-07 00:18:37 +00:00
Wayne Davison
c5bf99a1c2
Correct a typo.
2004-05-06 21:29:36 +00:00
Wayne Davison
2c7d63c765
- 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).
2004-05-06 21:26:46 +00:00
Wayne Davison
3dd22903ac
Introduced long-option names for -4 and -6.
2004-05-06 21:08:01 +00:00
Wayne Davison
d8d36af452
If we need to set IPV6_V6ONLY but setsockopt() fails, close the
...
socket and skip it.
2004-05-05 22:17:48 +00:00