Wayne Davison
b03bded70b
Document a couple more changes.
2004-05-21 09:29:17 +00:00
Wayne Davison
ee1df1ccae
If --backup was specified without a --backup-dir, don't preserve the
...
directory timestamps.
2004-05-21 08:43:03 +00:00
Wayne Davison
bc6ebcd248
Moved a few externs.
2004-05-21 08:40:25 +00:00
Wayne Davison
ba582f753a
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).
2004-05-21 08:27:04 +00:00
Wayne Davison
cbd85b472e
- 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.
2004-05-19 22:20:56 +00:00
Wayne Davison
7a92ded39a
Added the "write only" option to the daemon config file.
2004-05-19 22:19:19 +00:00
Wayne Davison
831f05df51
A few minor text improvements.
2004-05-18 09:54:52 +00:00
Wayne Davison
0d94a6a66c
Added a little more quoting.
2004-05-18 09:47:42 +00:00
Wayne Davison
3e35c34b6b
Output a message when we skip a server-excluded file.
2004-05-18 08:50:17 +00:00
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