Wayne Davison
e825409a84
Preparing for release of 2.6.9pre1
2006-10-12 03:45:53 +00:00
Wayne Davison
b8d29fd8e6
Added a line for 2.6.9.
2006-10-12 03:44:44 +00:00
Wayne Davison
200f2d98db
Make sure we tweak the right RSYNC_VERSION line in configure.
2006-10-12 03:32:18 +00:00
Wayne Davison
1a7f3d99c5
Removed the changes in symlink handling in non-chroot daemon mode as
...
they were not yet safe (I'll consider similar changes for the next
release).
2006-10-12 03:01:18 +00:00
Wayne Davison
e80876700c
Got rid of changes that aren't going to make it into 2.6.9.
2006-10-12 03:01:12 +00:00
Wayne Davison
ec55b4f2fb
Changed the indent for one else ... if section.
2006-10-12 03:01:01 +00:00
Wayne Davison
798cde474f
Some minor improvements to parse_merge_name().
2006-10-12 02:14:47 +00:00
Wayne Davison
558d482c47
Renumbered tests after adding one in the middle.
2006-10-11 00:51:50 +00:00
Wayne Davison
418b6a2703
Handle the itemizing of of the "." dir when it is newly created.
2006-10-11 00:04:48 +00:00
Wayne Davison
1ef5bf3cfd
If new_root_dir is set, itemize the output of the "." dir as a
...
directory-creation event.
2006-10-11 00:04:44 +00:00
Wayne Davison
2a94207ad6
Added a new variable, new_root_dir, that is set if we created the
...
destination directory.
2006-10-11 00:04:41 +00:00
Wayne Davison
ddcba3f075
Changed the fix_basis_dirs() function to only remove a single ../
...
prefix from each --*-dest option's path.
2006-10-10 23:44:59 +00:00
Wayne Davison
db3ae95cac
Made some of the --link-dest tests use a relative destination
...
directory, and made one of those do a --dry-run test before
the regular test.
2006-10-09 03:06:50 +00:00
Wayne Davison
1a05de2bff
- If a finished link came from a link-dest dir and --dry-run is in
...
effect, we now stat the link-dest file instead of the non-existent
destination file.
- Use int32 for the index variables.
2006-10-09 03:05:19 +00:00
Wayne Davison
d9163a4cf5
If the combination of --dry-run, --link-dest, and -H finds a matching
...
file in on of the extra basis dirs, make a note of which basis dir
we would have used in the hard-link with the destination file.
2006-10-09 02:59:23 +00:00
Wayne Davison
44885a398f
Added link_dest_used unsigned short to struct hlink and made the
...
other values explicitly 32-bit so that the total size can't be
larger than the other struct we're in a union with.
2006-10-09 02:57:04 +00:00
Wayne Davison
dfe1ed5e97
Another tweak to the --chmod summary.
2006-10-09 00:55:04 +00:00
Wayne Davison
242f6052c2
Mention the latest bug fix.
2006-10-08 22:17:39 +00:00
Wayne Davison
519d55a950
Make the daemon's "incoming chmod" tweaks happen last, as documented.
2006-10-08 22:02:13 +00:00
Wayne Davison
b6008dc645
Clarify the short description of --chmod.
2006-10-08 22:00:31 +00:00
Wayne Davison
6f3684ffb5
Call push_dir() with its new boolean arg.
2006-10-08 20:57:01 +00:00
Wayne Davison
615a5415c9
- Call push_dir() with its new boolean arg, including the spot in
...
get_local_name() where we need push_dir() to skip the chdir() because
the destination dir does no yet exist and --dry-run was specified.
- Added fix_basis_dirs(), which will combine the dest-dir with each non-
absolute basis_dir arg to make sure that they end up being relative to
the right dir when --dry-run was specified and the dest dir does not
yet exist.
2006-10-08 20:56:56 +00:00
Wayne Davison
ba081be327
Made the push_dir() function take an option to skip the actual chdir()
...
call. Used when the dest-dir doesn't exist and --dry-run was specified.
2006-10-08 20:56:52 +00:00
Wayne Davison
3e88414e4e
Moved some of the variable setup from "make check" into the
...
runtest.sh script.
2006-10-07 14:54:56 +00:00
Wayne Davison
0888952768
Moved some variable setup here from the Makefile and made it
...
possible to specify extra rsync options for the test.
2006-10-07 14:54:14 +00:00
Wayne Davison
5dcd9a2b70
Changed the -o to -a in the "if".
2006-10-07 14:39:01 +00:00
Wayne Davison
6ce9432d75
A bug-fix for die_on_unsafe_path() when the path doesn't exist.
2006-10-07 14:19:00 +00:00
Wayne Davison
6c8507724b
Added exception-checking to a couple select() calls, as suggested
...
by Hugh Daschbach.
2006-09-30 22:11:20 +00:00
Wayne Davison
d04e95e968
Document that --ignore-times thwarts all --link-dest linking.
2006-09-30 15:21:25 +00:00
Wayne Davison
b06050f9ad
I decided that combining --link-dest with -I doesn't make much sense
...
(without some kind of a post-transfer identicality check, at least)
so I'm removing the code that tried to make the two play nice.
2006-09-30 15:20:17 +00:00
Wayne Davison
ad75d18d2e
Mention that the --backup-dir option is a receiver-side path.
2006-09-26 16:44:27 +00:00
Wayne Davison
ed4b8da048
Mention the latest bugfix.
2006-09-24 03:36:04 +00:00
Wayne Davison
2cd421d809
Output the who_am_i() info in out-of-memory() and overflow_exit().
2006-09-24 03:12:24 +00:00
Wayne Davison
ea0ea357f4
Provide the who_am_i() function.
2006-09-24 03:11:41 +00:00
Wayne Davison
0480a946f5
Some more testing based on Matt's recent patch.
2006-09-23 23:49:20 +00:00
Wayne Davison
67f8a41be5
Matt tracked down a bug in the daemon option "incoming chmod" where
...
a newly created directory would get the chmod permissions that were
specified for a file (via the F previx).
2006-09-23 23:15:11 +00:00
Wayne Davison
5e1f082d0c
Improvments by Matt for the --progress option, including updating
...
the examples to look like the actual output in a modern rsync.
(I did a little rewording too...)
2006-09-23 00:07:28 +00:00
Wayne Davison
a633351962
Mention the current limitation of the RSYNC_EXIT_STATUS value.
2006-09-20 14:04:19 +00:00
Wayne Davison
2edfe52230
Mention the new --remove-s*-files error.
2006-09-20 01:54:40 +00:00
Wayne Davison
acee1ad853
Complain if a --remove-s*-files option is set and we can't remove
...
the source file.
2006-09-20 01:53:32 +00:00
Wayne Davison
8f4ae68ca7
The [ & ] are now removed from a literal IPv6 hostname passed to the
...
remote shell.
2006-09-18 17:39:13 +00:00
Wayne Davison
ff1b9344c9
When parsing a literal IPv6 address in square brackets, pass the
...
whole string (including the brackets) to the remote shell. (The
old code stripped the leading '[' but left the trailing ']'.)
2006-09-18 01:19:26 +00:00
Wayne Davison
a923437bc0
Added a missing '-' to the string "-rsh".
2006-09-18 01:15:19 +00:00
Wayne Davison
dde698c2e8
Mention the permission bug-fix for new files created by --inplace.
2006-09-18 00:47:56 +00:00
Wayne Davison
c2b47e31a5
Mention the adding of the --remove-source-files option.
2006-09-18 00:38:20 +00:00
Wayne Davison
4e0bf97716
Mention the --server and --sender option as being internal,
...
not-for use by a normal user options. Also mention the
support/rrsync script in this context.
2006-09-18 00:19:04 +00:00
Wayne Davison
174e51b5bf
Added parsing for all the latest options.
2006-09-18 00:16:31 +00:00
Wayne Davison
30cd7ec1cf
The --min-size arg doesn't need to be path-checked either.
2006-09-18 00:13:50 +00:00
Wayne Davison
48459ba15c
The --inplace option now notices when the basis data is not coming
...
from the destination file (or an identical copy) and always writes
out the data (instead of seeking when at an identical offset).
2006-09-17 23:28:19 +00:00
Wayne Davison
48ecccce2d
The --delete-excluded code now also drops any merge file that was
...
marked as MATCHFLG_NO_PREFIXES because they can only contain
include/exclude rules.
2006-09-09 18:59:10 +00:00
Wayne Davison
a739128df9
Document the new RSYNC_PID environment variable.
2006-09-09 18:56:13 +00:00
Wayne Davison
2c1775620a
Try various long, long-long, etc. types for a 64-bit integer
...
before trying off64_t.
2006-09-09 18:53:23 +00:00
Wayne Davison
40f910c43a
Mention the latest changes.
2006-09-09 18:31:45 +00:00
Wayne Davison
503114a782
Added the RSYNC_PID environment variable for the pre-/post-xfer
...
commands so that the pre-xfer command has a unique ID it can
use to cache information for the post-xfer command.
2006-09-09 17:59:02 +00:00
Wayne Davison
71f9e4673e
A slight simplification to the last change.
2006-09-02 20:05:08 +00:00
Wayne Davison
176e8e94c3
An even better way to un-backslash-escape the filenames from find.
2006-09-02 19:57:56 +00:00
Wayne Davison
814b340c27
Improved the --delete-excluded test based on Matt's input and
...
another corner case I noticed.
2006-09-01 00:43:52 +00:00
Wayne Davison
f167879035
Matt pointed out that the code was not properly dropping excludes
...
that were read from a per-dir merge file when --delete-excluded
is enabled. This additional code fixes that.
2006-09-01 00:42:39 +00:00
Wayne Davison
4187572616
Fixed handling of filenames with an embedded $, @, or %.
2006-08-31 20:30:16 +00:00
Wayne Davison
ff43d8b449
Added Matt's --delete-excluded test for merge-file correctness.
2006-08-31 17:19:26 +00:00
Wayne Davison
97bf86f8ee
Make sure that --delete-excluded does not elide a per-dir merge
...
filter file, while still dumping the .cvsignore file from -C.
2006-08-31 17:18:24 +00:00
Wayne Davison
8c449e6285
When we're cleaning up a path of "/" in relative mode, we must make
...
the name "/." (as it was of old) so that there is a filename for us
to send. Fixes a problem with --delete --relative when copying from
the root (/) of the filesystem.
2006-08-26 16:02:17 +00:00
Wayne Davison
29930a9fd2
Fixed an exclude bug with --relative excluding "/".
2006-08-12 16:22:03 +00:00
Wayne Davison
c98ad3df96
Check return value of asprintf() in full_fname(), as pointed
...
out by Ilja van Sprundel.
2006-07-29 21:04:35 +00:00
Wayne Davison
9c3c30e5c7
Assign datarootdir=@datarootdir@ so that a modern autoconf
...
doesn't complain about our Makefile.in.
2006-07-21 13:58:52 +00:00
Wayne Davison
b4a09b72ee
Use new MAKEDEV() macro instead of makedev() directly.
2006-07-10 04:25:53 +00:00
Wayne Davison
5a3810b463
Define MAKEDEV() based on the MAKEDEV_TAKES_3_ARGS define.
2006-07-10 04:25:10 +00:00
Wayne Davison
e8d97006e5
If makedev() takes 3 args, define MAKEDEV_TAKES_3_ARGS.
2006-07-10 04:24:07 +00:00
Wayne Davison
8adc22e362
Mention the "munge symlinks" daemon setting.
2006-07-03 22:35:41 +00:00
Wayne Davison
dcebf78fe0
Obey the new "munge symlinks" dameon setting.
2006-07-03 22:35:00 +00:00
Wayne Davison
651c8510e8
Document "munge symlinks".
2006-07-03 22:33:56 +00:00
Wayne Davison
1ed3f5ed61
Added the "munge symlinks" setting.
2006-07-03 22:33:49 +00:00
Wayne Davison
70c81b0c07
Fixed the indentation on a few lines.
2006-07-03 22:30:13 +00:00
Wayne Davison
47c1197534
Decided that I like remove-source-files better than remove-sender-files.
2006-06-30 15:52:52 +00:00
Wayne Davison
fb41a3c669
Changed --remove-sent-files into --remove-sender-files.
2006-06-30 15:42:41 +00:00
Wayne Davison
2700069d5a
Added --remove-sender-files and deprecated --remove-sent-files.
2006-06-30 15:42:36 +00:00
Wayne Davison
044ccbaacf
The remove_sent_files var was renamed to remove_sender_files.
2006-06-30 15:42:32 +00:00
Wayne Davison
841d943651
Handle the --remove-sender-files option by sending MSG_SUCCESS for
...
any file that is being hard-linked.
2006-06-30 15:42:29 +00:00
Wayne Davison
04cd8789cb
Handle the --remove-sender-files option by sending MSG_SUCCESS for
...
any up-to-date file (non-dir).
2006-06-30 15:42:26 +00:00
Wayne Davison
9578783a71
Changed the name of the nightly symlink.
2006-06-30 14:26:01 +00:00
Wayne Davison
4cff5fa462
Make use of module_dirlen in full_fname().
2006-06-30 14:24:25 +00:00
Wayne Davison
cc1b4f776a
Allow --with-nobody-group=GROUP (patch from Olivier Thauvin).
2006-06-19 19:30:51 +00:00
Wayne Davison
72d1b262ac
Mention the latest bug-fix.
2006-06-16 09:05:21 +00:00
Wayne Davison
6fb7cc38a2
Make sure that the %f escape always has the full path info when
...
receiving files.
2006-06-16 09:01:31 +00:00
Wayne Davison
8a7b8400e7
Updated the "use chroot" section with the latest symlink info.
2006-06-16 08:56:26 +00:00
Wayne Davison
d2ab094dec
Mention the latest log-file improvements.
2006-06-07 23:06:18 +00:00
Wayne Davison
ccd2966da9
Moved the "log file" and "syslog facility" sections into the per-module
...
options and improved them a little.
2006-06-07 23:05:27 +00:00
Wayne Davison
6dc9b74bc6
Call log_init() with its new "restart" (0 or 1) arg.
2006-06-07 23:05:24 +00:00
Wayne Davison
04c841190f
- Pass "module_id" to the two log-related settings that are no longer
...
global.
- Added a "restart" arg to log_init() that lets us request that logging
be reinitialized if the log-file/syslog-facility params changed.
2006-06-07 23:05:17 +00:00
Wayne Davison
d20ce6e144
Made "log file" and "syslog facility" per-module settings.
2006-06-07 23:05:14 +00:00
Wayne Davison
a7d461fccd
Improved some comments in get_local_name() and improved the
...
error checking a little more.
2006-06-05 22:50:52 +00:00
Wayne Davison
4c5a2da65f
Mention the latest bug-fix.
2006-06-05 17:00:47 +00:00
Wayne Davison
caff33228e
If we fail to create a new directory, skip trying to update
...
everything that is inside that dir.
2006-06-05 16:56:50 +00:00
Wayne Davison
f38f6f80b7
Added FLAG_MISSING.
2006-06-05 16:52:34 +00:00
Wayne Davison
e848e06618
Got rid of an unused extern.
2006-06-05 16:17:33 +00:00
Wayne Davison
eece5fe32c
Mention the temp-file fix.
2006-06-01 08:40:55 +00:00
Wayne Davison
8590993185
Got rid of the FNAME logcode enum.
2006-06-01 08:04:50 +00:00
Wayne Davison
b64ee91a41
Changed rprintf() messages that started with a newline into two
...
rprintf() calls (the first of which just outputs an empty line).
2006-06-01 08:04:47 +00:00
Wayne Davison
d0133e6eba
- Got rid of the FNAME logcode enum.
...
- rwrite() no longer supports newlines at the start of the string.
- maybe_log_item() avoids outputting a non-significant update to
the log file if the log-file-format doesn't include %i.
2006-06-01 08:04:43 +00:00
Wayne Davison
1925c3448c
- Got rid of the FNAME logcode enum.
...
- We no longer output " is uptodate" messages to the log file.
2006-06-01 08:04:40 +00:00
Wayne Davison
19b8587654
Fixed a typo that set stdout_format_has_i instead of logfile_format_has_i.
2006-06-01 06:49:15 +00:00
Wayne Davison
051f5df526
Mention the latest --log-* option changes.
2006-05-30 18:35:36 +00:00
Wayne Davison
e525519509
Authorize the current host in the rsyncd.conf file in addition
...
to localhost and 127.0.0.1 (which will hopefully fix the failing
of the daemon tests on FreeBSD).
2006-05-30 18:26:17 +00:00
Wayne Davison
4b90820d9f
- Added the --log-file-format option to the daemon section.
...
- Updated and improved the --out-format section.
- Moved and improved the description of the non-daemon --log-file and
--log-file-format options.
2006-05-30 17:47:20 +00:00
Wayne Davison
2873603ab5
If the user specifies --log-file-format without --log-file,
...
ignore the useless value.
2006-05-30 17:41:54 +00:00
Wayne Davison
ec52c3b9da
Skip transfer logging if the logfile_format string is empty.
2006-05-30 17:41:04 +00:00
Wayne Davison
10ae3406ee
Allow the --log-file-format=FMT option (if given when starting a daemon)
...
to override the "log format" setting.
2006-05-30 17:15:24 +00:00
Wayne Davison
232658d9d3
- Allow the --log-file-format option to override the "log format"
...
setting when starting a daemon.
- Make a daemon refuse all --log-file* options.
- Don't use refuse logic on daemon-mode options given to a daemon
module -- reject them via their own message.
2006-05-30 17:14:17 +00:00
Wayne Davison
c000002f46
Document the new --log-file-format option and renamed --log-format to
...
--out-format.
2006-05-29 22:57:05 +00:00
Wayne Davison
2fedf3d596
- Use the renamed stdout_format_has_i variable.
...
- Call log_item() with its new arg (and call it more often).
2006-05-29 22:57:01 +00:00
Wayne Davison
887d745549
Turn off the --log-file option on the server side for a local transfer.
2006-05-29 22:56:58 +00:00
Wayne Davison
20f90d5e8a
Use the renamed stdout_format_has_i variable.
2006-05-29 22:56:55 +00:00
Wayne Davison
17bda2d109
- Use the renamed stdout_format_has_i variable.
...
- Call log_item() with its new arg.
2006-05-29 22:56:51 +00:00
Wayne Davison
b534351058
- Use the renamed stdout_format_has_i, stdout_format_has_o_or_i, and
...
stdout_format variables.
- In rwrite(), make FNAME output only go to the client.
- Added an arg to log_item() that indicates what kind of output is
desired: FNAME (stdout only), FLOG (log file only), or FINFO (both).
2006-05-29 22:56:48 +00:00
Wayne Davison
b3e4e7ef2e
- Renamed log_format -> stdout_format.
...
- Renamed log_format_has_i -> stdout_format_has_i.
- Renamed log_format_has_o_or_i -> stdout_format_has_o_or_i.
- Changed the --log-format to --out-format (though we still accept
the old option, and still send it as well).
- Added the --log-file-format option (and got rid of the code that
made --out-format sometimes affect the log-file's format).
2006-05-29 22:56:45 +00:00
Wayne Davison
a3f6dbdf5c
The print_child_argv() function should be outputting FCLIENT
...
messages these days, not FINFO.
2006-05-29 22:33:06 +00:00
Wayne Davison
95ae5224b0
The cleanup_set() call was not getting called w/o --partial.
2006-05-18 18:53:24 +00:00
Wayne Davison
03dbc0b831
- Improved the setting of cleanup_new_fname and cleanup_fname.
...
- Don't try to keep a partial file if cleanup_new_fname is not set.
2006-05-18 18:52:40 +00:00
Wayne Davison
ffa8ab8eb5
Improved two lseek() error messages.
2006-05-18 17:04:40 +00:00
Wayne Davison
a17e119d8b
Mention the latest fixes.
2006-05-17 06:54:11 +00:00
Wayne Davison
6bfc7b4d79
Tweaked a couple things in try_dests_reg().
2006-05-16 22:27:26 +00:00
Wayne Davison
b3e8e7c79e
Make --quiet quieter (like it used to be), but also don't allow it
...
to interfere with any logging of messages that is going on.
2006-05-14 00:27:33 +00:00
Wayne Davison
bdd3a4fef5
Updated the (commented out) valgrind command.
2006-05-11 23:41:18 +00:00
Wayne Davison
a00f5a371e
Got rid of the .ignore kluge.
2006-05-11 23:38:10 +00:00
Wayne Davison
55c412630c
Added ".bzr/" to the default CVS exclusions.
2006-05-11 07:54:33 +00:00
Wayne Davison
778ee637ee
This file hasn't been needed for a while now...
2006-05-10 18:34:32 +00:00
Wayne Davison
80aff93b32
Added the updating of a symlink to the very latest nightly tar file.
2006-05-10 16:37:07 +00:00
Wayne Davison
6721973e37
Mention the --log-file option.
2006-05-09 18:44:58 +00:00
Wayne Davison
a2ed5801d3
Document the new --log-file option.
2006-05-09 18:31:24 +00:00
Wayne Davison
15ce4b24fc
Output the progress message as FCLIENT instead of FINFO.
2006-05-09 18:31:19 +00:00
Wayne Davison
c5260884d6
Got rid of the call to log_exit() now that the cleanup code handles this.
2006-05-09 18:31:16 +00:00
Wayne Davison
ea124cb324
- Turned some FINFO rprintf() calls into FCLIENT calls that don't go
...
into a client-side log-file.
- Added a couple FLOG rprintf() calls.
2006-05-09 18:31:13 +00:00
Wayne Davison
13b597fa71
- Use the new logfile_* variables that are set by the --log-file
...
option instead of the old daemon_log_* variables.
- Renamed the "logfile" variable "logfile_fp".
- Enhanced the logic in rwrite() to handle client-side FLOG output.
2006-05-09 18:31:10 +00:00
Wayne Davison
ecc7623e7f
Some demon_log_* variables changed into logfile_* variables that are
...
also used by the new --log-file option.
2006-05-09 18:31:06 +00:00
Wayne Davison
87c0f9d6b4
Added --log-file and several logfile_* support variables.
2006-05-09 18:31:03 +00:00
Wayne Davison
1cfcb8af11
Revised the logic for when to call log_exit() to handle the
...
new --log-file option.
2006-05-09 18:31:00 +00:00
Wayne Davison
56aaa4c44c
Tweaked the comment about log-message categories.
2006-05-09 18:30:57 +00:00
Wayne Davison
4b6a7bd706
Got rid of an unused variable.
2006-05-09 18:00:15 +00:00
Wayne Davison
5bc933a285
Mention the latest bugfix and improved an old description.
2006-05-09 17:46:04 +00:00
Wayne Davison
01d124d9e2
If the --partial-dir value is an absolute path and we use a file in
...
it as an alternate basis file, make sure that we delete it when the
associated destination file is successfully updated.
2006-05-09 17:38:47 +00:00
Wayne Davison
58a06312a4
Improved the doc for --existing and --ignore-existing.
2006-05-05 20:41:17 +00:00
Wayne Davison
c2c8db9195
- Moved the sanitizing of the partial_dir value here from options.c.
...
- Call die_on_unsafe_path() in a few needed places.
- Handle the server-excluded checks for an absolute partial_dir and
the --*-dest options.
2006-05-05 16:00:33 +00:00
Wayne Davison
d1e6b0e225
- Added some calls to die_on_unsafe_path() to the path-sanitizing code.
...
- Moved the sanitizing of the partial_dir value into main.c.
2006-05-05 15:58:44 +00:00
Wayne Davison
8936367695
- Added a call to die_on_unsafe_path() to handle_partial_dir().
...
- Fixed some strange slash handling in partial_dir_fname().
2006-05-05 15:54:20 +00:00
Wayne Davison
8517e9c10a
A few minor changes to match the recent --help changes in
...
options.c.
2006-05-05 06:24:25 +00:00
Wayne Davison
fcecb70b1d
- Don't check HAVE_LINK directly, use SUPPORT_HARD_LINKS instead.
...
- Updated a few items in the --help text.
2006-05-05 06:16:22 +00:00
Wayne Davison
582c1589f3
Call the new die_on_unsafe_path() function in a few places.
2006-05-05 05:57:48 +00:00
Wayne Davison
cb15269eb0
Call the new die_on_unsafe_path() function in a couple spots.
2006-05-05 05:56:37 +00:00
Wayne Davison
f47807900b
Added a new function named die_on_unsafe_path(). This is used
...
by a non-chroot daemon to ensure that a user-supplied path does
not contain an unsafe symlink element.
2006-05-05 05:55:40 +00:00
Wayne Davison
40410a38bc
- Don't check HAVE_LINK directly, use SUPPORT_HARD_LINKS instead.
...
- Tweaked Paul's recent change just a tad.
- Fixed the output of --compare-dest when SUPPORT_HARD_LINKS is
not defined.
2006-05-05 05:53:36 +00:00
Wayne Davison
6b54a688cf
Cast file->mode to an int when printing it via %o.
2006-05-05 05:40:17 +00:00
Paul Green
b59dc8d5ae
Fix generator.c to avoid calling do_link() on systems that do not support
...
the link() function. The changes test OK on SuSE Linux and on my own
Stratus VOS system, but I would be grateful if other folks could
double-check this change. Paul G.
2006-05-04 19:00:37 +00:00
Wayne Davison
45ba206a94
A few more improvements.
2006-05-04 02:42:55 +00:00
Wayne Davison
2220ec0a69
A few minor twiddles.
2006-05-04 02:38:58 +00:00
Wayne Davison
5fdbb87df8
Added/clarified the latest bug-fix info.
2006-05-04 02:29:58 +00:00
Wayne Davison
f1c9bcd0fc
Cast the enum in rwrite() when calling send_msg().
2006-05-03 16:58:36 +00:00
Wayne Davison
3723548ded
Use send_msg() when forwarding a log message, not io_multiplex_write().
...
This allows send_msg() to decide if the message should be sent right
away, or should be deferred.
2006-05-03 16:17:49 +00:00
Wayne Davison
12ccc73ae7
Changed read_msg_fd() to always use send_msg()/rwrite() instead of
...
sometimes calling io_multiplex_write()/rwrite() or msg_list_add().
This simplifies the code that does the defer_forwarding_messages
checking because it can now be done in just one place, in send_msg()
(because rwrite() also calls send_msg() now when forwarding a msg).
2006-05-03 16:17:46 +00:00
Wayne Davison
ee8d9636d1
A small optimization to the new code in msg2sndr_flush().
2006-05-03 06:32:59 +00:00
Wayne Davison
38de2866e5
Made log_init() call timestring() instead of just localtime() prior to a
...
chroot (note that timestring() makes use of localtime() plus strftime()).
2006-05-03 06:11:11 +00:00
Wayne Davison
bdac7621ee
Improved the last bugfix description.
2006-05-03 05:37:00 +00:00
Wayne Davison
8ac4774675
Mention the fix for the "unexpected tag 3" bug.
2006-05-03 05:22:01 +00:00
Wayne Davison
229e1950ed
Fixed a bug where deferred MSG_INFO/MSG_ERROR/MSG_LOG messages were
...
not being forwarded from the generator to the sender using rwrite()
(and MSG_LOG messages didn't need to be deferred at all).
2006-05-03 05:19:01 +00:00
Wayne Davison
93977bca10
Added module_dirlen now that utils.o needs it.
2006-05-03 00:49:31 +00:00
Wayne Davison
c2a2147a5b
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
...
need to ensure that it doesn't follow any unsafe symlinks.
- Got rid of startdir_depth code (in favor of util.c's curr_dir_depth).
- Use the new calling syntax for sanitize_path().
2006-05-03 00:48:32 +00:00
Wayne Davison
73173af955
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
...
need to ensure that it doesn't follow any unsafe symlinks.
- Don't sanitize the string of a symlink -- just use it verbatim.
2006-05-03 00:48:29 +00:00
Wayne Davison
a2248aea2e
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
...
need to ensure that it doesn't follow any unsafe symlinks.
- Use the new calling syntax for sanitize_path().
2006-05-03 00:48:26 +00:00
Wayne Davison
a8167c6611
- Added curr_dir_depth, a variable that keeps track of the depth past
...
the module root when a sanitizing daemon is running.
- Use the new calling syntax for sanitize_path().
- Updated count_dir_elements() to not count a . component.
- Improved sanitize_path() so that it can take a symlink target string
and combine it with the symlink's name when the target is relative.
When working with a symlink, the routine also returns NULL if any ..
elements try to escape past the module root.
- The new routine safe_stat(), is used when sanitizing paths (i.e. when
the daemon does not have chroot enabled). This manually follows a
chain of symlinks, ensuring they don't try to escape the module.
2006-05-03 00:48:23 +00:00
Wayne Davison
91f4b31fe1
Use the new calling syntax for sanitize_path().
2006-05-03 00:48:20 +00:00
Wayne Davison
cad8f6f980
Tweaked some variable names in readlink_stat() and link_stat().
2006-05-02 19:52:28 +00:00
Wayne Davison
d8bf7ea8e9
Mention the latest bug-fixes.
2006-05-02 17:38:34 +00:00
Wayne Davison
d8f28a663c
Test the new symlink sanitizing fix by using ::test-scratchdir/to
...
as the destination and including a symlink with a leading "../" .
2006-05-02 17:13:11 +00:00
Wayne Davison
2ae4126a9e
Tweaked our test config file to include transfer logging that
...
includes %i, and to have a test-scratchdir module.
2006-05-02 17:11:42 +00:00
Wayne Davison
6f1c2aab43
Moved the sanitizing of a symlink's link string here from flist.c.
2006-05-02 16:52:51 +00:00
Wayne Davison
e71c1c26df
Fixed a problem in the --link-dest processing where -I (--ignore-times)
...
or --size-only could adversely affect our ability to find identical
files to hard-link.
2006-05-02 16:46:48 +00:00
Wayne Davison
b24498ec2c
Set a new variable, startdir_depth, to indicate how deep the
...
destination dir is in a daemon module's path.
2006-05-02 16:42:20 +00:00
Wayne Davison
b2d4639543
Got rid of the sanitizing of a symlink's link string because it
...
is happening too early to work correctly (before we know what
our destination-directory's depth in the module will be).
2006-05-02 16:36:07 +00:00
Wayne Davison
d3ef985954
We can't check the --*-dest args against the server filter rules
...
here because we don't know what the args are going to be relative
to yet.
2006-04-28 17:34:53 +00:00
Wayne Davison
7c58c99184
We sanitize the --*-dest args here so they can be relative to the
...
destination directory.
2006-04-28 16:58:20 +00:00
Wayne Davison
ad77db8b71
Moved the sanitizing of the --*-dest args into main.c.
2006-04-28 16:57:39 +00:00
Wayne Davison
e7c67065c0
Updated the FSF's address to an even newer one.
2006-04-25 23:51:12 +00:00
Wayne Davison
0f78b81511
- Updated the address for the FSF in the opening comment.
...
- Standardized the format of the opening comment, including adding a
brief description of what's in the file for those that lacked it.
- Added some missing copyright lines.
- Some minor whitespace tweaks (in a few of the files).
2006-04-25 20:23:34 +00:00
Wayne Davison
d051056f92
Tweaked some whitespace to match the latest version from autoconf.
2006-04-24 23:43:45 +00:00
Wayne Davison
a4a38e8df0
Incremented the version to 2.6.9cvs.
2006-04-24 22:24:40 +00:00
Wayne Davison
60ef8ed128
Rolled over the news file for the next version.
2006-04-24 22:23:56 +00:00
Wayne Davison
8aa0dc7838
Updated to the version dated 2006-02-23.
2006-04-24 22:20:10 +00:00
Wayne Davison
4177f09b83
Preparing for release of 2.6.8
2006-04-22 15:39:57 +00:00
Wayne Davison
acaadb55c1
Mention the phase-unknown changes.
2006-04-21 16:57:13 +00:00
Wayne Davison
b88c2e8ffe
- Got rid of the (mostly useless) io_read_phase and io_write_phase
...
variables. In the future it might be useful to get rsync to
mention what kind of a message it was trying to write, but the
'phase "unknown"' output was ubiquitous and confusing.
- Got rid of the completely unused write_int_named() function.
2006-04-21 16:40:19 +00:00
Wayne Davison
f4ea5f47dc
Got rid of the setting of io_write_phase.
2006-04-21 16:36:30 +00:00
Wayne Davison
62ae66d43b
Mention the security fix for patches/xattrs.diff.
2006-04-21 00:05:30 +00:00
Wayne Davison
8641d28740
Improved the --owner and --group sections.
2006-04-18 18:58:07 +00:00
Wayne Davison
de3438407c
Twiddle the trailing output in non-live mode.
2006-04-18 06:43:17 +00:00
Wayne Davison
434764269c
Fixed a typo in the new code.
2006-04-18 06:38:58 +00:00
Wayne Davison
ba212fe0b6
- Fixed --copy-dest behavior on a system where CAN_HARDLINK_SYMLINK
...
and/or CAN_HARDLINK_SPECIAL is not defined.
- Changed --link-dest behavior on such systems to work just like
--copy-dest for the non-hard-linkable files.
2006-04-18 05:48:46 +00:00
Wayne Davison
5f93b4d35e
A slight improvement to the logic in try_dests_non().
2006-04-18 05:24:02 +00:00
Wayne Davison
f8db4a8ab4
Mention the latest bugfix.
2006-04-17 19:55:16 +00:00
Wayne Davison
398612ba07
Fixed a bug where special files were not getting hard-linked via
...
the --link-dest option.
2006-04-17 19:53:41 +00:00
Wayne Davison
77b013afb5
Don't use the -C option to make (since it's not portable).
2006-04-17 18:15:02 +00:00
Wayne Davison
08c0cd8a42
Mention the latest fixes.
2006-04-17 18:00:09 +00:00
Wayne Davison
1c6e9dfabc
Use the new CAN_HARDLINK_SYMLINK and CAN_HARDLINK_SPECIAL defines
...
from configure instead of the old (and not quite correct) run-time
checking.
2006-04-17 17:56:10 +00:00
Wayne Davison
0037bf23fc
Added two new checks: 1. Does link() hard-link symlinks (not the
...
referent)? 2. Does link() hard-link a fifo?
2006-04-17 17:53:47 +00:00
Wayne Davison
285edc9169
Don't use -C with make because it's not portable.
2006-04-17 17:37:13 +00:00
Wayne Davison
c4aa84ad50
Got rid of the unused REPLACE_INET_NTOA and REPLACE_INET_ATON checks.
2006-04-13 16:54:24 +00:00
Wayne Davison
b635bc92d1
Got rid of inet_ntoa -> rep_inet_ntoa tom-foolery because rsync
...
doesn't use inet_ntoa() anymore.
2006-04-13 16:53:15 +00:00
Wayne Davison
146d2228cc
Got rid of the replacement inet_aton() and inet_ntoa() functions
...
because no code in rsync has used these functions since 2.4.8.
2006-04-13 16:52:15 +00:00
Wayne Davison
b2501ccf12
Improved a sentence.
2006-04-12 16:59:32 +00:00
Wayne Davison
e60bba3fbc
A few minor changes to some messages and a couple variable improvements.
2006-04-12 16:35:53 +00:00
Wayne Davison
e26cfccf16
Preparing for release of 2.6.8pre1
2006-04-12 16:23:46 +00:00
Wayne Davison
74f80abce2
Moved the include of netinet/ip.h into socket.c.
2006-04-11 00:48:55 +00:00
Wayne Davison
5899b8cf3e
Moved the include of netinet/ip.h here along with its apparent
...
prerequisite, netinet/in_systm.h .
2006-04-11 00:48:28 +00:00
Wayne Davison
08e0a62956
Tweaked a comment.
2006-04-11 00:28:02 +00:00
Wayne Davison
2bd17a51ae
Include netinet/ip.h .
2006-04-09 13:51:56 +00:00
Wayne Davison
c7b9ebb598
Mention the read-position fix.
2006-04-08 16:43:21 +00:00
Wayne Davison
e3db43ffe5
Fixed the value of map->p_fd_offset when a read() fails or is
...
abbreviated.
2006-04-08 16:37:50 +00:00
Wayne Davison
f61ab01d96
Use --delete-after instead of --delete.
2006-04-08 16:36:57 +00:00
Wayne Davison
ceca8ccac8
We don't need log_initialised exported after all.
2006-04-08 16:04:34 +00:00
Wayne Davison
374c3e1278
Moved the calls to client_addr() and client_name() below the lp_load()
...
call so that their potential to output log messages can't cause the
log-file to initialize before we know what "log name" to use.
2006-04-08 16:03:16 +00:00
Wayne Davison
e09d8a304c
Clarified a few items.
2006-04-06 07:54:03 +00:00
Wayne Davison
2a7d9fe9b8
A slightly better fix than the last version.
2006-04-06 07:38:54 +00:00
Wayne Davison
e63aeb6d68
Made log_initialised public.
2006-04-06 07:33:12 +00:00
Wayne Davison
077d5d4ebc
There's no need for lp_load() to check am_daemon.
2006-04-06 07:28:22 +00:00
Wayne Davison
e2d774cdd7
Improved the bind()-failure message to mention what family failed.
2006-04-02 21:15:37 +00:00
Wayne Davison
415b598346
Got rid of duplicate rsync: prefix from an rsyserr() call.
2006-04-02 15:02:02 +00:00
Wayne Davison
69627d66f8
Improved a couple sentences.
2006-04-02 14:23:22 +00:00
Wayne Davison
ac98cd98e3
- Mention the logging fix for a single-use daemon.
...
- Mention the fatal error for when --daemon can't be honored.
2006-03-31 17:56:19 +00:00
Wayne Davison
91d324b4ea
Log the connect message after calling log_init().
2006-03-31 17:37:21 +00:00
Wayne Davison
89fb50263b
- Complain if the user specified --delete without -r or -d.
...
- Got rid of the saw_delete_* vars.
2006-03-28 23:09:36 +00:00
Wayne Davison
e257c6c20b
Use the regular delete* vars instead of the saw_delete* vars
...
(which are no longer around).
2006-03-28 23:09:07 +00:00
Wayne Davison
43eae40e45
Include the version number when we exit with an error or warning.
2006-03-28 18:23:24 +00:00
Wayne Davison
920240a687
- Mention two omitted --files-from bug-fixes.
...
- Added a place-holder release line for 2.6.8.
2006-03-28 16:49:23 +00:00
Wayne Davison
f8b9da1a2c
Output the who_am_i() info in the "unknown message" error.
2006-03-28 06:12:18 +00:00
Wayne Davison
3c987ee956
Mention latest tweaks.
2006-03-22 18:26:44 +00:00
Wayne Davison
5c6d46329b
If open_socket_in() fails, we now log the reasons why.
2006-03-22 17:48:59 +00:00
Wayne Davison
8b3e964d14
Mention the new support/file-attr-restore script.
2006-03-21 18:11:43 +00:00
Wayne Davison
91a93df049
A nice file-attribute maintenance script that lets you restore
...
permissions, ownership, and group-info on files that may be
different than the originals.
2006-03-21 18:06:26 +00:00
Wayne Davison
19826af5f0
Fixed a few things that looked like yodl macros but were not.
2006-03-21 03:45:03 +00:00
Wayne Davison
49f4cfdf39
Improved a few things that a more modern yodl complained about.
2006-03-21 03:41:00 +00:00
Wayne Davison
b3222792ad
Changed where ITEM_REPORT_ATIME goes in the list.
2006-03-17 23:57:19 +00:00
Wayne Davison
0640710115
Go ahead and define upcoming ITEM_REPORT_* defines now.
2006-03-17 21:59:25 +00:00
Wayne Davison
fa65989a8b
Added support for using solaris's "setfacl -s" in place of
...
GNU's "setfacl -k".
2006-03-16 21:37:18 +00:00
Wayne Davison
4209f079dd
Make sure that the --relative test creates the implied directories
...
with user-write permission, and turns any symlinks in the implied
dirs into real dirs.
2006-03-16 20:02:36 +00:00
Wayne Davison
a7704777ce
An extra safeguard for msg2sndr_flush().
2006-03-16 10:08:08 +00:00
Wayne Davison
7d51b8374d
Made the new msg2sndr handling even better.
2006-03-16 09:57:32 +00:00
Wayne Davison
a27042b521
Mention fix for stunnel-using rsync.
2006-03-16 03:18:16 +00:00
Wayne Davison
5b51c893c5
Optimized the reacquisition of the code value from the msg2sndr list.
2006-03-16 02:26:27 +00:00
Wayne Davison
408e69396c
Fixed the reacquisition of the code value from the msg2sndr list.
2006-03-16 01:27:26 +00:00
Wayne Davison
954bbed84a
- Optimized the msg_list_item structure to make the buffer an
...
integral part of the structure instead of pointer to a
separately allocated buffer.
- Improved the code that was ensuring that no messages from the
receiver could be merged into the middle of a partially written
buffer from the generator. The new code ensures that we never
avoid reading the messages from the receiver (like we used to).
This ensures that the generator will not hang when the receiver
got a read error on the socket, sent us a message about it, but
the socket in the generator never becomes writable for it to get
a similar error (now we are assured of getting the receiver's
note about their read error, and we know to shut things down).
2006-03-16 00:57:54 +00:00
Wayne Davison
7c329ec72c
Mention the log-file.diff.
2006-03-15 18:47:31 +00:00
Wayne Davison
07a8a360a5
Got rid of an errant newline.
2006-03-15 16:54:13 +00:00
Wayne Davison
1618c9e6d1
Improved the regex to match syslog lines and be easier to read.
2006-03-13 16:45:24 +00:00
Wayne Davison
ba0147ac42
Changing the version to 2.6.8cvs.
2006-03-13 16:44:47 +00:00
Wayne Davison
9e88f057b4
Starting the news for 2.6.8.
2006-03-13 16:42:50 +00:00
Wayne Davison
f171bf5b8f
Rolling over the NEWS from 2.6.7.
2006-03-13 16:42:33 +00:00
Wayne Davison
1b1628b90a
Fixed a bug where the NEWS file got an extra newline inserted when
...
the release date was added. Changed "ln -f" to "cp -p" because
samba.org doesn't allow ln to be used at the moment.
2006-03-13 16:42:08 +00:00
Wayne Davison
50cf25672e
Added a test of a simple exclude when --relative is enabled.
2006-03-13 01:57:13 +00:00
Wayne Davison
b316862831
Fixed a problem when copying an absolute source path with
...
the --relative option enabled.
2006-03-13 01:56:19 +00:00
Wayne Davison
38a4b9c297
Block-quote the itemized list in the --stats section so that
...
it is indented in the manpage.
2006-03-13 00:45:07 +00:00
Wayne Davison
a058cbc410
Preparing for release of 2.6.7
2006-03-11 18:43:42 +00:00
Wayne Davison
1ef7913497
Mention solo-dir fix for a dir without S_IWUSR.
2006-03-11 17:59:37 +00:00
Wayne Davison
88a16c8b4f
Don't force S_IWUSR on a solo directory transfer.
2006-03-10 15:57:03 +00:00
Wayne Davison
8030b28ff8
Make extra sure that authbuf can't overflow.
2006-03-07 08:46:29 +00:00
Wayne Davison
1c598b1db8
Mention fix for Proxy-Authorization header.
2006-03-06 18:28:06 +00:00
Wayne Davison
6854bf69a8
Call base4_encode() with "1" for its new "pad" arg so that the
...
Proxy-Authorization header is properly padded with trailing '='
chars.
2006-03-06 18:22:26 +00:00
Wayne Davison
293def601d
The base4_encode() function now takes a "pad" arg which indicates
...
if the caller wants to pad the value with trailing '=' chars.
2006-03-06 18:22:20 +00:00
Wayne Davison
651dc65efc
Tweaked the mode of the files in the tar file.
2006-03-04 08:21:58 +00:00
Wayne Davison
c2b2bd6a93
Since the samba.org rsync is so old that it doesn't handle
...
out-of-order hard-linked files, changed the script to do the
hard-linking manually.
2006-03-02 23:42:56 +00:00
Wayne Davison
e32a48d256
Preparing for release of 2.6.7pre3
2006-03-02 22:49:27 +00:00
Wayne Davison
b5cf121d70
Mention the get_local_name() change.
2006-03-02 03:56:14 +00:00
Wayne Davison
44c26bf2a1
Don't allow overwriting a non-directory with a directory (just
...
like cp).
2006-03-02 03:53:42 +00:00
Wayne Davison
cc8c5057fe
If get_local_name() fails to stat() the destination for any
...
reason other than the destination does not exist, mention the
error and exit.
2006-03-02 03:40:09 +00:00
Wayne Davison
b4c7c1ca99
A couple more improvements for --list-only.
2006-03-01 01:04:57 +00:00
Wayne Davison
16d3b31b2c
Improved a couple sentences.
2006-03-01 00:59:22 +00:00
Wayne Davison
89a8180c5e
One more bugfix.
2006-02-28 21:48:45 +00:00
Wayne Davison
34f961bbf3
Got the order of s1 and s2 right in the debug output.
2006-02-28 21:48:15 +00:00
Wayne Davison
2384f9e1db
Update for hash-table change.
2006-02-28 21:21:44 +00:00
Wayne Davison
48cce779a2
Decided to drop the dynamically sized hash table for now. This was
...
due to timing tests showing that the per-byte modulus calculation
slowed down regular sized files. Kept the other improvements
because they lessened our memory use and actually sped up the code.
2006-02-28 21:20:08 +00:00
Wayne Davison
6820753732
Renamed sum_table -> hash_table.
2006-02-28 07:32:48 +00:00
Wayne Davison
fbbe9a016d
Changed the name of GETTAG() to SUM2HASH().
2006-02-28 01:00:03 +00:00
Wayne Davison
c64ca7ef58
Eliminated one variable from hash_search().
2006-02-28 00:31:51 +00:00
Wayne Davison
900cfcb584
- Fixed a problem with the new gettag2() macro by getting rid of the
...
need for it.
- Fixed a really old bug in the verbose output where it would output
the wrong sum value (off by one).
- Renamed the tag_hit variables & debug output to hash_hit.
2006-02-28 00:09:19 +00:00
Wayne Davison
beab3078d6
Added --no-H and --no-hard-links.
2006-02-27 23:35:18 +00:00
Wayne Davison
530a2199da
Mention the hash table change.
2006-02-27 21:29:44 +00:00
Wayne Davison
d9bca0c32f
This is Shachar Shemesh's patch for making the hash-table code
...
work better with large files. I further modified it to eliminate
the extra level of indirectness (and the qsort()), which saves
memory.
2006-02-27 21:16:04 +00:00
Wayne Davison
d733de97f5
Added a "chain" item to the struct sum_buf.
2006-02-27 21:11:56 +00:00
Wayne Davison
f06c11ed40
Tweaked a sentence.
2006-02-27 20:53:35 +00:00
Wayne Davison
c638caa63e
In read_sum_head(): if we read a negative checksum count, die
...
with an error.
2006-02-27 03:12:26 +00:00
Wayne Davison
d775372a34
Tweaked a sentence.
2006-02-24 19:50:22 +00:00
Wayne Davison
07affc3d93
Document the latest changes.
2006-02-24 17:58:24 +00:00
Wayne Davison
f2ebbebead
- Document the new --copy-dirlinks option.
...
- Improved the docs for --no-implied-dirs and --keep-dirlinks
(based on a patch from Matt).
- Improved a few other misc. sentences.
- Shuffled the order of a couple options.
2006-02-24 17:54:47 +00:00
Wayne Davison
a695b379b5
Make sure the receiver resets copy_dirlinks (so that it can't
...
affect the delete scan).
2006-02-24 17:54:41 +00:00
Wayne Davison
88c2190a7c
- Got rid of unused externs.
...
- Added support for copy_dirlinks.
- Fixed a bug where --copy-links would not affect implied dirs
unless --copy-unsafe-links was also specified.
2006-02-24 17:54:35 +00:00
Wayne Davison
2dbf36ef55
Added the new --copy-dirlinks (-k) option.
2006-02-24 17:54:30 +00:00
Wayne Davison
cca9208697
Got rid of unused externs.
2006-02-24 16:43:44 +00:00
Wayne Davison
aa37022ef7
A recently added stat() call needed to be do_stat().
2006-02-24 09:35:47 +00:00
Wayne Davison
85c417579f
Made create_directory_path() return -1 if it couldn't create some
...
portion of the filename's path.
2006-02-24 09:34:44 +00:00
Wayne Davison
baed67efc4
Need to define an orig_umask value now that utils.c uses it.
2006-02-24 01:56:29 +00:00
Wayne Davison
c5b7aa1532
The orig_umask value is now a mode_t.
2006-02-24 01:56:26 +00:00
Wayne Davison
904e5af128
The create_directory_path() function no longer takes a base_umask
...
arg.
2006-02-24 01:56:21 +00:00
Wayne Davison
a41d110647
- The orig_umask value is now a mode_t.
...
- Use CHMOD_BITS instead of 07777.
2006-02-24 01:56:18 +00:00
Wayne Davison
a92d6ff13c
Moved the orig_umask variable's definition into main.c since it
...
has nothing to do with option settings.
2006-02-24 01:56:14 +00:00
Wayne Davison
05278935a3
- Call mkdir_defmode() instead of do_mkdir().
...
- Define orig_umask in this file, not options.c.
- Made orig_umask a mode_t, not an int.
2006-02-24 01:56:10 +00:00
Wayne Davison
a56cdef9b1
Call mkdir_defmode() instead of do_mkdir().
2006-02-24 01:56:07 +00:00
Wayne Davison
e9357a2deb
+ Added mkdir_defmode().
...
+ Changed create_directory_path() to drop the (now) unneeded
base_umask arg and to call mkdir_defmode().
2006-02-24 01:56:01 +00:00
Wayne Davison
8d94d27af0
Moved an extern into its proper place.
2006-02-24 01:39:10 +00:00
Wayne Davison
6f2a222c59
One more fuzzy tweak.
2006-02-23 20:29:55 +00:00
Wayne Davison
8470a515ef
Some improved fuzzy-parent-dir logic.
2006-02-23 20:27:17 +00:00
Wayne Davison
06982ac43b
Mention latest fixes.
2006-02-23 20:17:09 +00:00
Wayne Davison
865c3b5f92
The new fuzzy-dir logic once again avoids calling get_dirlist()
...
until a regular file is found in the current parent directory.
2006-02-23 20:00:48 +00:00
Wayne Davison
8c9e06d7b9
Fixed the creation of symlinks and devices when both --relative
...
and --no-implied-dirs are specified and the destination dir does
not yet exist.
2006-02-23 19:43:54 +00:00
Wayne Davison
a9cc128308
Renamed fuzzy_dirname -> parent_dirname.
2006-02-23 19:07:33 +00:00
Wayne Davison
ccb16b467b
Make sure that the --fuzzy option's dir-scan doesn't generate an
...
I/O error when --no-relative is used and the destination dir does
not exist yet.
2006-02-23 18:58:30 +00:00
Wayne Davison
1e44aeb92a
Mention the --list-arg change.
2006-02-23 00:43:17 +00:00
Wayne Davison
c897f7119a
Document the revised --list-only behavior and the ability to use
...
rsync with one local source arg (i.e. no destination).
2006-02-23 00:40:58 +00:00
Wayne Davison
ee8e2b1547
Rsync no longer returns a usage error when used with one local
...
source arg and no destination: this now implies the --list-only
option, just like one remote source arg has always done.
2006-02-23 00:38:34 +00:00
Wayne Davison
5fa38cd679
- Improved the way we generate the tar file.
...
- The second run of verify-patches is in a better spot now.
- Made various improvements to the output.
2006-02-22 19:09:51 +00:00
Wayne Davison
65535b5482
Mentioned that the daemon now logs connections.
2006-02-21 17:19:49 +00:00
Wayne Davison
439a198d02
Log every connect to the daemon.
2006-02-21 17:09:23 +00:00
Wayne Davison
f041b02557
Added a comment.
2006-02-21 00:29:55 +00:00
Wayne Davison
4d8639eb2d
A few more tweaks and fixes.
2006-02-20 19:58:06 +00:00
Wayne Davison
519c8de16f
- Moved the checkout of the cvs source above the version prompting so
...
that we can use the version from the configure.in file to provide
good default values for the user.
- When moving old tar/diff files into the old-* dirs, first hard-link
them into place, then (if "live"), use rsync to update these new
files on the server (which saves us later re-sending), and _then_
delete the old names.
2006-02-20 19:36:56 +00:00
Wayne Davison
7f20af4674
Made the new warning more visible.
2006-02-20 18:35:41 +00:00
Wayne Davison
55d24e5fed
Mention if any of the CVS files we're putting in the tar file
...
aren't up-to-date.
2006-02-20 18:34:27 +00:00
Wayne Davison
81f654e396
Mention a couple more bug fixes.
2006-02-20 18:03:55 +00:00
Wayne Davison
8f1dc165e2
A brief msleep() in option_error() may be helpful to ensure that
...
an option error always arrives intact from the remote rsync.
2006-02-20 17:58:13 +00:00
Wayne Davison
9a0cfff57f
Don't try to obey bwlimit restriction until bwlimit_writemax is set.
...
This fixes a bug with option errors not getting reported because the
write code gets called with bwlimit != 0 and bwlimit_writemax == 0.
2006-02-20 17:50:36 +00:00
Wayne Davison
d749eb6896
When starting up a transfer, substitute the remember_children()
...
SIGCHLD handler in place of the minimal one that socket.c enabled.
2006-02-20 17:17:51 +00:00
Wayne Davison
6d59ac192b
Made the formerly static sigchld_handler() available as a
...
public function named remember_children().
2006-02-20 17:16:21 +00:00
Wayne Davison
94d3725cf2
In dest_mode(), we now apply any "incoming chmod" changes from
...
the daemon.
2006-02-20 00:01:27 +00:00
Wayne Davison
8840ec0f49
Set a new daemon_chmod_modes pointer with the daemon's chmod
...
(incoming or outgoing) changes.
2006-02-20 00:00:35 +00:00
Wayne Davison
44a8e86d47
Mention the change in how "incoming chmod" works when --perms was
...
not specified.
2006-02-19 23:58:59 +00:00
Wayne Davison
73abdda442
Slightly tweaked the output in non-live mode.
2006-02-19 23:33:15 +00:00
Wayne Davison
15b03ab1a8
Changed parse_chmod() to return the pointer to the new items on
...
success.
2006-02-19 23:31:56 +00:00
Wayne Davison
dc5245679a
Preparing for release of 2.6.7pre2
2006-02-19 16:21:30 +00:00
Wayne Davison
60414e5bce
The tar command needed --no-recursion.
2006-02-19 16:14:39 +00:00
Wayne Davison
af40c7d667
The hide filter rule is no longer needed.
2006-02-19 16:05:08 +00:00
Wayne Davison
7eb2ecda0f
Improved the description of a fix in 2.6.4.
2006-02-19 15:52:59 +00:00
Wayne Davison
6d12a859bc
The perl script I use to create new rsync releases. This is an
...
adapted and extended version of an old shell script.
2006-02-18 21:27:54 +00:00
Wayne Davison
920071e242
A perl script I wrote to make a new "nightly" tar file and
...
maintain the nightly dir on samba.org.
2006-02-18 21:26:48 +00:00
Wayne Davison
2a24b4bd0c
Some more refinement of the --checksum section.
2006-02-16 07:40:55 +00:00
Wayne Davison
a753502200
Don't try to help the ACKs for the --remove-sent-file option
...
when --delay-updates was specified.
2006-02-15 20:09:49 +00:00
Wayne Davison
8958fae362
One last change to make the --checksum distinction very clear.
2006-02-15 19:58:53 +00:00
Wayne Davison
e2d68210d7
Another attempt to make --checksum clearer.
2006-02-15 19:24:39 +00:00
Wayne Davison
99534debc8
Improved the --checksum description and mention our whole-file
...
checksum verification checksum is different.
2006-02-15 18:20:23 +00:00
Wayne Davison
5b98629747
Improved the while's logic in increment_active_files().
2006-02-15 08:26:51 +00:00
Wayne Davison
42003f6af3
Mention the change to --remove-sent-files.
2006-02-15 08:16:42 +00:00
Wayne Davison
434573b226
Call increment_active_files() during the first phase of a transfer
...
where --remove-sent-files was specified.
2006-02-15 08:06:45 +00:00
Wayne Davison
d6081c829c
Added increment_active_files() and decrement_active_files() which
...
allows the generator to ask us to limit the number of files that
are currently active in the transfer when --remove-sent-files is
enabled.
2006-02-15 08:05:31 +00:00
Wayne Davison
58718881ef
- Changed "called" to "named".
...
- Fixed a filter option to have the right syntax.
- Mention --prune-empty-dirs in a couple more places.
2006-02-14 16:45:38 +00:00
Wayne Davison
ac669e8b92
Tweaked a comment.
2006-02-14 16:44:11 +00:00
Wayne Davison
567f1566a9
List more of the doc improvements, list some of the best diffs in
...
the patches dir, and unified the discussion of the "dest" options.
2006-02-13 18:45:04 +00:00
Wayne Davison
59a5687105
Modified the sentence about doc improvements.
2006-02-13 18:19:59 +00:00
Wayne Davison
7b13ff9704
Document what all the items in the --stats output mean.
2006-02-13 18:19:26 +00:00
Wayne Davison
5e7b826a4f
Made the receiver count the size of symlinks in the total_size
...
value, just like the sender does.
2006-02-13 18:08:45 +00:00
Wayne Davison
cbc63b9b48
Added missing release-history lines for 2.6.6 and 2.6.7.
2006-02-12 19:15:35 +00:00
Wayne Davison
71a84cbab0
Mention the ignoring of SIGXFSZ.
2006-02-11 02:37:58 +00:00
Wayne Davison
55e54e464b
We now ignore the SIGXFSZ signal (if it is defined).
2006-02-11 02:36:35 +00:00
Wayne Davison
467688dc06
More improvements for "--help", and a couple hyphenation fixes.
2006-02-11 00:02:15 +00:00
Wayne Davison
375d8f913b
Added a backward-compatibility note about -h to the --help option
...
in the help text.
2006-02-11 00:01:22 +00:00
Wayne Davison
021849204a
Fixed some typos, got rid of some extraneous spaces, got rid of
...
a hyphen in hard-link (since we consistently use it unhyphenated),
and refer to "unix" as "*nix".
2006-02-09 17:32:36 +00:00
Wayne Davison
b635f2e964
The -h was missing from the daemon's option summary.
2006-02-09 11:56:33 +00:00
Wayne Davison
1e2b96bbee
- Improved the description of how 'D' because 'D' and 'S' for -i.
...
- Improved the --devices and --specials item, and moved it next to
the --super item.
- Mention that "rsync -h" still works as before.
2006-02-09 10:25:25 +00:00
Wayne Davison
2857451ca2
Got rid of an statement that is no longer true.
2006-02-09 04:08:38 +00:00
Wayne Davison
2bc3835ee0
Preparing for release of 2.6.7pre1
2006-02-09 03:59:17 +00:00
Wayne Davison
4f417448b4
Updated the %i section.
2006-02-09 01:27:03 +00:00
Wayne Davison
503f163446
Decided against shortening the output of --itemize-changes.
2006-02-09 01:17:01 +00:00
Wayne Davison
f17e769e28
There's no need to send --size-only to a remote sender.
2006-02-09 01:15:04 +00:00
Wayne Davison
f65e6a1276
Tweaked the mention of --human-readable.
2006-02-08 17:03:00 +00:00
Wayne Davison
4c248a3615
Documented the change in the --human-readable option.
2006-02-08 16:54:10 +00:00
Wayne Davison
7794db7c0d
Tweaked the --human-readable code to work with the new option parsing.
2006-02-08 16:52:51 +00:00
Wayne Davison
3ca9e5d8ad
Changed -h to mean powers of 1000 when used once, and powers of 1024
...
when repeated. Got rid of --si.
2006-02-08 16:52:25 +00:00
Wayne Davison
5ca8a90c24
Tweaked the name of one of dest_mode()'s args.
2006-02-08 02:34:06 +00:00
Wayne Davison
0679ac4ca9
Tweaked a comment.
2006-02-08 02:32:35 +00:00
Wayne Davison
20a0269782
Mention --dry-run doesn't force --verbose.
2006-02-07 20:08:30 +00:00
Wayne Davison
a892d905bb
Don't force verbose for --dry-run; let the user decide.
2006-02-07 20:06:43 +00:00
Wayne Davison
bc880cb8d2
Don't look for $RSYNC_PARTIAL_DIR on the server side.
2006-02-07 19:12:37 +00:00
Wayne Davison
2243a9353e
Clarified something in "incoming chmod".
2006-02-07 18:45:16 +00:00
Wayne Davison
10f994a52a
Moved the delay-bit functions into util.c, making them more generic.
2006-02-07 18:15:51 +00:00
Wayne Davison
0f86c74eba
Call renamed cmp_time() function (was cmp_modtime()).
2006-02-07 18:15:46 +00:00
Wayne Davison
c2b5407678
- Renamed cmp_modtime() -> cmp_time().
...
- Moved the delay-bit functions here from receiver.c and transformed
them into some more generic "bitbag" functions.
2006-02-07 18:15:37 +00:00
Wayne Davison
350879d8d1
Only call the just-added "touch" if autoheader succeeded.
2006-02-07 17:30:35 +00:00
Wayne Davison
a6a276027c
Changed --8-bit to --8-bit-output.
2006-02-06 18:51:25 +00:00
Wayne Davison
45b79c8959
Mentioned --8-bit (-8).
2006-02-06 18:45:48 +00:00
Wayne Davison
d0022dd908
Document --8-bit (-8).
2006-02-06 18:43:12 +00:00
Wayne Davison
e0f4a661be
Don't setup ic_chck if --8-bit was specified.
2006-02-06 18:42:46 +00:00
Wayne Davison
507433f6ca
Don't call isprint() if --8-bit was specified.
2006-02-06 18:42:02 +00:00
Wayne Davison
5974c662ff
Added the --8-bit (-8) option.
2006-02-06 18:41:32 +00:00
Wayne Davison
aa0bec8a52
Ensure that the timestamp for config.h.in is changed after
...
running autoheader.
2006-02-06 18:27:45 +00:00
Wayne Davison
2d2f71fb27
Got rid of a newly-added trailing tab.
2006-02-06 18:00:37 +00:00
Wayne Davison
36f59b5802
Mention the new output-escaping idiom and the multibyte support.
2006-02-06 17:58:29 +00:00
Wayne Davison
7fc87d2daf
Allow the iconv_open() call to fail since we can now fall-back on
...
isprint(). Got rid of the "646" mapping kluge too.
2006-02-06 16:55:01 +00:00
Wayne Davison
3648ab3a24
- The iconv-supporting code can now ask filtered_fwrite() to use
...
isprint() when iconv() could not be setup.
- Changed the output idiom for escaped chars to use \#123 instead
of \0123 because that makes it possible for a script to know for
sure what version of rsync did the output (and thus, what the
unescape rules are).
2006-02-06 16:54:12 +00:00
Wayne Davison
7a9d183fc4
Have default_charset() try mapping "646" -> "ASCII" instead of "ascii".
2006-02-06 09:04:20 +00:00
Wayne Davison
2a62f5ee19
Added "const" to the default_charset() return.
2006-02-06 09:00:37 +00:00
Wayne Davison
f9cfaae952
Solaris 9 and HP-UX 11.11 need us to look for libiconv_open,
...
not iconv_open (perhaps because iconf.h wasn't included in
the autoconf test).
2006-02-06 08:57:16 +00:00
Wayne Davison
bd4576fe4b
Check to see if we need to include the iconv library.
2006-02-06 08:35:18 +00:00
Wayne Davison
4e194bf178
Mention the prepare-source script and the changes in the patches
...
dir.
2006-02-06 07:57:03 +00:00
Wayne Davison
ef4e0d5e7e
Added dependencies for proto.h.
2006-02-06 05:06:52 +00:00
Wayne Davison
e6d8e70925
The "proto" target now builds target "proto.h" from the new
...
prepare-source.mak makefile.
2006-02-06 04:54:30 +00:00
Wayne Davison
a6c5741c37
Changed the "proto" target to "proto.h".
2006-02-06 04:53:02 +00:00
Wayne Davison
3ea7fc6ccf
Moved the targets "gen", "proto", and "man" to prepare-source.mak.
2006-02-06 04:09:48 +00:00
Wayne Davison
20926fbd63
An easy way to run all the commands in prepare-source.mak.
2006-02-06 04:08:14 +00:00
Wayne Davison
2a3f3ba45d
Moved the rules for generating files such as configure, config.h.in,
...
proto.h, and the manpages into this separate makefile, allowing it to
be used without first running configure (which builds the Makefile).
2006-02-06 04:07:49 +00:00
Wayne Davison
662127e6c7
Include --no-g in the popt-alias example in --perms.
2006-02-05 15:31:31 +00:00
Wayne Davison
0be05d6038
In default_charset(): if nl_langinfo() gives us "646", return "ascii".
2006-02-05 07:20:10 +00:00
Wayne Davison
1f77038ef2
Added a missing comma.
2006-02-05 07:00:21 +00:00
Wayne Davison
77ed253c73
Some more improvements to --perms and --executability from Matt and me.
2006-02-05 06:40:18 +00:00
Wayne Davison
b988781801
Allow itemize() to flag ITEM_REPORT_PERMS anytime the permissions
...
change (even if -p or -E aren't set).
2006-02-05 06:13:34 +00:00
Wayne Davison
595251de24
Make sure that we don't try to use iconv() without iconv.h.
2006-02-05 04:52:11 +00:00
Wayne Davison
c85631421d
Changed HAVE_ICONV to HAVE_ICONV_OPEN.
2006-02-05 04:45:23 +00:00
Wayne Davison
12c8cd02fc
Switched back to checking for iconv_open() due to HP-UX.
2006-02-04 23:06:39 +00:00
Wayne Davison
9656de5d13
Call setup_iconv().
2006-02-04 22:03:44 +00:00
Wayne Davison
9a31746b10
Use iconv() (when available) to allow us to output multibyte
...
characters that are legal in the current locale.
2006-02-04 22:03:39 +00:00
Wayne Davison
ceccbacc34
The new function setup_iconv() initializes the ic_chck var.
2006-02-04 22:03:33 +00:00
Wayne Davison
ff2e2ccfc1
- Changed the check for iconv_open() to just iconv().
...
- Got rid of the --enable-iconv option for now.
2006-02-04 22:03:21 +00:00
Wayne Davison
12bda6f710
Don't do so much memory copying in mplex_write().
2006-02-04 21:52:32 +00:00
Wayne Davison
c53b6fd0ac
In the compatibility comments: mention why we don't use grep -q.
2006-02-04 19:44:19 +00:00
Wayne Davison
b31243b472
Test directory setgid inheritence when --perms is not in effect.
2006-02-04 19:42:47 +00:00
Wayne Davison
c8d19f90a6
Added a missing '(' in the opening comments.
2006-02-04 19:29:13 +00:00
Wayne Davison
114bafe0d0
Added a special permission (o+t) to one of the files in the test.
2006-02-04 19:28:45 +00:00
Wayne Davison
5ef8c5c6d4
Tweaked a function declaraion.
2006-02-04 19:27:07 +00:00
Wayne Davison
9b499e9537
- When not preserving permissions, ensure that a newly-created
...
directory's inherited sgid bit is preserved.
- When not preserving permissions, ensure that newly-created
files/dirs don't inherit any special permissions.
2006-02-04 19:09:46 +00:00
Wayne Davison
00f00f846b
Ignore setfacl unless it tells us that it supports the -k option.
2006-02-04 18:41:47 +00:00
Wayne Davison
998113fedf
Needed to make %G output "DEFAULT" when gid == GID_NONE.
2006-02-04 18:40:41 +00:00
Wayne Davison
ee5544112a
Improved the --partial-dir section.
2006-02-03 23:50:16 +00:00
Wayne Davison
7eaabd8fac
Decided to undo the last change to avoid backward compatibility
...
inconsistencies (it would have been the right thing to do if it
were done that way from the start, but not now).
2006-02-03 23:40:37 +00:00
Wayne Davison
4fc808dd98
Avoid adding our own exclude of the partial-dir name if the
...
user's filter rules already match it.
2006-02-03 23:16:46 +00:00
Wayne Davison
7cfb250c93
Made the new %M escape handle multiple spaces in the timestamp
...
(which can occur if the user's system doesn't have strftime()).
2006-02-03 22:41:19 +00:00
Wayne Davison
47f480b619
Removed completed items.
2006-02-03 20:49:25 +00:00
Wayne Davison
fa9e950b1a
Mention who is outputting the "rsync error" or "rsync warning".
2006-02-03 20:39:58 +00:00
Wayne Davison
49f4d850ce
Mention latest changes.
2006-02-03 20:32:27 +00:00
Wayne Davison
b3e15181ae
Log when someone requests a module list.
2006-02-03 20:28:19 +00:00
Wayne Davison
aca5500aea
Document the new "log format" options: %M (modtime), %U (uid),
...
%G (gid), and %B (perm bits).
2006-02-03 20:00:24 +00:00
Wayne Davison
427b6179b9
- Allow tab characters to appear in rwrite() messages.
...
- Added %M (modtime), %U (uid), %G (gid), and %B (perm bits) to
log_formatted().
2006-02-03 19:59:25 +00:00
Wayne Davison
afa73c75b5
A minor optimization to timestring.
2006-02-03 19:40:16 +00:00
Wayne Davison
8261af7422
Allow sigaction() to be used even if sigprocmask() isn't around
...
(or was manually disabled).
2006-02-03 18:48:26 +00:00
Wayne Davison
44e604f416
Simplified the conditional prior to the SIGACTION code.
2006-02-03 18:46:38 +00:00
Wayne Davison
5173f99e68
A slight tweak to the conditionalized definition of SIGACTION().
2006-02-03 18:34:09 +00:00
Wayne Davison
8a3d4658eb
Decided I don't like "set -x".
2006-02-03 17:58:48 +00:00
Wayne Davison
6b43924848
The calls to check_perms now pass a test number arg and
...
don't check for failure (it will die on failure).
2006-02-03 17:55:24 +00:00
Wayne Davison
eace352b39
Improved check_perms() to work with a directory, to have better
...
output on error, and to call test_fail on error.
2006-02-03 17:54:18 +00:00
Wayne Davison
fdbe8989fe
Moved check_perms() into rsync.fns and tweaked how it is called.
2006-02-03 17:29:43 +00:00
Wayne Davison
18d7e9f46e
Added a new function: check_perms().
2006-02-03 17:28:03 +00:00
Wayne Davison
c6fbd563d8
Matt's executability test with a few tweaks (e.g. to avoid using
...
"stat").
2006-02-03 06:47:26 +00:00
Wayne Davison
a5df33bb62
Scratch-dir normalization from Matt: turn off any default ACLs (if
...
setfacl is available) and disable any directory setgid bit to avoid
confusing some tests.
2006-02-03 06:15:46 +00:00
Wayne Davison
5cf4896050
Mention the sigaction() and sigprocmask() goodness.
2006-02-02 22:38:55 +00:00
Wayne Davison
2fb450bd99
Fixed a hang.
2006-02-02 22:34:30 +00:00
Wayne Davison
4ea58045e2
Moved the potential disabling of __attribute__ above the
...
relocated UNUSED() define.
2006-02-02 22:24:33 +00:00
Wayne Davison
29433538ff
Tweaked a couple lines in the code that handles --version.
2006-02-02 11:40:32 +00:00
Wayne Davison
d382140904
Changed default logfile setting from /var/adm/rsyncd.log to
...
/var/log/rsyncd.log.
2006-02-02 10:20:13 +00:00
Wayne Davison
b8e9c234e6
Changed sig_int() to use a standard signal-handler prototype.
2006-02-02 02:39:40 +00:00
Wayne Davison
60ee01f517
- Call SIGACTION() instead of signal().
...
- Umask all the signals we need using sigprocmask() (if available).
2006-02-02 02:39:29 +00:00
Wayne Davison
2b28968dfb
Call SIGACTION() instead of signal().
2006-02-02 02:39:25 +00:00
Wayne Davison
90b13cf606
- Moved definition of UNUSED() above inclusion of proto.h.
...
- Replaced definition of SIGNAL_CAST with new SIGACTION() define,
which will use sigaction() if it is available, else signal().
2006-02-02 02:39:19 +00:00
Wayne Davison
d81894fc21
Added checks for sigaction() and sigprocmask().
2006-02-02 02:32:39 +00:00
Wayne Davison
f5cbae9329
Look for public functions that return RETSIGTYPE.
2006-02-02 02:29:30 +00:00
Wayne Davison
7a6653bc6c
Ignore the --quiet option if someone sent it to us (which doesn't
...
happen when talking to a normal client).
2006-02-01 19:36:37 +00:00
Wayne Davison
72f2d1b384
When complaining about a socket-read problem, use an FSOCKERR
...
code instead of a normal FERROR. The generator is the only
process that will receive this, and it uses it to close down
the multi-I/O over the socket so that it won't ever hang trying
to write an error down a dead socket.
2006-02-01 19:35:17 +00:00
Wayne Davison
b66e31bf15
Turn an FSOCKERR into a normal FERROR if it's not going to our
...
sibling.
2006-02-01 19:33:12 +00:00
Wayne Davison
ea26c854af
Added FSOCKERR and MSG_SOCKERR (a sibling-only message).
2006-02-01 19:26:34 +00:00
Wayne Davison
ef1f62807e
We should be using wait_process(), not waitpid() directly.
2006-02-01 19:25:34 +00:00
Wayne Davison
d8aeda1e50
Changed a few "ret" variables to have better names.
2006-02-01 19:24:28 +00:00
Wayne Davison
07efba8ec0
The itemize() output now mentions -E permissions changes.
2006-01-31 06:25:46 +00:00
Wayne Davison
2959fe7447
Mention the --executability option.
2006-01-31 03:40:22 +00:00
Wayne Davison
4601589720
Another help-text tweak.
2006-01-31 03:11:07 +00:00
Wayne Davison
9f8225566e
Moved where --chmod was listed.
2006-01-31 03:05:24 +00:00
Wayne Davison
5e65c96705
Moved --chmod in the help output.
2006-01-31 03:04:00 +00:00
Wayne Davison
a9d6e6fcac
When permissions aren't being preserved, set them via the new
...
dest_mode() function.
2006-01-31 02:30:09 +00:00
Wayne Davison
860dcf68ad
Got rid of the orig_umask-based file->mode tweak in receive_file()
...
(which got moved into the dest_mode() function).
2006-01-31 02:30:05 +00:00
Wayne Davison
812848323b
Added the dest_mode() function: it figures out the permissions for
...
a file when we aren't preserving permissions, including the honoring
of the new --executability option.
2006-01-31 02:30:02 +00:00
Wayne Davison
344f9ba7fa
Added the --executability (-E) option.
2006-01-31 02:29:58 +00:00
Wayne Davison
2d5279ac9a
Documented the new --executability (-E) option, with improvements
...
to the --perms and --chmod sections as well.
2006-01-31 02:29:55 +00:00
Wayne Davison
fa3e4a0548
Mention the chmod utility's manpage number.
2006-01-31 02:26:49 +00:00
Wayne Davison
656c20715e
Mention that --chmod's work can still be masked by the receiving
...
end's umask when permissions are not being preserved.
2006-01-30 22:10:33 +00:00
Wayne Davison
a72885e042
Mention files-to-excludes.
2006-01-30 21:54:00 +00:00
Wayne Davison
b587adda1f
This perl script automates the conversion of a list of pathnames
...
to a set of includes/excludes needed for rsync to copy just the
listed files.
2006-01-30 21:52:17 +00:00
Wayne Davison
50fd4832c2
Mentioned the new "outgoing chmod" daemon option.
2006-01-30 21:47:23 +00:00
Wayne Davison
c094d9320d
Documented the new "outgoing chmod" daemon option.
2006-01-30 21:47:08 +00:00
Wayne Davison
aaccaa887d
Added support for the new "outgoing chmod" daemon option.
2006-01-30 21:47:02 +00:00
Wayne Davison
5481e42cd6
Mentioned the early-EOF bugfix (which was fixed a while ago).
2006-01-30 20:09:46 +00:00
Wayne Davison
b3964d1d86
Improved the documentation for --force.
2006-01-30 18:46:17 +00:00
Wayne Davison
e35d9f2d6d
I realized that there were instances where --force could still be
...
required to be combined with a delete option (if a non-dir was
overwriting a dir in a directory that was not included in the
transfer), so I extended the change I just made for --delete-after
to include all delete modes.
2006-01-30 18:45:57 +00:00
Wayne Davison
4d16780366
Allow --force to work even if --recurse was not specified.
2006-01-30 18:35:54 +00:00
Wayne Davison
1661fe9b0c
Made get_dirlist() always include directories.
2006-01-30 18:32:47 +00:00
Wayne Davison
63344ad4e1
Mention the latest improvements.
2006-01-30 18:19:55 +00:00
Wayne Davison
90cf7d199f
Allow a non-empty dir to be overwritten by a non-dir with all the
...
delete options (--delete-after used to require --force).
2006-01-30 18:14:02 +00:00
Wayne Davison
730df9d222
If the module has defined an "incoming chmod" option, call
...
parse_chmod() on it.
2006-01-30 17:53:38 +00:00
Wayne Davison
882d8c1cab
Added the "incoming chmod" config option.
2006-01-30 17:53:32 +00:00
Wayne Davison
17af842d2d
Document the new "incoming chmod" config option.
2006-01-30 17:53:27 +00:00
Wayne Davison
bbe42182df
Call the parse_chmod() with its new syntax.
2006-01-30 17:53:19 +00:00
Wayne Davison
81b096feef
Changed the way the parse_chmod() function is called.
2006-01-30 17:53:13 +00:00
Wayne Davison
7627e92c54
Added extern for io_write_phase.
2006-01-30 17:39:43 +00:00
Wayne Davison
f7bce90cf0
- Got rid of the externs for io_read_phase and io_write_phase.
...
- Added stub definition for chmod_mode_struct.
2006-01-30 17:39:34 +00:00
Wayne Davison
b33ce4c800
Moved the filter_outfile() function to rsync.fns.
2006-01-30 08:12:17 +00:00
Wayne Davison
757287d8a5
Moved the filter_outfile() function here since it was identical
...
in devices.test and itemize.test.
2006-01-30 08:11:50 +00:00
Wayne Davison
3ed8eafccb
The robust_rename() function now takes a "partialptr" arg that, if
...
non-NULL, will be used if we are forced to copy the file.
2006-01-30 07:18:16 +00:00
Wayne Davison
d8b1c923ef
The finish_transfer() function now takes a "partialptr" arg that, if
...
non-NULL, will be used if robust_rename() is forced to copy the temp
file.
2006-01-30 07:18:13 +00:00
Wayne Davison
4a4d2b1ba0
Call finish_transfer() with a valid partialptr string, when
...
appropriate.
2006-01-30 07:18:10 +00:00
Wayne Davison
12fa790ea0
Call finish_transfer() with its newly-added arg.
2006-01-30 07:18:06 +00:00
Wayne Davison
21955d9c92
Call robust_rename() with its newly-added arg.
2006-01-30 07:18:03 +00:00
Wayne Davison
a0d9819f8c
Document the side-effect that --partial-dir can have on --temp-dir.
2006-01-30 07:18:00 +00:00
Wayne Davison
a9af5d8eba
More improvements to --temp-dir.
2006-01-30 06:34:57 +00:00
Wayne Davison
65854cf91a
Changed the mode arg from an int to a mode_t.
2006-01-30 00:39:59 +00:00
Wayne Davison
9ec1ef2535
Improved the --temp-dir description and a couple other sentences.
2006-01-29 20:31:59 +00:00
Wayne Davison
36119f6e2a
- Renamed set_perms() to set_file_attrs().
...
- Use the renamed PERMS_* defines: ATTRS_*.
2006-01-29 20:30:24 +00:00
Wayne Davison
e912bd4dfb
- Use the renamed PERMS_* defines: ATTRS_*.
...
- Call the new name of set_perms(): set_file_attrs().
2006-01-29 20:30:18 +00:00
Wayne Davison
c3ef136d41
Call the new name of set_perms(): set_file_attrs().
2006-01-29 20:30:12 +00:00
Wayne Davison
8eda7a4bb8
Renamed the PERMS_* defines to ATTRS_* defines.
2006-01-29 20:30:07 +00:00
Wayne Davison
78d146e866
Use PERMSTRING_SIZE rather than a hard-wired "11".
2006-01-29 20:30:02 +00:00
Wayne Davison
77860bacd0
No need to send --partial when we're the receiver.
2006-01-29 19:17:13 +00:00
Wayne Davison
63cf5ae72c
Made a bunch of char* args const.
2006-01-29 18:52:53 +00:00
Wayne Davison
120cde9562
Avoid forwarding the --temp-dir option to the server when we're
...
the receiver.
2006-01-29 07:19:38 +00:00
Wayne Davison
e6ffb966dd
Made the new --prune-empty-dirs code a little more memory efficient.
2006-01-28 19:20:02 +00:00
Wayne Davison
207522aef5
Tweaked a variable name in flist_find().
2006-01-28 08:12:16 +00:00
Wayne Davison
a1cc199b34
We enforce at least protocol 29 for --prune-empty-dirs because the
...
file-list's sort order can be slightly wrong in older versions.
2006-01-28 07:40:52 +00:00
Wayne Davison
c22260706c
Don't add the "protect" filter rule for backup-suffix filenames
...
if --backup was not specified.
2006-01-28 01:55:55 +00:00
Wayne Davison
d5782b52a2
- We need to send exclude info from the client to a server-receiver
...
when --prune-empty-dirs was specified.
- Changed the output of debug include/exclude/show/hide/risk/protect
messages to use the appropriate filter terminology instead of
always using the (potentially unclear) include/exclude terms.
2006-01-28 00:14:02 +00:00
Wayne Davison
85aecef6c3
The user can now use a "protect" filter to avoid pruning one or
...
more empty directories when --prune-empty-dirs is in effect.
2006-01-28 00:13:59 +00:00
Wayne Davison
876c993680
Changed --skip-empty-dirs (-k) to --prune-empty-dirs (-m).
2006-01-28 00:13:55 +00:00
Wayne Davison
a272ff8c1b
Changed --skip-empty-dirs (-k) to --prune-empty-dirs (-m) and
...
improved the docs a bit more, including documenting how "protect"
filtering affects empty dirs.
2006-01-28 00:13:52 +00:00
Wayne Davison
7402d58369
Improved flist_find()'s empty-entry handling to deal with the case
...
where more entries may have been removed since the last find.
2006-01-27 14:29:58 +00:00
Wayne Davison
c0b134a445
Optimized flist_find() so that we never scan a series of empty
...
file-list items twice (which can be very important with the new
--skip-empty-dirs option). Also optimized the code that strips
root slashes in clean_flist().
2006-01-27 12:59:07 +00:00
Wayne Davison
a324d49bfc
Mention the --skip-empty-dirs option.
2006-01-27 01:20:11 +00:00
Wayne Davison
9c000f5e7b
Implement the new --skip-empty-dirs (-k) option.
2006-01-27 00:32:57 +00:00
Wayne Davison
0e887ef29a
Added the --skip-empty-dirs (-k) option.
2006-01-27 00:32:53 +00:00
Wayne Davison
fb72aaba48
Document the new --skip-empty-dirs (-k) option.
2006-01-27 00:32:49 +00:00
Wayne Davison
a3869e9227
Include popt.h using <popt.h> instead of "popt.h".
2006-01-26 22:32:59 +00:00
Wayne Davison
d671ccfc8e
Mention the change in the --itemize-changes output.
2006-01-26 22:32:18 +00:00
Wayne Davison
35bf8fa084
- Include popt.h using <popt.h>, not "popt.h".
...
- A minor twiddle in server_options().
2006-01-26 22:28:08 +00:00
Wayne Davison
f7916cbf3f
Mention --sockopts and an improvement to the testsuite environment.
2006-01-26 22:10:08 +00:00
Wayne Davison
2b7dab686c
The setting of HOME got moved to rsync.fns.
2006-01-26 21:23:25 +00:00
Wayne Davison
a98cad00eb
Set $HOME to $scratchdir so that our tests are not affected by
...
anything unexpected, such as a ~/.popt file.
2006-01-26 21:22:57 +00:00
Wayne Davison
facdce2c1f
Fixed two typos.
2006-01-26 12:41:52 +00:00
Wayne Davison
34937987a6
Make use of the new sockopts variable.
2006-01-26 12:31:47 +00:00
Wayne Davison
831f06a5a5
Added the --sockopts option.
2006-01-26 12:31:24 +00:00
Wayne Davison
5fe3c86f25
Mention the --sockopts option.
2006-01-26 12:31:14 +00:00
Wayne Davison
04f48837d1
Document the new --sockopts option.
2006-01-26 12:30:20 +00:00
Wayne Davison
f5b14759fb
Mentioned the --super option.
2006-01-26 11:14:10 +00:00
Wayne Davison
def97ff9a9
Added the --super option.
2006-01-26 11:10:32 +00:00
Wayne Davison
d38772e06f
Document the new --super option and how it affects other options.
2006-01-26 11:10:28 +00:00
Wayne Davison
351f5e2f6c
Check MY_UID() directly instead of accessing am_root.
2006-01-26 11:01:00 +00:00
Wayne Davison
8778174936
Mention new --specials option and --devices change.
2006-01-26 10:50:18 +00:00
Wayne Davison
e5f6a04d15
The itemized output for the fifo changed.
2006-01-26 10:39:04 +00:00
Wayne Davison
f8d47c1cb4
Added 'S' to the itemized output for special files.
2006-01-26 10:39:01 +00:00
Wayne Davison
b5c6a6aeeb
Handle separated devices and special files.
2006-01-26 10:38:58 +00:00
Wayne Davison
4e7d07c8d4
Document the new --specials option and how -D and --devices now work.
2006-01-26 10:38:54 +00:00
Wayne Davison
fc2dd77ec7
One more minor tweak.
2006-01-25 17:34:39 +00:00
Wayne Davison
7b6fa00ff8
Decided to hold off on the potential memory savings of indexed
...
uid/gid pairs until the next release.
2006-01-25 17:10:29 +00:00
Wayne Davison
9ac3591366
Added testing of the --itemize-changes output for devices.
2006-01-24 22:23:51 +00:00
Wayne Davison
6a819e02da
Changed to handle removed 'a' slot in %i output.
2006-01-24 22:23:14 +00:00
Wayne Davison
4cff7c50db
Fixed a problem in the output of %i's 'T' flag on devices and
...
got rid of the unused 'a' flag.
2006-01-24 22:22:17 +00:00
Wayne Davison
669302a172
Got rid of the description of 'a' in the %i flags.
2006-01-24 22:14:40 +00:00
Wayne Davison
c738605098
Got rid of some debug code.
2006-01-24 21:40:43 +00:00
Wayne Davison
90cf838b18
Dump some debug code.
2006-01-24 21:39:10 +00:00
Wayne Davison
67e4043e8c
Optimized id_pair() so that clumps of IDs get handled more
...
efficiently.
2006-01-24 19:39:09 +00:00
Wayne Davison
5e58e3f9cf
The uid & gid are now stored using an id_pair structure.
2006-01-24 19:02:55 +00:00
Wayne Davison
49140b27c6
Another small improvement to the --one-file-system option.
2006-01-24 19:02:48 +00:00
Wayne Davison
9cdadbb13a
The in_del_hier code needs to use lastname instead of thisname
...
because the latter gets cleaned and (possibly) sanitized.
2006-01-24 17:26:24 +00:00
Wayne Davison
0ace7b2567
FERROR messages also need to leave leading newlines unmangled.
2006-01-24 01:07:19 +00:00
Wayne Davison
ccb8f5788b
Tweaked the copyright message.
2006-01-23 18:48:12 +00:00
Wayne Davison
4e5baafedf
More improvements to the -x option (some from Matt & some from me).
2006-01-22 21:04:21 +00:00
Wayne Davison
0e82af2d27
New -x code had some problems, so restore the old code for now
...
(keeping the more optimal stat() calling, though).
2006-01-22 20:37:00 +00:00
Wayne Davison
535737bf39
New -x code had some problems, so restore the old code for now.
2006-01-22 20:30:56 +00:00
Wayne Davison
6e6cc16399
Matt's disambiguation.
2006-01-21 21:02:13 +00:00
Wayne Davison
bb0d8edfad
- Got rid of the filesystem_dev variable now that --one-file-system
...
is handled in a new way.
- Moved a stat out of delete_in_dir() into do_delete_pass() to make
--delete-during more efficient.
- Added a missing "#ifdef SUPPORT_LINKS...#endif" block around some
symlink code.
2006-01-21 20:59:19 +00:00
Wayne Davison
ebec5eb689
- Changed how --one-file-system works so that we can skip all mount
...
points (including "bind" mounts).
- The --chmod option now affects devices (only skipping symlinks).
2006-01-21 20:59:16 +00:00
Wayne Davison
5cb31dcf92
Fixed a problem with the FLAG_* defines.
2006-01-21 20:16:37 +00:00
Wayne Davison
0ccffd7c80
Disable popt aliases when we're a server so that any user-redefined
...
options can't cause a compatibility problem.
2006-01-21 20:15:49 +00:00
Wayne Davison
57b66a2458
A tweak to --dirs and --chmod.
2006-01-21 19:55:47 +00:00
Wayne Davison
b8a39ed58a
Use the new saw_delete* variables to ensure that the server side
...
always reads the exclude information when it is present.
2006-01-21 19:54:14 +00:00
Wayne Davison
f5a910dd73
- We now set some saw_delete* vars to keep track of the case where
...
we disabled a delete option that the client sent us (since we may
still need to await exclude information from the client in such a
case).
- If -d and --delete are in effect without -r, we may need to send
the -d to the server even if it was implied, and we may need to
send --no-r to the server to ensure that we don't get into a
protocol-corrupting situation should the remote rsync disable the
--delete option (this works because the --no-r option was added in
the same version as the functionality which allows --delete to
work with -d sans -r.
2006-01-21 19:52:55 +00:00
Wayne Davison
e16adcdff3
- Allow multiple --chmod options to be specified.
...
- Call parse_chmod() with its new arg.
2006-01-21 09:14:42 +00:00
Wayne Davison
cf9b4794fd
Tweaked parse_chmod() so that it takes a pointer to an existing list
...
of chmod items (or NULL) and appends the new items onto the end.
2006-01-21 09:14:39 +00:00
Wayne Davison
6d8c6bdbe5
Document the new --one-file-system behavior, with improvements to
...
the option's text taken from Matt's patch in bugzilla.
2006-01-21 08:10:45 +00:00
Wayne Davison
8bbe41b53b
Handle the --chmod option as either the sender or the receiver so
...
that only the client needs to know about --chmod (but if an older
version sends the option to the server, we'll still handle it).
2006-01-21 08:03:18 +00:00
Wayne Davison
ba30fb5c3c
For a local rsync, turn off the --chmod option on the receiving
...
side so that only the sending side does the work.
2006-01-21 07:58:35 +00:00
Wayne Davison
0938e8eee5
We don't ever need to send the --chmod option to the remote rsync.
2006-01-21 07:53:40 +00:00
Wayne Davison
3b17384631
Implemented the -xx behavior that skips mount-point dirs.
2006-01-21 01:20:03 +00:00
Wayne Davison
243c995f5f
Allow the -x option to be repeated.
2006-01-21 00:36:15 +00:00
Wayne Davison
96b87581ff
- Changed send_file_entry() into a static function again.
...
- Made send_file_entry() derive the base_flag value from *file.
- Added a flags arg to make_file().
- The flag we send to send_file_name() is a FLAG_* value, not an
XMIT_* value.
2006-01-20 21:21:43 +00:00
Wayne Davison
3de73827d7
Call make_file() with one more arg (the base flags).
2006-01-20 21:21:36 +00:00
Wayne Davison
458aeea4a6
Mentioned the addition of -ii.
2006-01-20 19:33:24 +00:00
Wayne Davison
14cbb64539
Document the behavior of -ii.
2006-01-20 18:52:52 +00:00
Wayne Davison
a9e4762634
Handle the extra output needed when log_format_has_i > 1.
2006-01-20 18:49:38 +00:00
Wayne Davison
487094a0d7
Allow the --itemize-changes (-i) option to be repeated to indicate
...
that unchanged files should also be itemized.
2006-01-20 18:49:07 +00:00
Wayne Davison
f608ebb106
Got rid of unused function u_strcmp().
2006-01-20 00:14:04 +00:00
Wayne Davison
87001ac6c2
Improved a sentence.
2006-01-19 21:21:28 +00:00
Wayne Davison
ede1f0ebc9
The code in send_file_list() needed a little more improvement to
...
handle --relative really well:
- We must set "is_dot_dir" when we strip off a trailing "/" or "/.".
- If a trailing "/" or "/." caused us to treat a symlink as a dir,
we now pass our stat() info down to make_file() so that it will
always treat the cleaned-up name as a dir too.
- We must not strip a leading "/".
- Improved the check for ".." elements in the implied dirs.
2006-01-19 21:16:44 +00:00
Wayne Davison
b435d7174c
Added a new arg to the make_file() call.
2006-01-19 21:16:40 +00:00
Wayne Davison
2a59d2cc31
Another bugfix.
2006-01-19 19:05:49 +00:00
Wayne Davison
b8595e609a
In delete_in_dir(), skip a directory that isn't really a directory on
...
the local disk (can easily happen if --dry-run was specified).
2006-01-19 18:53:48 +00:00
Wayne Davison
d37bc73a48
Mention the changes made in recent checkins.
2006-01-19 07:34:41 +00:00
Wayne Davison
1902a7652f
When --relative is active, simply trim off trailing slashes and
...
dot dirs. Also, reject a ".." dir if it would be sent as part
of the relative path.
2006-01-19 01:43:10 +00:00
Wayne Davison
6ab423a5b6
- Fixed the --help and --version output to avoid using embedded
...
newlines (which are no longer allowed in rprint()).
- Updated the Copyright info for 2006.
2006-01-17 04:26:12 +00:00
Wayne Davison
c2be690cc6
Got rid of a few empty lines.
2006-01-17 02:16:57 +00:00
Wayne Davison
f5a49d0e44
Got rid of a now-unused static variable.
2006-01-17 01:26:35 +00:00
Wayne Davison
03e23e0730
A few more items to check for, including libcharset.h, langinfo.h,
...
locale_charset(), and nl_langinfo().
2006-01-15 14:52:12 +00:00
Wayne Davison
eb598fac4f
- Improved get_local_name() using ideas from Matt McCutchen's
...
version: lots more comments, and a "local name" copy now
does a chdir to the parent dir of the destination file.
- Moved the setlocale() call prior to the parse_arguments() call.
2006-01-15 07:11:23 +00:00
Wayne Davison
be0602ec3c
- We now filter all rwrite() output when it goes out to the terminal
...
to make sure that it contains readable characters.
- Got rid of the buf[len] = '\0' in rwrite().
- Call f_name() with revised args (which also replaces f_name_to()).
2006-01-14 20:26:28 +00:00
Wayne Davison
6cbde57d88
Call f_name() with revised args (which also replaces f_name_to()).
2006-01-14 20:26:23 +00:00
Wayne Davison
5e4ff5f9c5
Merged f_name() with f_name_to().
2006-01-14 20:26:20 +00:00
Wayne Davison
18e1289f27
Defined new FNAME logcode enum (only used on the client side when
...
logging a filename).
2006-01-14 20:26:17 +00:00
Wayne Davison
99aaa6ca25
Fixed a couple out-of-memory function-name strings in make_file().
2006-01-14 17:19:12 +00:00
Wayne Davison
24172e4b2f
If the --human-readable option is in effect, output the size of
...
each file in human-readable units instead of a raw byte count.
2006-01-14 17:10:52 +00:00
Wayne Davison
beaf495400
Added a "continue" missing from a recent change.
2006-01-14 00:29:50 +00:00
Wayne Davison
79f48760f3
Added --enable-iconv and cleaned up the other enable/disable options.
2006-01-13 23:05:16 +00:00
Wayne Davison
785abd4802
Got rid of the safe_fname() function and the calls to it.
2006-01-13 22:06:34 +00:00
Wayne Davison
0ee6ca9800
Got rid of calls to the (soon to vanish) safe_fname() function.
2006-01-13 22:06:31 +00:00
Wayne Davison
7543020807
Fixed a bug in the explode_mode code that was causing a crash
...
on BSD systems.
2006-01-13 21:40:26 +00:00
Wayne Davison
47b50b9bd0
We now use lib/compat.o when building wildtest.
2006-01-13 21:38:43 +00:00
Wayne Davison
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
0ee32c62d3
Improved a couple sentences.
2006-01-13 21:10:11 +00:00
Wayne Davison
70e98a4348
Changed RSYNC_ARGn to RSYNC_ARG#.
2006-01-12 19:35:54 +00:00
Wayne Davison
fddf529df9
Mention the new RSYNC_ARGn environment variables for pre-xfer exec.
2006-01-12 19:24:25 +00:00
Wayne Davison
141c62659e
We now send all the option args to the pre-exec command.
2006-01-12 19:15:31 +00:00
Wayne Davison
61e16468f0
We need to call clearerr() when getc() returns EOF with errno == EINTR.
2006-01-06 22:20:07 +00:00
Wayne Davison
b74b3d538e
+ Changed two buffers to use BIGPATHBUFLEN instead of MAXPATHLEN+512.
...
+ Changed a strncpy() call into a (more appropriate) memcpy() call.
+ Made the ellipsis[] string static because some older compilers may
not like the dynamic initialization of a character string.
+ Expanded some 1-line "case ... break;" statements onto separate
lines.
2006-01-05 02:29:16 +00:00
Wayne Davison
d3db3eef1b
Document the new "dir/***" feature.
2006-01-02 17:46:32 +00:00
Wayne Davison
90d5b12e72
Added a test for the new "dir/***" feature.
2006-01-02 17:46:27 +00:00
Wayne Davison
955a3a3ded
We now test all the patterns using both a normal wildtest run and
...
a wildtest run with various -x and -e options.
2006-01-02 17:46:24 +00:00
Wayne Davison
aec75b037b
Added -x and -e options, which are used to exercise wildmatch_array().
2006-01-02 17:46:21 +00:00
Wayne Davison
e5daa2731a
We use the new wildmatch_array() and litmatch_array() functions to
...
make our include/exclude code easier to read and maintain, and to
eliminate a buffer copy when handling an absolute-path pattern
(which eliminated the full_name[] buffer). Also added handling
for the new MATCHFLG_WILD3_SUFFIX define that allows a string that
ends with "dir/***" to match the "dir" as well as its contents.
2006-01-02 17:46:18 +00:00
Wayne Davison
390621a7ab
Added a new function, wildmatch_array(), that lets the caller pass
...
the text-string as an array of strings (with a terminating NULL
pointer at the end). Also added litmatch_array(), which does a
literal match (no wildcards or special chars) against an array of
strings.
2006-01-02 17:46:15 +00:00
Wayne Davison
478bb47c40
The latest prototypes.
2006-01-02 17:46:12 +00:00
Wayne Davison
685517abd1
Added MATCHFLG_WILD3_SUFFIX define, shuffling a few others to put
...
it in a nice spot.
2006-01-02 17:46:09 +00:00
Wayne Davison
515afe7cf1
Mention dont-compress fix.
2005-12-30 07:24:17 +00:00
Wayne Davison
ec497df1a0
Optimized set_compression() to remove the per-file strdup(), strlower(),
...
and free() calls (it now uses iwildmatch()).
2005-12-30 07:19:16 +00:00
Wayne Davison
8e74463643
- Added a new public function, iwildmatch(), which will treat all
...
upper-case letters in the "text" as lower-case.
- Renamed variable "ch" -> "p_ch" and "prev" -> "prev_ch".
- Added variable "t_ch" to hold the current *text value.
- Return ABORT_ALL if we reach the end of the text string with
more pattern to match.
2005-12-30 07:12:48 +00:00
Wayne Davison
933d1dfd0f
Added a prototype for iwildmatch().
2005-12-30 07:09:34 +00:00
Wayne Davison
0fe987e226
Fixed a bug in set_compression() where the default dont-compress
...
patterns (e.g. *.gz) would not match a pathname containing a slash.
2005-12-30 06:03:40 +00:00
Wayne Davison
770de8994e
- Renamed match_start -> anchored_match.
...
- Twiddled one comment and added another.
- Twiddled the placement of two else statements.
2005-12-24 08:00:12 +00:00
Wayne Davison
37cf7b4191
Improved the usage info in the opening comment.
2005-12-19 16:57:55 +00:00
Wayne Davison
1a3ef40da9
A few extra directory-style matching tests.
2005-12-19 02:30:59 +00:00
Wayne Davison
0314302e9c
Added an anchored exclude to a filter file.
2005-12-19 02:23:57 +00:00
Wayne Davison
9639c71842
+ Put --existing back in the main option summary.
...
+ Improved the discussion of wildcard characters.
2005-12-19 02:18:16 +00:00
Wayne Davison
d2da915cd0
Made --existing the main option, with --ignore-non-existing
...
as its alias.
2005-12-19 01:59:00 +00:00
Wayne Davison
e725abcf4e
Added a comment, improved a comment, tweaked the recursive function's
...
name, tweaked the arg names to wildmatch(), and tweaked the style of
the "else" statements when they follow a brace.
2005-12-18 19:40:50 +00:00
Wayne Davison
de01941274
Tweaked the name of the first arg to wildmatch().
2005-12-18 19:38:47 +00:00
Wayne Davison
d802ea54da
Fixed one config-file reference that was misspelled.
2005-12-18 15:48:00 +00:00
Wayne Davison
c81a20fb7a
Tweaked the debug output for cvs_filter_list and server_filter_list.
2005-12-17 21:03:25 +00:00
Wayne Davison
6bf32edb8c
Return RERR_SIGNAL1 from sigusr1_handler().
2005-12-16 23:48:34 +00:00
Wayne Davison
4a50a2176e
Added RERR_SIGNAL1's message and tweaked ERR_SIGNAL.
2005-12-16 23:48:31 +00:00
Wayne Davison
9e90555fd1
Added RERR_SIGNAL1 to separate SIGUSR1 from the rest of the
...
signals that return RERR_SIGNAL.
2005-12-16 23:48:28 +00:00
Wayne Davison
2067ec7342
Mentioned the auto-protect rule for --backup.
2005-12-16 17:20:22 +00:00
Wayne Davison
c2c5682c0b
If the user specifies --backup with --delete (but without --backup-dir
...
and --delete-excluded), append a protect-filter rule onto the list of
filter rules. We run this on both the client and server side so that
an older client talking to a newer server still gets the protection
rule. (This rule will not cause compatibility problems with older
versions of rsync due to the graceful way that a protect rule turns
into an exclude rule if it needs to be sent to an older server.)
2005-12-16 17:18:29 +00:00
Wayne Davison
4c72f27dd9
Document the new auto-added protect filter-rule when using --backup
...
with --delete (but without --backup-dir and --delete-excluded).
2005-12-16 17:18:26 +00:00
Wayne Davison
36d8d1a626
- Added a comment about configure figuring out the default user
...
and group to use in daemon mode.
- Belatedly updated the version of popt that comes with rsync.
- Updated the Mac OS X info.
2005-12-16 16:57:26 +00:00
Wayne Davison
3447d61048
Fixed a bug in the hard-linking of a group of fifos/devices in a
...
transfer where the leader got hard-linked to a --link-dest item.
2005-12-16 04:02:54 +00:00
Wayne Davison
a3887c2644
Improved the RERR_SIGNAL message to include all possible signals.
2005-12-16 00:18:41 +00:00
Wayne Davison
8a1f3153b9
Mention the improvements in the comare-dest/link-dest/copy-dest handling.
2005-12-15 23:00:23 +00:00
Wayne Davison
165dd4a636
Improved the tests we run to test more output variations and to work
...
with the new way link-dest handles symlinks.
2005-12-15 23:00:05 +00:00
Wayne Davison
541b23d144
When compare-dest/link-dest/copy-dest are in effect, we now check
...
if the file we're about to hard-link to the leader is present in
one of the dest dirs -- if it is, we adjust the text we output
accordingly.
2005-12-15 23:00:02 +00:00
Wayne Davison
7987ece7cc
The ITEM_NO_DEST_AND_NO_UPDATE define is no longer needed.
2005-12-15 22:59:59 +00:00
Wayne Davison
48224e4c43
Improved the compare-dest/link-dest/copy-dest code to make it more
...
readable, to make it output properly in double-verbose mode, and
to allow the hard-linking of symlinks and devices (if supported by
the OS).
2005-12-15 22:59:56 +00:00
Wayne Davison
6d4ecad122
- Eliminate an all-dot itemization for a locally-copied file.
...
- Got rid of some redundant output in maybe_log_item().
2005-12-15 22:59:53 +00:00
Wayne Davison
1578919c37
Improved an old bullet point.
2005-12-15 21:23:44 +00:00
Wayne Davison
10a1d6b4a0
Use AC_SEARCH_LIBS() instead of AC_CHECK_LIB() to figure out if
...
we need to include libresolv or not.
2005-12-14 22:54:54 +00:00
Wayne Davison
2b7e12924d
Mention that the MD4 password protection is weaker than
...
previously thought.
2005-12-14 22:14:26 +00:00
Wayne Davison
82f0c63e8a
Parse single- and double-quotes in the --rsh/-e option (and RSYNC_RSH).
2005-12-14 22:00:01 +00:00
Wayne Davison
5d9530fe47
Mention new quote-parsing for the --rsh/-e and RSYNC_RSH handling.
2005-12-14 21:59:11 +00:00
Wayne Davison
37f35d89d1
Made msg_list_push() static and renamed it to msg_list_flush().
2005-12-08 21:19:22 +00:00
Wayne Davison
08c88178aa
Tweaked the msg_list code so that the head and tail pointers
...
are contained by a structure.
2005-12-08 21:01:38 +00:00
Wayne Davison
0fb2fc4a1d
Fixed a typo in a comment.
2005-12-08 16:12:25 +00:00
Wayne Davison
da2d13e3ce
Improved/fixed some of the entries.
2005-11-29 15:53:18 +00:00
Wayne Davison
64318670a8
Improved the description of how --delay-updates chooses it's dir.
2005-11-16 16:12:04 +00:00
Wayne Davison
3c19f72c16
Made the parsing in parse_size_arg() a little more strict.
2005-11-15 17:49:59 +00:00
Wayne Davison
8938d67ef8
Fixed a typo in the --help output for --no-OPTION.
2005-11-15 07:05:55 +00:00
Wayne Davison
05724c07cf
Changed -h to be an alias for --human-readable (getting rid of -m).
...
Also added backward-compatibility code so that "rsync -h" shows the
help page on stdout like it would in older versions.
2005-11-15 06:35:27 +00:00
Wayne Davison
955c3145c3
Document the change in the -h option.
2005-11-15 06:35:22 +00:00
Wayne Davison
8ea17b5098
Twiddled some brace positions and removed a superfluous ';' in a macro.
2005-11-14 21:24:30 +00:00
Wayne Davison
b20fe0e6ac
Improved an error message.
2005-11-13 17:15:00 +00:00
Wayne Davison
24787acd08
Moved the DEL_* flags into generator.c.
2005-11-12 20:30:40 +00:00
Wayne Davison
d71dad3bd3
Moved the DEL_* flags from rsync.h here and got rid of DEL_NO_RECURSE.
2005-11-12 20:30:36 +00:00
Wayne Davison
889439c205
Mention the latest options.
2005-11-12 20:08:10 +00:00
Wayne Davison
bee9df73c1
Changed the parsing of suffixes for --min-size and --max-size a little.
2005-11-12 20:08:00 +00:00
Wayne Davison
60613dc896
Output the stats and the end-of-run verbose output using the new
...
human_num() and human_dnum() functions, which both honor the
new --human-readable option.
2005-11-12 19:53:26 +00:00
Wayne Davison
e175fb07f7
Added two new functions: human_num() and human_dnum(), which
...
output numbers in human-readable units if the --human-readable
option was specified.
2005-11-12 19:53:23 +00:00
Wayne Davison
4a70af6f81
Added the human_readable variable (for linking with util.o).
2005-11-12 19:53:20 +00:00
Wayne Davison
8f14cc496b
Parse the new --human-readable (-m) option.
2005-11-12 19:53:17 +00:00
Wayne Davison
3b4ecc6b80
Document the new --human-readable (-m) option.
2005-11-12 19:53:12 +00:00
Wayne Davison
a7e60f0c59
Only call cleanup_set() if keep_partial is set.
2005-11-10 16:57:30 +00:00
Wayne Davison
3d7cc5710d
If cleanup_set() gets passed a NULL fnametmp or fname, set
...
cleanup_fname to NULL.
2005-11-10 16:56:32 +00:00
Wayne Davison
86fc7e6880
Got rid of a superfluous newline.
2005-11-10 16:47:52 +00:00
Wayne Davison
acee11fc60
- Indent the "oom:" label away from column 0.
...
- Got rid of a superfluous newline.
2005-11-10 16:47:27 +00:00
Wayne Davison
b2e7c91313
Indent the "prepare_to_open:" and "notify_others:" labels away
...
from column 0.
2005-11-10 16:47:03 +00:00
Wayne Davison
97b7bff4d6
- Got rid of a superfluous empty line.
...
- Indent the "oom:" and "skip_filters:" labels away from column 0.
2005-11-10 16:45:00 +00:00
Wayne Davison
e16ca9ef31
Got rid of a superfluous empty line.
2005-11-10 16:44:06 +00:00
Wayne Davison
b2e6caa01e
Indent the "failure:" label away from column 0.
2005-11-10 16:43:44 +00:00
Wayne Davison
2997e9f769
Indent the "oom:" label away from column 0.
2005-11-10 16:42:46 +00:00
Wayne Davison
2374023982
Mention the big improvement when --delete and --checksum were
...
specified.
2005-11-10 06:43:10 +00:00
Wayne Davison
902f03d101
In make_file(), only compute the checksum when we're the sender.
...
This stops computing useless checksums during the delete scan
when --checksum (-c) was specified.
2005-11-10 06:01:55 +00:00
Wayne Davison
cfe3978049
Use the new checksum_len value instead of recomputing the
...
right value for the current protocol_version over and over.
2005-11-10 03:07:18 +00:00
Wayne Davison
7752df41b7
Compute the right checksum length for the current protocol_version
...
only once instead of over and over again.
2005-11-10 03:00:38 +00:00
Wayne Davison
d8b108c2a1
If a partial-dir file is present but the main file is up-to-date,
...
just remove the partial-dir file.
2005-11-10 02:56:58 +00:00
Wayne Davison
184dd27a18
Call delete_in_dir(NULL, NULL, NULL) in do_delete_pass().
2005-11-09 19:46:42 +00:00
Wayne Davison
0e5665d3ab
Made recursively deleting extraneous directories more memory
...
efficient by removing the need for a MAXPATHLEN buffer on the
stack of delete_item().
2005-11-09 19:39:46 +00:00
Wayne Davison
ef3bb69ad8
Mention the new --chmod option.
2005-11-07 04:47:06 +00:00
Wayne Davison
45d41d08bd
Test the --chmod option.
2005-11-07 04:28:52 +00:00
Wayne Davison
dd32e2c3d4
Added support for the new --chmod option.
2005-11-07 04:28:35 +00:00
Wayne Davison
2b7e0f33a6
Call tweak_mode() on regular files and dirs if --chmod was specified.
2005-11-07 04:28:32 +00:00
Wayne Davison
0582cdae8d
Added chmod.o to OBJS2.
2005-11-07 04:28:29 +00:00
Wayne Davison
9e8ea423e2
Document the new --chmod option.
2005-11-07 04:28:23 +00:00
Wayne Davison
0c983c1fd4
New --chmod support routines.
2005-11-07 04:23:22 +00:00
Wayne Davison
3381ffa6ea
Fixed a sign error in the output.
2005-11-03 19:55:30 +00:00
Wayne Davison
3b15340966
Mention the change in the output of --progress.
2005-11-03 19:46:45 +00:00
Wayne Davison
91683c434b
Make the just-updated file-count status even less cryptic.
2005-11-03 19:45:59 +00:00
Wayne Davison
9e7530c414
Improved the output of the transferred-file count and the position
...
in the flist (which was changed to a countdown of files to check)
so that it's clearer what the numbers mean.
2005-11-03 19:38:14 +00:00
Wayne Davison
8fd30fc43c
Got rid of some early-checksum code that accidentally got committed.
2005-11-02 07:22:02 +00:00
Wayne Davison
b1b04fcdd4
Mention lower stack requiements for recursion.
2005-11-01 20:13:20 +00:00
Wayne Davison
56f0c976be
Decreased the amount of stack needed for each level of directory
...
recursion by eliminating the need for a MAXPATHLEN buffer in
send_if_directory(). Also improved a few variable names in
send_file_list().
2005-11-01 20:09:41 +00:00
Wayne Davison
9aacb4df0e
Fixed a typo pointed out by Peter Strazovec.
2005-10-30 22:29:59 +00:00
Wayne Davison
0fdb1aa8ff
In the device section, avoid calling unlink() if the stat() failed.
2005-10-30 22:28:11 +00:00
Wayne Davison
bad0110609
Document the new --compress-level option.
2005-10-26 16:48:44 +00:00
Wayne Davison
3cc185a088
Handle new def_compress_level setting.
2005-10-26 16:48:07 +00:00
Wayne Davison
e8a8167ad9
Obey new def_compress_level setting.
2005-10-26 16:47:49 +00:00
Wayne Davison
854a1aad35
Added --compress-level option.
2005-10-26 16:47:15 +00:00
Wayne Davison
84e6d6fdcd
- Changed the "status" variables into "exit_code" variables.
...
- Added an error message to wait_process_with_flush() that
reports the errno we get when waitpid() fails.
- Increased the value of MAXCHILDPROCS.
2005-10-26 15:53:04 +00:00
Wayne Davison
f14a65d94c
Tweaked the error message for RERR_WAITCHILD.
2005-10-26 15:50:14 +00:00
Wayne Davison
37439b36e7
Updated the docs for pre-/post-xfer exec.
2005-10-24 21:03:53 +00:00
Wayne Davison
c95ca2a228
Enhanced the "pre-xfer exec" handling so that it gets the user's
...
request info and puts that into the environment as RSYNC_REQUEST.
2005-10-24 21:03:50 +00:00
Wayne Davison
97d8e7095f
Changed wait_process() into a simpler, yet more versatile function,
...
and used it in the new wait_process_with_flush() function (the old
function's new name). Made wait_process() public.
2005-10-24 21:03:47 +00:00
Wayne Davison
20c1926a01
Fixed a typo in a comment.
2005-10-20 18:30:33 +00:00
Wayne Davison
d030233def
Get rid of some superfluous empty lines.
2005-10-19 07:49:10 +00:00
Wayne Davison
35812ea1f9
One extra tweak to the just-committed code.
2005-10-15 19:15:29 +00:00
Wayne Davison
d649b78920
Added relative_paths extern.
2005-10-15 19:11:36 +00:00
Wayne Davison
7e43da819e
If we're sanitizing paths with --relative enabled, we need to
...
preserve the first /./ dir so that we can use its position to
trim the implied directories.
2005-10-15 19:08:31 +00:00
Wayne Davison
40aaa571b4
Document --ignore-non-existing (not --existing) and what happens
...
if the option is combined with --ignore-existing.
2005-10-15 16:39:31 +00:00
Wayne Davison
470319d33b
Changed the --help text to mention --ignore-non-existing
...
instead of --existing.
2005-10-15 16:38:35 +00:00
Wayne Davison
1db954e9bc
Made parse_size_arg()'s parsing a little stricter.
2005-10-15 06:53:04 +00:00
Wayne Davison
d697314b42
Mention --min-size/--max-size changes.
2005-10-14 20:40:31 +00:00
Wayne Davison
59dd678603
Documented --min-size.
2005-10-14 20:16:21 +00:00
Wayne Davison
02b5cb238b
Added code to implement the --min-size logic.
2005-10-14 20:16:09 +00:00
Wayne Davison
74de13d19c
Added handling of the --min-size option.
2005-10-14 20:15:18 +00:00
Wayne Davison
837d01dd5a
Improved parse_size_arg() a little more.
2005-10-14 19:48:34 +00:00
Wayne Davison
926d86d1f9
Document the extended parsing of --max-size values.
2005-10-14 19:03:05 +00:00
Wayne Davison
aeb213ea0c
Improved parse_size_arg() so that it can be told to use powers of
...
ten instead of binary K/M/G powers, and so that it can be told to
add or subtract one from the result. We also make sure to pass
the arg to --max-size in a compatible manner with older versions.
2005-10-14 18:56:07 +00:00
Wayne Davison
7c6ea3d8c7
Fixed a typo in an option name.
2005-10-12 23:59:00 +00:00
Wayne Davison
d409c6ac9c
Mention va_copy change.
2005-10-11 20:21:56 +00:00
Wayne Davison
92f0b9d6ab
If va_copy is defined, use it when defining VA_COPY.
2005-10-11 20:21:03 +00:00
Wayne Davison
2c8c8bbaad
Pass XFLG_ABS_IF_SLASH instead of XFLG_ANCHORED2ABS for server excludes.
2005-10-07 18:40:30 +00:00
Wayne Davison
4fc8140a60
Support new XFLG_ABS_IF_SLASH flag.
2005-10-07 18:39:40 +00:00
Wayne Davison
699f7024f1
Added XFLG_ABS_IF_SLASH.
2005-10-07 18:38:25 +00:00
Wayne Davison
ce0da32a9c
Mention recent changes.
2005-10-07 18:24:35 +00:00
Wayne Davison
82360c6b17
Clarify how the fitler rule "-/" works.
2005-10-07 18:18:16 +00:00
Wayne Davison
493568465b
Improved the usage comments.
2005-10-04 04:12:28 +00:00
Wayne Davison
bf485d3d6b
A simple filter script to output messages from a single module.
2005-10-03 18:40:59 +00:00
Wayne Davison
e90aab4982
Changed the variable names for --existing and --ignore-existing.
2005-09-29 18:07:55 +00:00
Wayne Davison
550d4e2346
Reverted one xfer_dirs change from the last commit that should not
...
have gone in.
2005-09-29 17:27:11 +00:00
Wayne Davison
991daf008d
Keeping silent about stat() errors is never a good idea -- it hides
...
files that are not up-to-date.
2005-09-29 17:07:45 +00:00
Wayne Davison
505ada146c
Mention that --delete now works with --dirs.
2005-09-29 08:15:34 +00:00
Wayne Davison
75c51953f1
- When --dirs is specified w/o --recursive, avoid marking solo dirs
...
with the XMIT_TOP_DIR flag.
- Only set in_del_hier if --recursive is enabled.
2005-09-29 07:48:05 +00:00
Wayne Davison
8d6c1c4e97
Allow deletions to occur in directories transferred with the
...
--dirs option in addition to the regular --recursive behavior.
2005-09-29 07:41:50 +00:00
Wayne Davison
10a1a3f511
Fixed a poorly-worded sentence and a misspelled word.
2005-09-29 07:37:00 +00:00
Wayne Davison
40e6752fba
Some systems don't define WCOREDUMP(), so #ifdef that code.
2005-09-26 17:41:14 +00:00
Wayne Davison
dbefb6b4e4
Fixed wait_process() to handle cases where waitpid() fails or
...
the child process did not exit cleanly.
2005-09-26 17:12:13 +00:00
Wayne Davison
6016841086
Changed RERR_CRASH to RERR_CRASHED.
2005-09-26 17:11:03 +00:00
Wayne Davison
0047f535ef
Handle new RERR_CRASH AND RERR_TERMINATED exit codes.
2005-09-26 17:07:50 +00:00
Wayne Davison
90eca40d27
Defined RERR_CRASH and RERR_TERMINATED.
2005-09-26 17:06:33 +00:00
Wayne Davison
0417c34e2d
Mention some chanages in the patches dir.
2005-09-26 04:47:25 +00:00
Wayne Davison
d64c2b226a
Use AC_HELP_STRING() in the two AC_ARG_WITH() macros that used a
...
hard-wired string.
2005-09-24 17:17:30 +00:00
Wayne Davison
868676dc15
Reordered the usage lines to cover push, then pull (which has a
...
better visible pattern than covering push & pull for each host-type).
2005-09-21 22:39:49 +00:00
Wayne Davison
e31058d41e
Cast some time values to (int), just to silence some warnings on
...
Stratus VOS.
2005-09-21 17:42:15 +00:00
Wayne Davison
ea8291d8f7
Include limits.h (if it exists), which defines NAME_MAX on some
...
systems.
2005-09-21 17:38:44 +00:00
Wayne Davison
1348267518
If we get less data than expected from a read() in map_ptr(), we
...
need to try to keep reading to see if we get an error or more data.
2005-09-21 17:37:41 +00:00
Wayne Davison
f0323d68eb
Check for limits.h.
2005-09-21 17:35:51 +00:00
Wayne Davison
12a01be14f
Tweaked the output that the mknod() tests generate.
2005-09-21 17:15:58 +00:00
Wayne Davison
e0a18ce3f7
Tweaked some comments.
2005-09-19 17:21:00 +00:00
Wayne Davison
8ad5cea371
Changed one strcpy() into a strlcpy().
2005-09-17 21:49:24 +00:00
Wayne Davison
9059e0ac2f
Improved the sDefault initialization so that the prefixed
...
comments exactly match the variable names (making sure that
they will sort exactly the same way as the variables).
2005-09-16 20:35:05 +00:00
Wayne Davison
29fad7a3d8
Got rid of some old command-line parsing code that was only
...
useful when talking to a 1.x client.
2005-09-16 16:40:30 +00:00
Wayne Davison
02efda9f01
Mention '!' fix.
2005-09-16 16:14:24 +00:00
Wayne Davison
35a388b141
Really fix '!' in a .cvsignore file this time.
2005-09-16 16:10:01 +00:00
Wayne Davison
9a4a237ede
Tweaked the code a little in the always_checksum handling of the
...
send & receive file-list functions.
2005-09-16 05:52:54 +00:00
Wayne Davison
5efbddbadb
Mention that the dir used with --delay-updates cannot be on a
...
different filesystem from the destination files.
2005-09-15 22:27:14 +00:00
Wayne Davison
6a94c58b00
Added a comment.
2005-09-15 22:25:55 +00:00
Wayne Davison
e3f8395360
Mention doc changes.
2005-09-15 17:19:30 +00:00
Wayne Davison
f2b4c0840e
Removed conflicting ssh citation in the SETUP section.
2005-09-15 15:36:27 +00:00
Wayne Davison
08d82b84cb
The --help text was outputting some incomplete information on how
...
SRC is expanded or word-split, so I removed that text and replaced
it with an explaination of how ':' differs from '::' & 'rsync://'.
2005-09-13 01:02:54 +00:00
Wayne Davison
fbe57fdc95
Mention the latest fix.
2005-09-09 17:07:39 +00:00
Wayne Davison
92cdc39372
When pop_dir(olddir) fails, pass the right string pointer
...
in the error message.
2005-09-09 16:17:01 +00:00
Wayne Davison
78be8e0fc9
Improved the -F, --exclude-from, and --include-from sections.
2005-09-09 07:27:25 +00:00
Wayne Davison
a5b786d80f
Tweaked the calculation that goes into sum->count so that it cannot
...
overflow into a negative value (which is particularly important if
configure didn't find a real int64 type).
2005-09-06 18:12:38 +00:00
Wayne Davison
f853b777be
Complicate the lseek64() function prototype because some systems
...
don't have off64_t.
2005-09-03 16:56:53 +00:00
Wayne Davison
fed1f3f4fe
Make use of the per-module "temp dir" setting.
2005-09-03 16:50:20 +00:00
Wayne Davison
18cad44967
Added a per-module "temp dir" setting.
2005-09-03 16:24:23 +00:00
Wayne Davison
d17c9a4486
Sorted some of the data structures (using vim's "!sort" command
...
makes it easy).
2005-09-03 16:22:06 +00:00
Wayne Davison
b6e22a47d3
- Allow --no-v and --no-verbose in the daemon options.
...
- If a too-long --temp-dir is specified when starting a daemon,
omplain to the daemon-starting user, not later to the client.
2005-08-30 16:13:54 +00:00
Wayne Davison
ec69bdbd64
Mention latest changes.
2005-08-30 05:12:49 +00:00
Wayne Davison
a8cbb57c9b
Mention how --inplace conflicts with --sparse and how --append
...
does not.
2005-08-30 05:10:51 +00:00
Wayne Davison
b8cc35874e
Allow --temp-dir to be specified with --daemon to set the default.
2005-08-30 05:00:56 +00:00
Wayne Davison
c3851185f3
Fixed a comment.
2005-08-30 02:59:30 +00:00
Wayne Davison
e7ee91defc
When --append is entering the redo phase, make sure that
...
sparse_files is disabled (because it conflicts with an
inplace update).
2005-08-30 02:58:42 +00:00
Wayne Davison
cfce9f6dc3
Reject attempts to combine --sparse with --inplace.
2005-08-30 02:57:19 +00:00
Wayne Davison
4afcb709a7
Forgot the --no-v option.
2005-08-28 00:43:51 +00:00
Wayne Davison
a912a980ec
Mention the new --no-* options.
2005-08-28 00:34:46 +00:00
Wayne Davison
2c64b25827
A small improvement to the daemon-connecting instructions.
2005-08-28 00:25:44 +00:00
Wayne Davison
38b9170c52
One more tweak to the option data.
2005-08-27 21:12:44 +00:00
Wayne Davison
f40aa6fb07
Documented the new --no-* options.
2005-08-27 21:07:27 +00:00
Wayne Davison
b616493883
Added the ability to prefix "no-" to various options, which gives the
...
user an easy way to override implied option switches.
2005-08-27 21:01:45 +00:00
Wayne Davison
e86e2fa173
A little more reordering of the option data.
2005-08-27 20:43:35 +00:00
Wayne Davison
11bfaf6351
Reordered some of the option data to make their grouping more logical.
2005-08-27 20:01:45 +00:00
Wayne Davison
d37d1c44ff
Make the --append docs a little better.
2005-08-20 17:21:06 +00:00
Wayne Davison
c89330313e
Moved a variable in glob_expand_one().
2005-08-03 04:51:29 +00:00
Wayne Davison
c9dc1300ba
Got rid of the argp var that is not needed now that argv is no
...
longer a literal array.
2005-08-03 04:42:56 +00:00
Wayne Davison
53cf0b8bfb
Improved the --relative section a little more.
2005-08-03 01:13:15 +00:00
Wayne Davison
56961becc2
Mention the latest changes.
2005-08-01 22:18:11 +00:00
Wayne Davison
1dc42d123d
Improved the --relative section, including mentioning the addition
...
of dot-dir path trimming.
2005-08-01 22:18:00 +00:00
Wayne Davison
d2ea5980ba
Allow the user to specify a dot dir in the source path when
...
using --relative, making it trim the duplicated dirs.
2005-08-01 21:58:16 +00:00
Wayne Davison
15cf186b85
Don't recreate a device if just the permissions bits have changed
...
in the st_mode.
2005-08-01 04:09:58 +00:00
Wayne Davison
4fdb03a648
Mention hard-link fix.
2005-07-31 23:21:46 +00:00
Wayne Davison
8f5b554f0b
Hard-link a device in order to test that this works properly.
2005-07-31 23:20:12 +00:00
Wayne Davison
8cd3db27b6
There is no longer a need to check file->link_u.links at the start
...
of hard_link_check() (because the caller has already checked it).
2005-07-31 23:19:42 +00:00
Wayne Davison
273a7ed59f
Fixed the handling of hard-linked symlinks and devices.
2005-07-31 23:18:28 +00:00
Wayne Davison
23deb0bcee
Export RUNSHFLAGS.
2005-07-31 23:15:38 +00:00
Wayne Davison
7ea7bebf6b
Mention the --inplace new-file permissions fix.
2005-07-30 16:17:21 +00:00
Wayne Davison
97894c6473
- The combination of --update and --progress now outputs progress
...
information during the checksum scan of the already-sent data.
- When --inplace creates a file, give it 0600 permissions, not 0000.
2005-07-30 16:14:22 +00:00
Wayne Davison
1f86fcf5dc
The combination of --update and --progress now outputs progress
...
information during the checksum scan of the already-sent data.
2005-07-30 16:13:19 +00:00
Wayne Davison
bb9bdba4c9
Improved the text around the last example in the USAGE section.
2005-07-29 19:52:50 +00:00
Wayne Davison
5b9cc6953a
Mention the latest changes.
2005-07-29 18:48:58 +00:00
Wayne Davison
33544bf422
- Use BIGPATHBUFLEN for the length of several buffers.
...
- If io_printf() tries to overflow the buffer, die with
an error instead of sending a truncated buffer.
2005-07-29 18:31:12 +00:00
Wayne Davison
20accf4d06
- Use BIGPATHBUFLEN for the length of two line buffers.
...
- Improved the handling of the start_glob variable.
- Made the line buffer in start_daemon() a little bigger.
2005-07-29 18:31:10 +00:00
Wayne Davison
3fac51e21e
Use BIGPATHBUFLEN for the length of two line buffers.
2005-07-29 18:31:07 +00:00
Wayne Davison
d999d312c4
Use BIGPATHBUFLEN for the length of a line buffer.
2005-07-29 18:31:05 +00:00
Wayne Davison
a22ca88565
Define BIGPATHBUFLEN -- a roomy line-buffer that can hold a
...
MAXPATHLEN string plus a message, and it's at least 4096+1024
bytes for those systems where MAXPATHLEN is overly short.
2005-07-29 18:31:03 +00:00
Wayne Davison
9ec8bd87bb
Updated to match 2.6.6 release (which occurred on a branch).
2005-07-28 20:00:43 +00:00
Wayne Davison
f11ece28ff
Changed the version to 2.6.7cvs.
2005-07-28 19:49:47 +00:00
Wayne Davison
f90f71498e
Updated to reflect new 2.6.7cvs status.
2005-07-28 19:49:24 +00:00
Wayne Davison
32199c6b00
Removed a duplicated item.
2005-07-28 18:17:56 +00:00
Wayne Davison
870dddc5eb
Mention the recent changes.
2005-07-28 17:42:56 +00:00
Wayne Davison
9d0d18b590
If the user has specified "pre-xfer exec" or "post-xfer exec", run
...
the indicated command(s), each at the appropriate time.
2005-07-28 17:15:47 +00:00
Wayne Davison
bec617b934
Added 2 new config options: "pre-xfer exec" and "post-xfer exec".
2005-07-28 17:15:44 +00:00
Wayne Davison
c20936b88b
Document the new pre-/post-xfer exec config options.
2005-07-28 17:15:42 +00:00
Wayne Davison
0869881764
Regenerated.
2005-07-28 16:58:04 +00:00
Wayne Davison
a840b5c736
Removed one more client-oriented command-line syntax sentence.
2005-07-28 09:40:08 +00:00
Wayne Davison
2907884f94
Removed erroneous section on using daemon features over a
...
remote-shell connection -- client-use is better described in the
rsync manpage, and the advanced restricted-ssh section needs a
better treatment (perhaps as a support script).
2005-07-28 09:36:12 +00:00
Wayne Davison
754a080ffc
Improved the sections dicussing the various types of transfer
...
connections and how a normal transfer differs from a daemon
transfer.
2005-07-28 09:18:20 +00:00
Wayne Davison
94f20a9f45
Document new --append option.
2005-07-28 01:46:16 +00:00
Wayne Davison
6cc1198288
Support new --append option.
2005-07-28 01:46:12 +00:00
Wayne Davison
a015788d21
Added the --append option.
2005-07-28 01:46:09 +00:00
Wayne Davison
c8d3465726
- Call set_modtime() with its new mode arg.
...
- Don't mask the mode bits being sent to do_chmod().
- Don't skip calling set_modtime() or do_chmod() when the item
is a symlink.
2005-07-27 23:30:58 +00:00
Wayne Davison
00b9618460
- Fixed the mode comparison in itemize() to mask off the bits
...
outside of the CHMOD_BITS mask.
- Don't call do_chmod() unless HAVE_CHMOD is defined.
- Don't mask the mode bits being sent to do_chmod().
2005-07-27 23:30:55 +00:00
Wayne Davison
d11f5c6e2b
- Don't call do_chmod() unless HAVE_CHMOD is defined.
...
- Made do_chmod() handle symlinks or return 1 if not possible.
- We now mask off the mode bits in do_chmod() sing CHMOD_BITS.
2005-07-27 23:30:53 +00:00
Wayne Davison
25007999df
- Changed set_modtime() to take the file's mode as an arg.
...
- Made set_modtime() handle symlinks or return 1 if not possible.
2005-07-27 23:30:51 +00:00
Wayne Davison
8ce6546310
Check for the lchmod() and lutimes() functions.
2005-07-27 23:18:28 +00:00
Wayne Davison
151f59f155
Tweaked a comment and some null-char assignments.
2005-07-22 19:09:45 +00:00
Wayne Davison
89f2a4c231
Changed implied_dirs to only be non-0 if relative_paths is non-0.
2005-07-22 19:05:25 +00:00
Wayne Davison
496be30db6
Got rid of some unused externs.
2005-07-22 17:59:21 +00:00
Wayne Davison
cd426074e1
Updated to zlib 1.2.3.
2005-07-22 15:54:43 +00:00
Wayne Davison
3f7bfac2a0
Avoid newest test when no destination was specified.
2005-07-15 19:10:03 +00:00
Wayne Davison
9425918d74
Output a syntax error if both the source and destination are remote.
2005-07-15 19:06:43 +00:00
Wayne Davison
cc637fcc51
Preparing for release of 2.6.6pre1
2005-07-07 22:53:59 +00:00
Wayne Davison
9db1743490
Mentioned the zlib changes and tweaked a couple sentences.
2005-07-07 22:50:12 +00:00
Wayne Davison
ba3542cfcb
- Attempt to make the discussion of host-specifying args less confusing.
...
- Fixed the names of the uid and gid daemon options in a sentence.
2005-07-07 21:33:40 +00:00
Wayne Davison
81f5b275db
Changes for new zlib.
2005-07-07 21:29:57 +00:00
Wayne Davison
f3ee726894
Fixed a typo.
2005-07-07 21:19:14 +00:00
Wayne Davison
b5be9e6c5f
Fix latest zlib security exploit (CAN-2005-2096).
2005-07-07 21:14:29 +00:00
Wayne Davison
1e1cf68934
Upgraded to version 1.2.2.
2005-07-07 20:48:02 +00:00
Wayne Davison
4a2744cee3
One more "#undef BAD" for AIX.
2005-07-07 20:37:31 +00:00
Wayne Davison
12febd804f
Use a define to handle conflicting function read_buf instead of
...
renaming it in the code.
2005-07-07 20:17:35 +00:00
Wayne Davison
687c6b14a0
Changed "Overflow" back to "overflow".
2005-07-07 20:16:41 +00:00
Wayne Davison
a1f99493b3
Changed overflow() to overflow_exit().
2005-07-07 19:49:14 +00:00
Wayne Davison
9819f005b6
Changed zBAD back to BAD (with a simpler kluge for AIX).
2005-07-07 19:31:23 +00:00
Wayne Davison
2a6793bf1f
Fixed some whitespace to match the original source.
2005-07-07 19:22:55 +00:00
Wayne Davison
bf287ee946
Got rid of bogus RCS keyword expansions (that create differences
...
between these files and the original zlib source).
2005-07-07 19:15:44 +00:00
Wayne Davison
b8b0668e85
Mention the EEXIST fix.
2005-06-30 17:18:30 +00:00
Wayne Davison
092906933b
Ignore EEXIST on second mkdir() call.
2005-06-30 17:03:14 +00:00
Wayne Davison
e8432be95f
Mention the latest time-comparing fixes.
2005-06-28 00:15:44 +00:00
Wayne Davison
6ff2f4ba67
Use cmp_modtime() in a couple more spots where a local modtime is
...
compared with a remote modtime.
2005-06-28 00:12:08 +00:00
Wayne Davison
309a5be873
Fixed test to work when objdir != srcdir (thanks to Art Haas).
2005-06-24 02:14:12 +00:00
Wayne Davison
26c87bb630
Changed the arg-splitting code so that it can handle a literal
...
backslash prior to whitespace without treating it as escaped
whitespace (e.g. if we receive "foo\\ bar", it is two args,
while "foo\ bar" and "foo\\\ bar" are each just one).
2005-06-23 15:58:57 +00:00
Wayne Davison
ea9b2add97
Tweaked a comment in the perl code we output.
2005-06-23 15:53:26 +00:00
Wayne Davison
301569f081
Improved a couple sentences.
2005-06-20 07:01:29 +00:00
Wayne Davison
b21456102a
Changed the code to use the single long-option hash from cull_options.
2005-06-17 23:23:00 +00:00
Wayne Davison
b8a47c9bc6
- Fixed a bug where the --*-dest options weren't being culled.
...
- Simplified the output format by putting all the long-name
options into a single hash.
2005-06-17 23:16:22 +00:00
Wayne Davison
85fbfa10a8
- Improved some comments (some taken from the new cull-options output).
...
- Made the user-config sections easier to find.
- Default to running a fully-specified rsync executable so that there
are not PATH surprises.
- A few minor tweaks to the arg-checking code to make it clearer without
actually changing its logic.
2005-06-17 16:48:02 +00:00
Wayne Davison
555bc0e31a
Another readability improvement in the perl code we output.
2005-06-17 16:29:21 +00:00
Wayne Davison
ef1233cbb3
Improved some of the comments that are output into the perl code.
2005-06-17 16:12:05 +00:00
Wayne Davison
1524815ed3
- Make sure that the command contained the '.' arg at the end of the
...
options.
- Fixed the expanding of wildcards for a restriction of '/'.
2005-06-17 05:14:15 +00:00
Wayne Davison
985af7035e
- Be restrictive on matching the --sender option so that the user
...
can't fool us into thinking we're the sender by using a filename
of --sender (or similar ploy).
- Make sure that our '..' check can't be fooled by sly backslashing.
- Tweaked some comments.
2005-06-17 04:50:22 +00:00
Wayne Davison
b3181708f2
Output a leading comment and surrounding blank lines.
2005-06-17 04:46:02 +00:00
Wayne Davison
3f6c17cf14
Mention rrsync changes.
2005-06-17 01:26:33 +00:00
Wayne Davison
2e5a7629c0
If SUBDIR is specified as a non-absolute path, make it absolute.
2005-06-17 01:17:44 +00:00
Wayne Davison
70318468df
- Made it easy to configure the path of the rsync executable.
...
- Fully parse all legal options that might come from a stock rsync and
validate/restrict any option's args (previously we rejected options
with args).
- Made it easy to disable specific options.
- Properly handle a multi-arg copy's multiple args.
- Make sure that the restricted dir actually exists and we can chdir
to it.
- Just reject any dangerous args that have .. in them instead of trying
to munge them.
- We don't treat single-or double-quotes specially, just backslash-
escaped characters.
- Turn on strict mode.
- Use the array-arg version of exec() so that we don't spawn a shell.
- Use File::Glob to glob wildcards in args.
- Tweaked the log-file format so that it logs the modified command
without any "OK" suffix.
2005-06-16 19:30:53 +00:00
Wayne Davison
782d109121
A developer-oriented script that outputs perl code for valid server
...
options.
2005-06-16 19:17:47 +00:00
Wayne Davison
30e7b0b28d
Mention latest fix.
2005-06-12 06:10:14 +00:00
Wayne Davison
910ee8c92e
In clean_flist(), fixed the setting of the flist->high value for an
...
empty list so that it can't cause a crash if it gets passed to
flist_find().
2005-06-12 06:07:23 +00:00
Wayne Davison
8af1bc9011
- Added a comment to the filter_outfile function.
...
- Twiddled where the calls to filter_outfile happen.
2005-06-10 23:36:57 +00:00
Wayne Davison
6a12f0d619
Simplified the regular expressions for sed due to problems on some
...
OSes.
2005-06-10 21:56:52 +00:00
Wayne Davison
4f3be36e30
- Put the output we're expecting into an rsync.chk file, for easier
...
debugging on failures.
- Added the function filter_outfile() and used it in place of the
various output-filtering commands.
- Use the sed rules for filtering the combination of --itemized
output with double-verbose output so that we're sure there's no
superfluous lines being output (which the old grep filtering
would have ignored).
2005-06-10 20:33:57 +00:00
Wayne Davison
fc9d64c947
Several expansions of $srcdir were not double-quoted.
2005-06-10 20:04:42 +00:00
Wayne Davison
db10766ab2
One expansion of $srcdir wasn't double-quoted.
2005-06-10 20:04:11 +00:00
Wayne Davison
a3dcb79085
One more instance of the umask kluge was needed.
2005-06-10 18:02:14 +00:00
Wayne Davison
20667b6d7f
Mention backup change.
2005-06-10 17:58:39 +00:00
Wayne Davison
93e28fbd99
Fixed a problem in the backing up of symlinks and devices: we
...
need to remove any old symlink/device/file to create the backup.
Also fixed a couple minor logic errors in the handling of symlinks
and devices. NOTE: the code still doesn't handle the changing of
a name from a dir to a non-dir or visa versa (which is a very old
deficiency in the code).
2005-06-10 17:57:18 +00:00
Wayne Davison
87a57a3072
Use umask kluge from rsync.fns to try to get rid of a potential
...
permissions difference when copying symlinks.
2005-06-10 17:51:33 +00:00
Wayne Davison
bad1fa4476
Make the sed commands compatible with Solaris (hopefully).
2005-06-10 17:21:52 +00:00
Wayne Davison
8fe27e7631
Starting NEWS for 2.6.6.
2005-06-10 17:17:38 +00:00
Wayne Davison
a1c75ed05c
Aged news from NEWS file.
2005-06-10 17:17:24 +00:00
Wayne Davison
e73ad2be54
Got rid of some potentially unhandled permissions differences.
2005-06-10 17:06:43 +00:00
Wayne Davison
59b0e7a82d
Changed the "max verbosity" setting from global to per-module.
2005-06-10 16:57:43 +00:00
Wayne Davison
b4fc3987f2
Use the new NOBODY_USER and NOBODY_GROUP configure defines.
2005-06-10 16:50:09 +00:00
Wayne Davison
58418cb0c4
Added a simple check to see if the /etc/group file has the
...
group "nobody" or "nogroup".
2005-06-10 16:46:50 +00:00
Wayne Davison
5794112ad0
Test that our outputting of itemized messages (as well as
...
double-verbose output) is happening correctly.
2005-06-09 22:27:59 +00:00
Wayne Davison
f2b6fe44a6
- Fixed the overzealous outputting of unchanged hard-linked items
...
when verbose > 1.
- An unchanged hard-link with -i (log-format w/%i) now changes the
trailing dots to spaces.
2005-06-09 22:27:22 +00:00
Wayne Davison
215b444cae
Don't set ITEM_REPORT_TIME when a hard-linked file is already
...
linked up as it should be and --times was not enabled.
2005-06-09 21:57:45 +00:00
Wayne Davison
a45f581b2a
- Never output the '"FOO" is a hard link' message when -i (%i)
...
output is enabled.
- Go back to outputting '"FOO" is a hard link' message when -i (%i)
is not enabled and verbose > 1.
2005-06-09 21:56:11 +00:00
Wayne Davison
dfdd71ecff
Updated version to 2.6.6cvs.
2005-06-09 21:18:26 +00:00
Wayne Davison
2dfe1c37ad
Preparing for release of 2.6.5
2005-06-02 03:57:58 +00:00
Wayne Davison
b9949780f4
Improved a few of the items.
2005-06-02 03:54:00 +00:00
Wayne Davison
5fe857d4be
One more configure item.
2005-06-01 16:21:41 +00:00
Wayne Davison
3d86c6b18f
Mention HAVE_REMSH fix.
2005-05-31 06:09:42 +00:00
Wayne Davison
0f0b2e66b8
Simplified the last change a bit.
2005-05-27 18:15:18 +00:00
Wayne Davison
5d24ee71ad
Test for various past problems with --relative.
2005-05-27 18:09:34 +00:00
Wayne Davison
3a05c5d3ce
If we unduplicate '.', make sure we also copy FLAG_DEL_HERE (in
...
addition to FLAG_TOP_DIR), so that the unduplication of a real
dir and an implied dir (implied by --relative) works right.
2005-05-27 18:04:04 +00:00
Wayne Davison
89ec535af5
- Only define HAVE_REMSH if it is going to have a non-0 value.
...
- Got rid of ssh warning that was added for 2.6.0.
2005-05-27 16:41:19 +00:00
Wayne Davison
e96d7972c4
Improved the opening comment.
2005-05-26 18:00:09 +00:00
Wayne Davison
962a3f0b6e
Mention the latest bug-fix.
2005-05-25 15:52:03 +00:00
Wayne Davison
cbb5fa4f07
Handle nested "." dirs (caused by --relative and a trailing slash or
...
a trailing "/.") in f_name_cmp() when dirname is not an identical
pointer.
2005-05-25 01:24:01 +00:00
Wayne Davison
b57907efb2
Mention the output change for a mount-dir when -x is used.
2005-05-22 20:53:18 +00:00
Wayne Davison
26beb7861f
- Don't stop deleting in a dir if one item fails.
...
- Don't skip deleting in a dir if the initial rmdir fails
(2.6.4 only continued if it was a non-empty error).
2005-05-22 20:52:32 +00:00
Wayne Davison
6e8b9f1341
Must check FLAG_MOUNT_POINT in delete_in_dir() to avoid starting a
...
descent into a mounted directory when -x is specified.
2005-05-22 17:19:16 +00:00
Wayne Davison
6efe94167f
Improved the SYMBOLIC LINKS section, as suggested by John.
2005-05-20 17:57:31 +00:00
Wayne Davison
51cc96e469
Improved a --files-from example (as suggested by Paul).
2005-05-20 17:39:10 +00:00
Wayne Davison
bdedced84b
Tweaked a sentence.
2005-05-19 22:16:50 +00:00
Wayne Davison
f497ad722d
Preparing for release of 2.6.5pre2
2005-05-19 21:45:41 +00:00
Wayne Davison
339eb8943e
Tweaked the opening comments.
2005-05-19 21:42:20 +00:00
Wayne Davison
c36864e40e
Mentioned the improved keep-alive code.
2005-05-19 21:38:25 +00:00
Wayne Davison
af6155bb0e
Clarifications related to --dirs.
2005-05-19 21:36:30 +00:00
Wayne Davison
605fed4b46
Periodically call maybe_send_keepalive() when timeouts are in effect
...
(this ensures that the receiver doesn't timeout when we're still
doing work reading data from the generator).
2005-05-19 08:52:24 +00:00
Wayne Davison
ac40b74788
The global allowed_lull is now already set, so just set lull_mod.
2005-05-19 08:52:22 +00:00
Wayne Davison
3e6ddb3738
- Call the new set_io_timeout() function to set the timeout value.
...
- If the user specified a shorter timeout than the config-file,
don't override the shorter value.
2005-05-19 08:52:19 +00:00
Wayne Davison
9ac756c6ea
- The variable allowed_lull is now our global.
...
- Tweaked the --timeout option handling to call set_io_timeout().
2005-05-19 08:52:17 +00:00
Wayne Davison
3b0a30eba8
- Added set_io_timeout(), which sets all the timeout-dependent
...
variables when the timeout value changes.
- Split last_io into last_io_in and last_io_out.
- Made select_timeout static.
2005-05-19 08:52:13 +00:00
Wayne Davison
bac7259081
The latest bug-fix.
2005-05-19 00:02:29 +00:00
Wayne Davison
4d474ad513
One place that was testing errno for ENOTEMPTY was failing to
...
also test for EEXIST (which is returned by some OSes).
2005-05-19 00:00:28 +00:00
Wayne Davison
e50e82ab40
Fixed a typo.
2005-05-18 23:59:12 +00:00
Wayne Davison
4922175589
Two more items.
2005-05-17 15:08:05 +00:00
Wayne Davison
a289f89fbe
Treat a trailing ".." dir-name as if "../" had been specified so
...
that we don't use the name in the destination path and save files
into a higher destination directory.
2005-05-14 18:44:57 +00:00
Wayne Davison
ba64001df8
Mention the latest bug fix.
2005-05-13 23:03:00 +00:00
Wayne Davison
b225b089b8
Have do_delete_pass() immediately return if list_only is set.
2005-05-13 23:00:20 +00:00
Wayne Davison
557a35f55b
If adding a trailing dot to a directory name overflows
...
MAXPATHLEN, die with an overflow error.
2005-05-13 22:02:24 +00:00
Wayne Davison
1848fd6fa1
An example filter script to maintain .cvsinclude files.
2005-05-13 18:37:11 +00:00
Wayne Davison
f2a4853c93
Improved the use of the "remaining" var in readfd_unbuffered() to
...
make certain that the static value is always set correctly anytime
we call out to another function.
2005-05-12 17:36:29 +00:00
Wayne Davison
e65154085c
Got rid of some code from writefd_unbuffered() that was only needed
...
back when the generator had a writeable pipe to the receiver.
2005-05-12 07:45:21 +00:00
Wayne Davison
e4676bb59b
Make the --stats output come out after any delete-after messages.
2005-05-12 07:43:14 +00:00
Wayne Davison
3b968014c9
Improved a few sentences.
2005-05-12 07:34:45 +00:00
Wayne Davison
21b9b93377
Fixed a typo.
2005-05-10 18:31:46 +00:00
Wayne Davison
c4d1b2983d
Preparing for release of 2.6.5pre1
2005-05-10 17:28:34 +00:00
Wayne Davison
7d7a34aeb2
Added more missing NEWS items.
2005-05-10 17:27:39 +00:00
Wayne Davison
65c84700fc
Mention two more changes.
2005-05-10 16:55:22 +00:00
Wayne Davison
5a727522f0
Refer to the rsync daemon as a "daemon", not a "server". This is
...
to avoid confusion with the server that rsync runs in a normal
remote-shell transfer.
2005-05-10 16:14:26 +00:00
Wayne Davison
1599754727
- Improved the GENERAL section.
...
- Improved the description of --list-only.
- Added a VERSION section, like the rsyncd.conf manpage.
2005-05-10 16:04:02 +00:00
Wayne Davison
d90338cec6
Refer to the rsync daemon as a "daemon", not a "server". This is
...
to avoid confusion with the server that rsync runs in a normal
remote-shell transfer.
2005-05-10 16:00:24 +00:00
Wayne Davison
d0e94abb40
Fixed one synopsis line to make the DEST arg optional.
2005-05-09 15:39:24 +00:00
Wayne Davison
d8c4d6de10
Use new MAX_SERVER_ARGS define instead of hard-wired "100".
2005-05-03 17:04:26 +00:00
Wayne Davison
74ba98a51b
There was no reason to have MAX_BASIS_DIRS factored into the
...
length of the argstr[] array.
2005-05-03 17:01:59 +00:00
Wayne Davison
c296031d9f
Added MAX_SERVER_ARGS.
2005-05-03 17:00:47 +00:00
Wayne Davison
81c453b16a
A few minor doc tweaks.
2005-05-03 16:47:03 +00:00
Wayne Davison
4a34c6f176
- Moved the --version option in the help text.
...
- Tweaked the --log-format option's description.
- Added a comment.
2005-05-03 16:46:49 +00:00
Wayne Davison
9b3150bd2e
Mention the change in error message and exit status when we pull an
...
empty file list.
2005-05-03 16:45:40 +00:00
Wayne Davison
6f2245c8fa
Tweaked the checking of the "limit" in safe_fname().
2005-05-03 16:44:47 +00:00
Wayne Davison
0f9941dc5a
Fixed a typo.
2005-05-03 16:03:31 +00:00
Wayne Davison
060f31500b
- Improved the comments on the backslash-escaped output, and moved it
...
to the top in an "OUTPUT CHANGES" section.
- Added a mention of the generator's new output-flushing optimization.
2005-05-03 15:59:24 +00:00
Wayne Davison
7c2a83c635
Improved a sentence.
2005-05-03 15:58:06 +00:00
Wayne Davison
97e3c50cd9
Mention the '?'-in-filenames change.
2005-05-02 18:04:32 +00:00
Wayne Davison
b2360dabf6
Fixed some misspellings.
2005-05-02 17:27:20 +00:00
Wayne Davison
723160280f
Tweaked the description of --from0.
2005-05-02 17:23:08 +00:00
Wayne Davison
fa92818af3
Tweaked the doc for --from0.
2005-05-02 17:22:42 +00:00
Wayne Davison
289a32167c
Moved the max-size checking code down so that it only checks
...
regular files.
2005-04-28 16:26:23 +00:00
Wayne Davison
95e107db96
Moved the size-parsing code for --max-size into its own function.
2005-04-28 16:11:32 +00:00
Wayne Davison
513fd04d21
Set ignore_timeout before starting the transfer, regardless of
...
what protocol level is in effect. This guards against the
generator timing out when the output pipe is full and the input
pipe (to the receiver) is slow.
2005-04-27 22:58:06 +00:00
Wayne Davison
7a16e12207
If the user specified --relative and a source dir with a trailing
...
slash, make sure we strip of the trailing "/." from the dir's len
(in del_hier_name_len) so that its subdirs get marked with
FLAG_DEL_HERE.
2005-04-27 22:56:47 +00:00
Wayne Davison
de8252f67f
Added a new test to check how we interact with --link-dest and
...
--copy-dest.
2005-04-26 16:25:01 +00:00
Wayne Davison
98e4741463
A slightly better fix than the last one (though it won't make any
...
difference in how the code behaves due to how it is called).
2005-04-26 16:09:03 +00:00
Wayne Davison
028245a57b
Mention newest fix.
2005-04-26 15:25:43 +00:00
Wayne Davison
2765f2e4a7
Fixed problem with -C when we're the sender, the remote is using an
...
older protocol, and we're not sending the exclude list (i.e. the
user didn't specify --delete or they specified --delete-ignored).
2005-04-26 15:24:40 +00:00
Wayne Davison
79db59d1a7
Try to make rsync's behavior w/o "--perms" a little clearer.
2005-04-25 19:30:29 +00:00
Wayne Davison
c48cff9fbe
Fixed two typos.
2005-04-25 19:23:43 +00:00
Wayne Davison
f4b8e829e9
Mention fix for --one-file-system.
2005-04-24 22:35:03 +00:00
Wayne Davison
468d766819
Simplified the last change a little using a fix derived from
...
Mike Castle's suggestion.
2005-04-24 22:34:20 +00:00
Wayne Davison
f3ab64d3a8
When deleting files, we need to take any local FLAG_MOUNT_POINT
...
flag-bit and put it into the regular flist's flags for that dir,
and delete_in_dir() now refuses to delete a directory that has
that bit set.
2005-04-24 22:11:26 +00:00
Wayne Davison
a234bca4ef
Reject any --remove-* options when read-only, just in case there
...
are new ones added in the future.
2005-04-24 16:19:16 +00:00
Wayne Davison
42e9c7eb56
Mention the latest fixes.
2005-04-24 00:34:39 +00:00
Wayne Davison
9d19f8a5fe
When rsync encountered an empty file list, it behaved differently
...
when pulling files than when pushing files: pulling it output a
(mostly) unhelpful error message and then exited with a 0 status,
even when the remote side exited with an error code. I changed this
to output the normal end summary (when verbose) and to exit with the
status intact (just like when pushing files).
2005-04-23 22:30:08 +00:00
Wayne Davison
24e61cffe3
For those rare individuals without web access, mention how to
...
send bug reports via email.
2005-04-23 22:17:10 +00:00
Wayne Davison
3556fe5d86
Fixed a problem where a --link-dest hard-link could cause us to
...
miss out on the hard_link_cluster() call.
2005-04-23 19:46:22 +00:00
Wayne Davison
ee887d98f6
Two more tests:
...
- Update the hard-linked cluster and copy over the old versions.
- Add a new hard-linked item down in a new subdir to make sure that
the new file doesn't get handled before the subdir gets created.
2005-04-23 18:20:47 +00:00
Wayne Davison
5c7b1feb4c
Added --no-whole-file option to one of the runs.
2005-04-23 18:17:25 +00:00
Wayne Davison
3cd5301f40
- Added a new function, maybe_hard_link(), which now holds the code
...
(moved from hard_link_cluster()) that checks the inode/dev of an
existing file and either does nothing (when properly linked), or
removes the existing file before calling hard_link_one().
- Changed hard_link_check() so that it checks if the master item is
marked with FINISHED_LINK (in its hlindex int), and if so, it
finishes the current file by calling maybe_hard_link() (and
marking it as finished too). Otherwise it marks the item as
skipped by setting hlindex to SKIPPED_LINK.
- Fixed the outputting of an error in hard_link_one() so that the
message is always output when the caller did not request "terse"
processing.
- Changed hard_link_cluster() so that it marks the master item with
FINISHED_LINK and then links only the skipped items (marking them
with FINISHED_LINK too).
2005-04-23 17:48:34 +00:00
Wayne Davison
d8169e6f6b
- Call hard_link_check() with its new args.
...
- Got rid of a duplicate error after the hard_link_one() call.
2005-04-23 17:48:31 +00:00
Wayne Davison
c4833b024e
Mention how a module reference doesn't need a trailing slash
...
to copy its contents.
2005-04-22 17:17:18 +00:00
Wayne Davison
2a5d5a8cc4
If we're outputting a message about the remote file in a
...
single-file transfer, we need to make sure that the file's
name is the generic-transfer name and not a local name.
2005-04-22 16:45:33 +00:00
Wayne Davison
f7112154e9
Moved "port" and "address" into the global section where they
...
belong.
2005-04-22 15:19:10 +00:00
Wayne Davison
f83051b2e3
Updated FSF's address and some minor non-license tweaks taken
...
from the latest GPL file on the web.
2005-04-17 08:25:50 +00:00
Wayne Davison
2e42adb302
Simplified the newly added test so that it should stop sporadically
...
failing.
2005-04-16 07:34:49 +00:00
Wayne Davison
c09ebb8c04
Call rsync via $RSYNC.
2005-04-15 17:39:35 +00:00
Wayne Davison
042dc7360e
Make sure that the $chkdir has the same mtime/etc. as the
...
$fromdir.
2005-04-15 17:26:27 +00:00
Wayne Davison
7a6e294f7b
Added a test that copies a single file with -H specified.
2005-04-15 08:28:02 +00:00
Wayne Davison
97e786c331
- Fixed a potential crash/infinite-loop bug if -H was used
...
when sending a single file.
- Made a couple variable improvements in link_idev_data().
- Got rid of the non-NULL check of hlink_list in init_hard_links()
because is enough to just check file->link_u.links these days.
2005-04-15 08:26:58 +00:00
Wayne Davison
8ee6adefe3
Call logfile_close() and logfile_reopen() (tweaked function names).
2005-04-14 16:08:12 +00:00
Wayne Davison
64c37826e4
- Changed log_open() into two functions, logfile_open() and
...
logfile_reopen().
- Changed log_close() into logfile_close().
- Improved the logic in logit().
2005-04-14 16:08:10 +00:00
Wayne Davison
2e8015e0da
Mention that less data is sent over the wire when --only-write-batch
...
is used and we're pushing files to a remote system.
2005-04-14 01:47:47 +00:00
Wayne Davison
5b6281afcf
Got rid of ITEM_DUMMY_BIT.
2005-04-14 01:46:08 +00:00
Wayne Davison
e732fb0c4f
- Got rid of the iflag kluge for 2.6.4pre3.
...
- When we're handling --only-write-batch on the client side, we now
send all index/header info to the receiver (not just to the batch
file, like we do with the xfer data) so that the connection cannot
timeout.
2005-04-14 01:45:47 +00:00
Wayne Davison
b10917a426
Support the reception of a file-transfer header without xfer data
...
when we're on the server side and --only-write-batch was specified.
2005-04-14 01:42:13 +00:00
Wayne Davison
7ae64260e0
Mention how the daemon handles a failure to open a user-specified
...
"log file".
2005-04-12 23:09:35 +00:00
Wayne Davison
f97f6bcd3a
Mention how we now handle a log-file that the daemon can't open.
2005-04-12 23:06:45 +00:00
Wayne Davison
e86d98cbaa
Got rid of RERR_LOG_FAILURE.
2005-04-12 23:04:10 +00:00
Wayne Davison
6afb90778b
If we can't open the daemon's log file, fall-back to using
...
syslog (rather than trying to output an error on stderr,
which would usually be lost, and then exiting).
2005-04-12 23:03:49 +00:00
Wayne Davison
32c7f91a14
A couple improvements for the --only-write-batch section.
2005-04-12 03:55:56 +00:00
Wayne Davison
b28a27e9e9
Mention the latest bug-fix.
2005-04-10 20:08:00 +00:00
Wayne Davison
15164c0aa9
Paul's patch to improve the "not creating new ..." message
...
for directories.
2005-04-10 19:44:16 +00:00
Wayne Davison
bf011fedfc
Made the code a little cleaner by having gen_challenge() return
...
the challenge string base64-encoded (instead of forcing the caller
to handle this). Also improved a couple comments.
2005-04-10 17:09:10 +00:00
Wayne Davison
d7d11b7ebd
Mention fix for SUPPORT{,_HARD}_LINKS defines.
2005-04-10 07:17:47 +00:00
Wayne Davison
9a929c8f68
- Don't define HAVE_READLINK unless HAVE_READLINK is defined.
...
- Don't define SUPPORT_HARD_LINKS unless HAVE_LINK is defined.
2005-04-10 06:24:14 +00:00
Wayne Davison
298d8c0a9b
Mention the new --only-write-batch=FILE option.
2005-04-09 18:59:59 +00:00
Wayne Davison
a054570942
- Use the new do_xfers variable in place of some dry_run checks
...
(with appropriate negation).
- If write_batch is < 0, we write out the file-transfer data to
just the batch file, not the socket.
2005-04-09 18:59:57 +00:00
Wayne Davison
a0009fc30d
- Use the new do_xfers variable in place of some dry_run checks
...
(with appropriate negation).
- If we get a transfer when write_batch is < 0, discard it.
2005-04-09 18:59:55 +00:00
Wayne Davison
beb51aa09e
Use the new do_xfers variable in place of some dry_run checks
...
(with appropriate negation).
2005-04-09 18:59:52 +00:00
Wayne Davison
e8a96e275e
- Only do read-/write-batch processing if we're not the server (needed
...
now that write_batch is no longer forced to 0 for the server).
- If write_batch is < 0, force "dry_run = 1" (but only after we've
finished any appropriate write-batch file creation).
2005-04-09 18:59:49 +00:00
Wayne Davison
11e758a430
- Added do_xfers variable.
...
- Handle the new --only-write-batch=FILE option.
2005-04-09 18:59:47 +00:00
Wayne Davison
d630f53e0d
Also change --only-write-batch to --read-batch (in addition to
...
changing --write-batch).
2005-04-09 18:59:44 +00:00
Wayne Davison
5918daf8a4
We no longer force write_batch to 0 for the server.
2005-04-09 18:59:42 +00:00
Wayne Davison
326bb56e40
Document the new --only-write-batch=FILE option.
2005-04-09 18:59:40 +00:00
Wayne Davison
f96154f44c
Mention the latest changes.
2005-04-09 18:15:22 +00:00
Wayne Davison
45c5b903eb
- Call auth_server() with its new "host" arg.
...
- Don't log an auth-failed error -- auth_server() now handles that.
2005-04-09 18:11:25 +00:00
Wayne Davison
5037cf3adf
- Use the MD4_SUM_LENGTH define in place of some hard-wired values.
...
- Pass the hostname in to auth_server().
- Generate a unique error for each failure type in auth_server() so
that the log-file contains why the authorization failed.
- Don't use sscanf() to parse the client's auth-challenge response.
2005-04-09 18:11:23 +00:00
Wayne Davison
180443af42
The "@ERROR" handler in start_inband_exchange() was not returning
...
the right value.
2005-04-09 16:49:51 +00:00
Wayne Davison
4f3f97fbde
Fixed one typo and improved another sentence.
2005-04-08 01:40:57 +00:00
Wayne Davison
664cf3278a
Make sure that "- !" or "+ !" aren't interpreted as a list-clearing
...
token.
2005-04-07 18:06:06 +00:00
Wayne Davison
cd36049cd1
Combine one of the backup tests with --delete-after.
2005-04-07 09:09:17 +00:00
Wayne Davison
c2523a0541
Don't call maybe_flush_socket() quite so often.
2005-04-07 08:32:32 +00:00
Wayne Davison
92739a0aa7
Mention the latest changes.
2005-04-07 08:28:06 +00:00
Wayne Davison
cd908ef4ff
Fix a bug with --delete-after combined with --backup.
2005-04-07 08:13:44 +00:00
Wayne Davison
ebd33e0cea
Use the new HAVE_LSEEK64 define.
2005-04-06 02:08:21 +00:00
Wayne Davison
5f2c5bf110
Added skipping of mkstemp() on HP-UX.
2005-04-06 02:07:21 +00:00
Wayne Davison
417099fa20
Periodically call maybe_flush_socket().
2005-04-05 20:08:51 +00:00
Wayne Davison
626bec8e84
- Added maybe_flush_socket() for use by the generator.
...
- Always maintain the last_io value for the generator.
2005-04-05 20:07:42 +00:00
Wayne Davison
a06e2b7cab
When doing a delete pass with do_progress output, get rid of the
...
temporary output (it used to always be covered up by output in
older versions, but it might be followed by a newline in newer
versions).
2005-04-05 19:51:13 +00:00
Wayne Davison
3ae5367ff2
Document the use of --address in client mode.
2005-04-05 06:00:17 +00:00
Wayne Davison
b4ef0bca47
Allows --address to be used in client mode.
2005-04-05 05:59:49 +00:00
Wayne Davison
4313d6f9c0
Changed the bind_address local variables to be named bind_addr
...
in order to avoid confusion with the bind_address global.
2005-04-05 05:52:49 +00:00
Wayne Davison
2a0dd9bd70
Make sure that the line buffer in readfd_unbuffered() is large
...
enough to handle long-filename messages on a system that has a
really short MAXPATHLEN value. Also, make it large enough to
be able to comment on a MAXPATHLEN filename.
2005-04-04 17:27:56 +00:00
Wayne Davison
3eeac9bc7e
In writefd_unbuffered(), make sure that we don't look at the r_fds
...
variable when we're ignoring msg_fd_in.
2005-04-04 00:48:39 +00:00
Wayne Davison
67de72bd9b
Mention fix for --compare-dest.
2005-04-01 18:18:17 +00:00
Wayne Davison
552a218468
Make a local-copy caused by a not-quite-up-to-date --compare-dest
...
or --link-dest file be output as a 'c' (local change) when itemizing
or as transfered file when not itemizing.
2005-04-01 18:12:22 +00:00
Wayne Davison
d940151496
- Conditionally include <locale.h>.
...
- Conditionally call setlocale(LC_CTYPE, "").
2005-04-01 17:25:37 +00:00
Wayne Davison
f5c7f4abe7
- Changed version to 2.6.5cvs.
...
- Look for setlocale(), locale.h, and honor --disable-locale.
2005-04-01 17:25:34 +00:00
Wayne Davison
3ae6c1875d
Starting the 2.6.5 news.
2005-04-01 17:25:28 +00:00
Wayne Davison
1ad6a7f611
Moved the 2.6.4 news here.
2005-04-01 17:25:26 +00:00
Wayne Davison
89d26123ff
Changed safe_fname() to output \### (octal) to escape non-printable
...
characters (not ?) and \\ to escape \ itself.
2005-04-01 16:48:54 +00:00
Wayne Davison
46bffd98cb
Fix the setting of module_dirlen for a module path of "/".
...
This fixes a crash in the exclude code when chroot is off.
2005-04-01 00:18:40 +00:00
Wayne Davison
41b84ce012
Don't try to tweak read-only dest-dir permissions in list-only mode.
2005-03-31 23:30:03 +00:00
Wayne Davison
de392f1e5c
Preparing for release of 2.6.4
2005-03-31 03:14:34 +00:00
Wayne Davison
0455cd933d
- Made the handling of adjacent percents (e.g. "%%b") work like it
...
did in older versions.
- Added a comment for log_format_has().
2005-03-31 03:01:26 +00:00
Wayne Davison
d9c0051fae
In log_formatted(), add the newline to the format string so
...
that we can call rwrite() instead of rprintf().
2005-03-31 01:09:18 +00:00
Wayne Davison
126e7affb7
Enabled width-sizing for %L.
2005-03-31 00:50:58 +00:00
Wayne Davison
624d6be2a5
Use new log_format_has() function instead of strstr().
2005-03-31 00:21:15 +00:00
Wayne Davison
16f960feb5
Added log_format_has().
2005-03-31 00:19:13 +00:00
Wayne Davison
e145d51ba6
Make sure that we can't scan past the end of the format string.
2005-03-30 23:39:00 +00:00
Wayne Davison
dcbae65444
Optimized '%f' a little more.
2005-03-30 20:41:11 +00:00
Wayne Davison
b4bf2b5a7e
Allow %i to have a field width.
2005-03-30 20:18:48 +00:00
Wayne Davison
9baed7609c
- Allow the infix field width to start with a '-'.
...
- Apply the field width to all escapes, not just numeric ones.
2005-03-30 19:44:29 +00:00
Wayne Davison
1c2efa1706
Mention the numeric field width now possible in the % escapes.
2005-03-30 19:41:51 +00:00
Wayne Davison
80a24d52d4
Mention that the % escapes can now have a numeric infix.
2005-03-30 19:39:11 +00:00
Wayne Davison
af9f56a09d
dropped the "const" from the return value of safe_fname() because
...
some callers would like to manipulate the string in the buffer.
2005-03-30 19:34:20 +00:00
Wayne Davison
ddd74b67be
Allow the escapes in the log-format string to contain a numeric
...
field width (e.g. %8l %07p).
2005-03-30 18:27:09 +00:00
Wayne Davison
7b558d7f8b
Fixed a comment.
2005-03-30 17:31:35 +00:00
Wayne Davison
c87ae64a82
Moved a call to output_summary() up a line.
2005-03-30 16:55:11 +00:00
Wayne Davison
b9f0ca7274
Tweaked a couple sentences.
2005-03-30 16:51:33 +00:00
Wayne Davison
c1759b9fa2
Changed %i to output '>' for a local copy.
2005-03-30 16:35:01 +00:00
Wayne Davison
9c63d83d3d
Got rid of a useless extern.
2005-03-30 16:33:41 +00:00
Wayne Davison
1ed91a04fe
- Fixed a potential crash if the receiver couldn't open the basis file
...
and the sender (possibly via a batch) tells us to use basis data.
- Enhanced the batched-update skipping message to indicate what phase
is being skipped.
2005-03-29 22:05:33 +00:00
Wayne Davison
154cdaaa40
- Warn about missing batched updates the generator wants but the
...
batch doesn't have.
- Tweaked the "skipping ..." message that is output for already-
applied batched updates.
2005-03-29 19:49:40 +00:00
Wayne Davison
33c4b445ef
Split report() into handle_stats() and output_report() so that (1)
...
the report happens after all --delete-after activity has ceased when
pulling, and (2) a batch-file created when pushing gets the stats
values written out prior to any end-of-run keep-alive packets.
2005-03-29 11:11:35 +00:00
Wayne Davison
53135fe89a
Changed maybe_emit_filelist_progress() and emit_filelist_progress()
...
to take an integer count instead of a struct file_list so that we
can pass in a file-list-count offset for delete's separate calls
to send_directory().
2005-03-29 10:57:31 +00:00
Wayne Davison
083acd496d
Turn off do_progress during the file-update phase so that
...
--delete-during and --fuzzy don't get any superfluous
" N files..." lines output in the middle of the processing.
2005-03-29 10:41:26 +00:00
Wayne Davison
00348fd793
Preparing for release of 2.6.4pre4
2005-03-29 06:18:24 +00:00
Wayne Davison
ddb6fc696b
Improved several items and preparing for final 2.6.4 release.
2005-03-29 06:15:47 +00:00
Wayne Davison
f7e48a5cb8
Add data for 2.6.4.
2005-03-29 06:15:08 +00:00
Wayne Davison
70352269ba
If --delay-updates wasn't specified, write out two -1 indexes at
...
the same time to avoid a useless round-trip delay for an empty
delay-updates phase.
2005-03-29 01:04:20 +00:00
Wayne Davison
0b94147928
Added --protocol and made some batch-file improvements.
2005-03-28 20:54:06 +00:00
Wayne Davison
da9f59264f
Added --protocol to --help output.
2005-03-28 20:40:25 +00:00
Wayne Davison
96b7b48efa
Some temporary code for 2.6.4pre3 compatibility (which can be
...
safely removed for the next release).
2005-03-28 17:29:27 +00:00
Wayne Davison
aea4bf2894
Chaging ITEM_UNUSED back to ITEM_DUMMY_BIT for now -- we'll need
...
to get rid of it later on.
2005-03-28 17:08:47 +00:00
Wayne Davison
855ef72f3f
Changed ITEM_DUMMY_BIT to ITEM_UNUSED.
2005-03-27 05:58:40 +00:00
Wayne Davison
98dc857b32
Got rid of temporary code that detected and rejected older 2.6.4
...
pre-release versions.
2005-03-27 05:58:38 +00:00
Wayne Davison
94af17a6eb
Got rid of temporary code that set the ITEM_DUMMY_BIT.
2005-03-27 05:58:36 +00:00
Wayne Davison
00fd35482e
--compress is now saved in a batch's option-state flags.
2005-03-27 05:49:24 +00:00
Wayne Davison
cc3e0770bc
Decided that the '<' and '>' output in the %i format were
...
the opposite of what they should be.
2005-03-27 05:32:36 +00:00
Wayne Davison
e7f7064cc5
- Fixed a bug in the saving of the --dirs option's state.
...
- Added the saving of the --compress option's state.
- Deal with the xfer_dirs var in a better way for pre-29 batches.
2005-03-27 05:02:49 +00:00
Wayne Davison
7b759fe0df
Mention that --dry-run no longer conflicts with the batch options.
2005-03-25 16:45:58 +00:00
Wayne Davison
254ee3baab
- Don't complain if --dry-run is specified with --read-batch
...
or --write-batch.
- If --write-batch is combined with --dry-run, just disable
--write-batch (that avoids trying to create a batch file
and tells the user what would be transferred).
2005-03-24 16:41:16 +00:00
Wayne Davison
f957e8fdf9
If --dry-run is enabled with --read-batch, we must discard the
...
transfer data.
2005-03-24 16:38:34 +00:00
Wayne Davison
822012eea9
List /etc instead of /, but only if it exists and is readable.
2005-03-23 16:04:17 +00:00
Wayne Davison
bb21ecac5b
Mention when we run fakeroot.
2005-03-18 02:10:34 +00:00
Wayne Davison
648859bda2
If we're not root and the "fakeroot" command is available, use it
...
to re-run the script while pretending to be root.
2005-03-18 02:07:25 +00:00
Wayne Davison
f328e0f3a8
Set a maximum distance-measure that find_fuzzy() will accept.
2005-03-17 08:59:48 +00:00
Wayne Davison
6012eaa183
Fixed a problem with the stripping of the .bak/.old/.orig suffixes
...
in find_filename_suffix().
2005-03-17 08:45:36 +00:00
Wayne Davison
da2a6c1f1c
Fixed the -r kluge sent for pre-2.6.4 --list-only support.
2005-03-17 00:52:33 +00:00
Wayne Davison
0438f100ae
We need to run our post-processing activities after the end of
...
the receiver's delay-update processing.
2005-03-17 00:41:18 +00:00
Wayne Davison
b95ad9ac55
Mention one other recent change.
2005-03-16 02:50:00 +00:00
Wayne Davison
828a256123
Preparing for release of 2.6.4pre3
2005-03-16 01:12:44 +00:00
Wayne Davison
ebf447ac81
Changed error message for incompatible 2.6.4 pre-release versions.
2005-03-16 01:06:33 +00:00
Wayne Davison
124f349ea1
Document error messages 6 and 25.
2005-03-15 23:23:45 +00:00
Wayne Davison
26718401fb
Added the error message for RERR_LOG_FAILURE and used it when
...
the daemon can't open the log-file.
2005-03-15 23:23:41 +00:00
Wayne Davison
f463e20753
Added RERR_LOG_FAILURE define.
2005-03-15 23:23:39 +00:00
Wayne Davison
1129070514
- Made read_item_attrs() detect and reject a pre1/pre2 rsync (used
...
by both the sender and the receiver).
- Added an extra phase to the end of the transfer to better handle
delayed updates that have hard links.
2005-03-15 19:19:44 +00:00
Wayne Davison
ac3f7b81f8
Added an extra phase to the end of the transfer to handle
...
delayed updates that have hard links.
2005-03-15 19:19:41 +00:00
Wayne Davison
62f9573fb3
- Added an extra phase to the end of the transfer to better handle
...
delayed updates that have hard links.
- Send the new ITEM_DUMMY_BIT to the sender so that we can figure
out if the other side is pre1 or pre2 and let the receiver reject
it.
2005-03-15 19:19:38 +00:00
Wayne Davison
6d0e5d2e62
Added ITEM_DUMMY_BIT and moved a few other 'ITEM_*'s around.
2005-03-15 19:19:36 +00:00
Wayne Davison
8b48bf1154
Tweaked the end-of-phase code.
2005-03-15 17:30:56 +00:00
Wayne Davison
42be53201f
Handle --delay-updates at the end of the first phase.
2005-03-15 17:30:52 +00:00
Wayne Davison
c7791b8cb2
Mention the index number for an "invalid packet at end of run".
2005-03-15 17:30:50 +00:00
Wayne Davison
7e9059d60f
Fixed a just-introduced crash bug in the --fuzzy processing.
2005-03-14 22:22:42 +00:00
Wayne Davison
f3ebe1a77e
A simple test to ensure that fuzzy processing is working.
2005-03-14 22:17:25 +00:00
Wayne Davison
301fb56ce9
Split the conditional-directory sending out of send_file_name() into
...
a new function: send_if_directory(). This lets the code that is
recursively descending through the directories make its list of a
dir's contents and close the DIR handle before recursing into the
subdirs. Also, the "recurse" var is just true/false once again.
2005-03-14 17:30:15 +00:00
Wayne Davison
aa7a6e878b
The "recurse" value is back to being just 1 or 0 (true or false).
2005-03-14 17:30:13 +00:00
Wayne Davison
0a39837a62
Got rid of "fudged_recurse".
2005-03-14 17:30:10 +00:00
Wayne Davison
b2e8a9b293
Got rid of an unused extern.
2005-03-14 17:06:08 +00:00
Wayne Davison
a98ad81760
Got rid of some code in f_name_cmp() that tried to make all the
...
dirname pointers to equivalent strings have identical pointers.
2005-03-14 03:36:56 +00:00
Wayne Davison
ccc51c8331
The --fuzzy code now handles a file->dirname that has an identical
...
string as another file without being an identical pointer.
2005-03-14 03:35:40 +00:00
Wayne Davison
ee171c6da9
Document the latest %i output.
2005-03-13 05:36:13 +00:00
Wayne Davison
d5609e969d
Output a '*' at the start of the %i string when deleting.
2005-03-13 05:35:49 +00:00
Wayne Davison
927c806841
- Improved a couple error messages.
...
- Improved a function name.
2005-03-13 05:34:00 +00:00
Wayne Davison
2da9dda1c0
Some misc. improvements (I hope).
2005-03-12 23:54:05 +00:00
Wayne Davison
3117bc16a5
Improved two sentences.
2005-03-12 23:52:18 +00:00
Wayne Davison
717b04306a
Tweaked the name of a variable.
2005-03-12 23:52:08 +00:00
Wayne Davison
271220c542
Mention --copy-dest.
2005-03-11 19:23:09 +00:00
Wayne Davison
566a874141
Re-enabled the --copy-dest part of the test.
2005-03-11 17:36:05 +00:00
Wayne Davison
967866d4df
Added --copy-dest logic, and improved the updating of --compare-dest
...
and --link-dest files that are up-to-date but have differing attributes.
2005-03-11 17:36:03 +00:00
Wayne Davison
1de3e99bc5
Added --copy-dest logic.
2005-03-11 17:35:59 +00:00
Wayne Davison
3e13004b6b
Tweaked the comment on copy_file().
2005-03-11 17:35:57 +00:00
Wayne Davison
2f03ce67d6
Document --copy-dest.
2005-03-11 17:35:54 +00:00
Wayne Davison
b9232d45eb
- Fixed the reading of the fuzzy xname from the socket.
...
- Call read_item_attrs() with its new arg.
2005-03-10 00:06:01 +00:00
Wayne Davison
6087ef2a84
- Changed read_item_attrs() to return the length of the xname string.
...
- Tweaked the order of the args to write_item_attrs().
2005-03-10 00:05:58 +00:00
Wayne Davison
1f1d368ad5
- Improved the error-checking for some delete_item() calls.
...
- Move the non-regular-file delete-check above the alt-basis check
where it belongs.
- Keep track of the real statret and real stat-struct for certain
alt-basis scenarios (e.g. partial-dir and fuzzy) so that we send
the right itemized change flags.
2005-03-09 23:46:28 +00:00
Wayne Davison
dd18526e5b
Mention the latest protocol-29 changes.
2005-03-09 18:55:09 +00:00
Wayne Davison
4d53c4dd46
We now handle the reading and writing of extra basis-file info: the
...
fnamecmp_type byte, and the extra name (currently used for fuzzy
processing and hard-link status).
2005-03-09 18:54:19 +00:00
Wayne Davison
9e4a8d29b5
Got rid of the name-pipe, so we now read the fnamecmp_type data over
...
the socket for protocol >= 29, or handle it like the old days for
older protocol versions. This means that we now validate this extra
data for safety (such as the fuzzy filename).
2005-03-09 18:54:16 +00:00
Wayne Davison
ef20efcbb6
Made itemize() output the fnamecmp_type and the fuzzy name based on
...
the new ITEM_BASIS_TYPE_FOLLOWS and ITEM_XNAME_FOLLOWS flags. Got
rid of the name-pipe to the receiver.
2005-03-09 18:54:12 +00:00
Wayne Davison
c70e07d9ac
Got rid of the name-pipe from the generator to the receiver.
2005-03-09 18:54:09 +00:00
Wayne Davison
b7d4d28bb3
When itemizing, we now set ITEM_LOCAL_CHANGE and ITEM_XNAME_FOLLOWS.
2005-03-09 18:54:06 +00:00
Wayne Davison
9a6ed83f2c
- Made an overflow in read_vstring() return an error instead of dying.
...
- Got rid of a flush kluge that was needed for the name-pipe.
2005-03-09 18:54:02 +00:00
Wayne Davison
fd84673e54
Handle the new way that 'c' and 'h' get output by "%i".
2005-03-09 18:53:58 +00:00
Wayne Davison
57b12568e6
Complain if a feature that requires protocol 29 doesn't get it.
2005-03-09 18:53:55 +00:00
Wayne Davison
f9a9f54720
Made the dest_option string non-static.
2005-03-09 18:53:53 +00:00
Wayne Davison
3019a9bafd
Changed some of the ITEM_* defines.
2005-03-09 18:53:49 +00:00
Wayne Davison
278e3d4f6e
Mention the latest bug-fix.
2005-03-09 04:00:45 +00:00
Wayne Davison
9b9dd06894
We need to mention any change to a directory, not just a time change.
...
Yeah, this isn't very consistent with how files are treated, but it's
backward compatible.
2005-03-09 04:00:20 +00:00
Wayne Davison
1f7e29b99c
Fixed the change-report output for a directory that has no
...
write permissions.
2005-03-09 03:49:07 +00:00
Wayne Davison
c2f0e6e5e3
Backward compatibility fix in read_iflags() (for protocols < 29).
2005-03-09 02:25:34 +00:00
Wayne Davison
c2b11ba017
Backed out the hack that reversed ITEM_REPORT_XATTRS with
...
ITEM_TRANSFER. Yes, it allowed some kludge code that made backward
compatibility seamless, but it made it impossible to remove the hack
in the future. This way, the backward compatibility is just
slightly inaccurate in the display of the first letter in the %i
output, and the only hack can be safely removed without causing
problems.
2005-03-06 23:37:42 +00:00
Wayne Davison
f75a53e71b
- When --max-delete is exceeded, we now count how many deletions
...
would have happend, warn about the number skipped, and set
io_error to IOERR_DEL_LIMIT.
- When dry_run > 1 (which indicates that the destinationdir is
missing), skip deletions in that dir. This fixes a bug in a
copy that is creating the destination dir w/--delete enabled.
2005-03-05 18:58:42 +00:00
Wayne Davison
054abde25f
Handle new IOERR_DEL_LIMIT bit in io_error.
2005-03-05 18:58:38 +00:00
Wayne Davison
24cecf1365
Define the message for RERR_DEL_LIMIT.
2005-03-05 18:58:35 +00:00
Wayne Davison
821ff7f49a
Added RERR_DEL_LIMIT.
2005-03-05 18:58:32 +00:00
Wayne Davison
ff3d3c32d5
Added IOERR_DEL_LIMIT.
2005-03-05 18:58:29 +00:00
Wayne Davison
3b2ef5b11c
Mention that --max-delete must be non-zero.
2005-03-05 18:58:26 +00:00
Wayne Davison
0394e34a69
Moved the end_progress() call from match.c to sender.c so that we
...
report progress on 0-length files when pushing files (the receiver
already called it, so we already produced progress on a 0-length
file when pulling).
2005-03-05 17:51:23 +00:00
Wayne Davison
56efa56474
Fixed the elapsed time reported for 0-length files.
2005-03-05 17:49:46 +00:00
Wayne Davison
ed7e79553e
Don't try to determine the phase we're in by looking at the value
...
of csum_length -- it might have been computed to be SUM_LENGTH.
Instead, look at the "phase" variable directly.
2005-03-05 16:42:52 +00:00
Wayne Davison
dec71e94f3
Added a hack that uses the ITEM_REPORT_XATTRS bit (which is the old
...
ITEM_UPDATING bit) to make us compatible when sending/receiving bits
to/from an earlier pre-release.
2005-03-05 04:34:06 +00:00
Wayne Davison
ac4f91a5ee
Added a hack that sets the ITEM_REPORT_XATTRS bit (which is the old
...
ITEM_UPDATING bit) when ITEM_TRANSFER or ITEM_LOCAL_CHANGE is set.
This lets us interact compatibly when sending itemized bits to an
earlier pre-release.
2005-03-05 04:34:04 +00:00
Wayne Davison
e957626347
Swapped the bit-values for ITEM_TRANSFER and ITEM_REPORT_XATTRS.
...
This lets us be more compatible with the earlier pre-releases
with a better heuristic for backward-compatible itemized bits.
2005-03-05 04:34:01 +00:00
Wayne Davison
b4875de45c
Improved the description of when "h" is output by %i.
2005-03-05 00:34:02 +00:00
Wayne Davison
2cfe44eee4
Turned on -i for itemized output.
2005-03-05 00:23:55 +00:00
Wayne Davison
fad3dc421c
- Updated to handle the new ITEM_* flags.
...
- Changed read_iflags() to read/write a suffixed hard-link name.
2005-03-05 00:21:59 +00:00
Wayne Davison
22907b6bd9
- Updated to handle the new ITEM_* flags.
...
- Send MSG_SUCCESS for hard-linked files when -H was specified.
2005-03-05 00:21:56 +00:00
Wayne Davison
3485ae8321
A few minor tweaks to improve two error messages and make better use
...
of the "the_file_list" global.
2005-03-05 00:21:54 +00:00
Wayne Davison
ca62acc3ca
- Make use of the new ITEM_* flags to mention when things were
...
updated locally instead of being updated remotely.
- Added support for outputting 'a' in the itemized log-output (for
future use in extended-attribute handling).
2005-03-05 00:21:50 +00:00
Wayne Davison
cdf236aaf5
- Made the sock_{in,out} variables non-static.
...
- Added hlink_list, a FIFO list of finished hard-link items.
- Made get_redo_num() check for finished hard-link items and
call the generator when they are found. This ensures that
we finish all the hard-link items by the time the MSG_DONE
is read and returned to the generator.
- Added get_hlink_num() to read the new hlink_list.
2005-03-05 00:21:48 +00:00
Wayne Davison
9f2e3c3f52
- Changed hlink_list[] to store file-list indexes instead of
...
pointers.
- Made hard_link_one() non-static so that the generator can call it.
Improved it to do itemized output.
- Replaced do_hard_links() with hard_link_cluster(), which changes
the hard-linking from a post-transfer loop into a per-cluster
operation that occurs incrementally as the transfer updates (or
finds unchanged) one item in the cluster.
2005-03-05 00:21:44 +00:00
Wayne Davison
ee1d11c495
- Updated itemize() to handle sending of hard-link-name info. Made
...
it non-static so the hard-link code can now output itemized
messages.
- Made the locally-changed items (such as dirs and symlinks) itemize
using a new ITEM_LOCAL_CHANGE flag instead of the (renamed)
ITEM_TRANSFER flag (formerly ITEM_UPDATING).
- Improved the hard-link support by having a cluster of hard-linked
files get processed as soon as we notice that a single item is
already up-to-date, or it succssfully finishes being updated.
- The hard-linking that occurs when using --link-dest will now be
mentioned at higher levels of verbosity IFF %i is in the log-
format.
2005-03-05 00:21:42 +00:00
Wayne Davison
669e76717c
- Changed ITEM_UPDATING to ITEM_TRANSFER.
...
- Added defines ITEM_HARD_LINKED, ITEM_LOCAL_CHANGE,
ITEM_REPORT_XATTRS, and SIGNIFICANT_ITEM_FLAGS.
- Changed the "next" var in struct hlink into an int.
2005-03-05 00:21:39 +00:00
Wayne Davison
4e107712f3
Mention latest bug fixes.
2005-03-05 00:20:37 +00:00
Wayne Davison
85aa57a7dd
In read_iflags(), we need to set buf to an empty string.
2005-03-04 18:01:16 +00:00
Wayne Davison
58a14ed950
Got rid of some code in the main recv_files() loop by calling the
...
new functions read_iflags() and maybe_log_item().
2005-03-04 16:54:08 +00:00
Wayne Davison
165e6d446c
Moved some code out of the main loop in send_files() into a new
...
function called read_iflags() (which was made generic enough that
the receiver could use it too). Also call the new maybe_log_item().
2005-03-04 16:53:26 +00:00
Wayne Davison
1c3e3679ef
Added maybe_log_item() for use by the sender and receiver.
2005-03-04 16:52:00 +00:00
Wayne Davison
8a513e55b0
Document the new value of %L.
2005-03-04 16:11:09 +00:00
Wayne Davison
a314f7c155
Document latest format of %i.
2005-03-04 16:08:58 +00:00
Wayne Davison
9497b0d4e9
Call log_item() instead of log_recv().
2005-03-04 16:08:16 +00:00
Wayne Davison
b694f8a245
Call log_item() instead of log_send().
2005-03-04 16:08:02 +00:00
Wayne Davison
afc65a5acf
- Replaced log_send() and log_recv() with log_item().
...
- Made log_formatted() and log_item() take an "hlink" arg that
will be used to pass in a hard-link name for use in %L.
2005-03-04 16:07:50 +00:00
Wayne Davison
5f40615cd5
Use the new "the_file_list" global instead of our "the_flist" local.
2005-03-04 15:57:14 +00:00
Wayne Davison
c6816b9444
Transformed the push/pop functions for the redo-list into more
...
generic flist_num_{push,pop}() functions that can support other
folks caching off file-list index numbers.
2005-03-04 15:50:22 +00:00
Wayne Davison
46e99b09b9
Added read_vstring() and write_vstring() to io.c instead of
...
having this code in generator.c and receiver.c.
2005-03-04 15:38:58 +00:00
Wayne Davison
af436313a0
- Got rid of the checking of msg_fd_in in read_timeout() -- it was
...
only needed back when the generator was reading a separate redo
pipe from the message pipe.
- Fixed a potential data corruption in the data that the generator
is sending: if a message comes in from the receiver, we now make
sure that we can't put the forwarding of this message to the sender
into the middle of a multiplexed-write record that the generator
is trying to flush.
2005-03-04 08:58:27 +00:00
Wayne Davison
d64e6f42b4
Use the new "the_file_list" global.
2005-03-03 18:44:42 +00:00
Wayne Davison
a00628b335
- Set the new global "the_file_list".
...
- Got rid of test of read_batch in an am_sender section since
there is never a sender process for --read-batch.
2005-03-03 18:44:06 +00:00
Wayne Davison
33ab4ad879
Simplified whole_file variable checking.
2005-03-03 02:58:48 +00:00
Wayne Davison
99eb41b25f
Improved some text in --compare-dest and --link-dest.
2005-03-03 02:23:12 +00:00
Wayne Davison
e86ae6bc1f
Don't kluge the value of statret for --whole-file.
2005-03-03 01:50:43 +00:00
Wayne Davison
c3cbcfb8ef
Moved the checks for --ignore-existing and --update higher in
...
recv_generator() so that they don't trigger erroneously when
--link-dest is specified.
2005-03-03 01:33:51 +00:00
Wayne Davison
a1d23b5314
- Got rid of the SID_* flags -- use the ITEM_* flags directly.
...
- If --compare-dest find a file that is not the same in attributes,
we need to copy the file.
2005-03-03 00:14:35 +00:00
Wayne Davison
d4d4890d4e
Added ITEM_NO_DEST_AND_NO_UPDATE for use by the generator's
...
itemize() function.
2005-03-03 00:14:32 +00:00
Wayne Davison
30e66e53de
Fixed the --compare-dest docs.
2005-03-02 18:01:23 +00:00
Wayne Davison
e224331729
When using multiple --compare-dest options, rsync should avoid
...
copying a file that has an exact match in any of the dirs.
2005-03-02 17:48:36 +00:00
Wayne Davison
70b54e4e43
Fixed a bug in the --dry-run output when using --link-dest.
2005-03-02 17:27:19 +00:00
Wayne Davison
9ba463435b
If the multi-dest loop falls back to the best_match index,
...
we need to re-stat() the file to restore "st".
2005-03-02 09:51:54 +00:00
Wayne Davison
05ee48661c
Tweaked the description for --rsync-path.
2005-03-02 09:17:42 +00:00
Wayne Davison
aef9882581
A little more tweaking to the multi-dest option loop.
2005-03-02 09:09:15 +00:00
Wayne Davison
78bcddcc6a
Mention that specifying "/dir/**" is a safer way than "/dir/"
...
alone to ensure that files inside a dir are fully protected.
2005-03-02 01:48:25 +00:00
Wayne Davison
68e169ab4d
Improved the description of --rsync-path.
2005-03-01 23:02:23 +00:00
Wayne Davison
f62eaa24f1
Made the multi-FOO-dest loop a little nicer.
2005-03-01 19:42:31 +00:00
Wayne Davison
d3e553b4bd
Explicitly mention that "del." does include the trailing period.
2005-03-01 19:17:27 +00:00
Wayne Davison
3753975f48
Fixed two glitches Paul pointed out.
2005-03-01 17:28:46 +00:00
Wayne Davison
2d81114b23
Preparing for release of 2.6.4pre2
2005-03-01 06:22:19 +00:00
Wayne Davison
472135e0bc
Mention the latest changes.
2005-03-01 06:05:23 +00:00
Wayne Davison
c60b7056b2
A few improvements to the new check_for_hostspec() function.
2005-03-01 05:49:11 +00:00
Wayne Davison
42ccb4c091
Made the argv/argc parsing a little nicer.
2005-03-01 03:39:35 +00:00
Wayne Davison
b31c92edcc
- Look for last '@' in a user@host spec.
2005-03-01 03:39:32 +00:00
Wayne Davison
08b018304f
Removed section on parsing IPv6 literal addresses.
2005-03-01 03:11:28 +00:00
Wayne Davison
d19320fdf6
Changed remote_filesfrom_file to filesfrom_host.
2005-03-01 03:10:59 +00:00
Wayne Davison
860236bf90
- Changes needed to handle new filesfrom_host variable.
...
- Changes needed to use check_for_hostspec() in place of find_colon().
2005-03-01 01:16:03 +00:00
Wayne Davison
4d3abf1360
Changes needed to use check_for_hostspec() in place of find_colon().
2005-03-01 01:15:59 +00:00
Wayne Davison
305666bf59
- Changed find_colon() into check_for_hostspec(), extending it to
...
understand the rsync:://HOST:PORT/PATH format, allowing all HOSTs
to be IPv6 literal addresses enclosed in '[' and ']', and changing
it to return the 3 parts of the spec separately (host, port, and
path).
- Relocated the code that handles the sanitation and validation of
the files_from arg in order to make its placement a little more
logical.
- Replaced remote_filesfrom_file with filesfrom_host, which makes
the value of the files_from variable more intuitive.
2005-03-01 01:15:57 +00:00
Wayne Davison
b03c719f04
Enhanced the option-parsing failure mode to handle the situation
...
where the parser didn't get a chance to parse the --files-from
option yet, but we still need to know it was there in order to get
the error message back to the client.
2005-03-01 00:42:32 +00:00
Wayne Davison
62f27e3c02
Made a couple sentences about rsync:// syntax clearer.
2005-02-28 22:04:16 +00:00
Wayne Davison
4dc67d5e30
Improved a couple sentences.
2005-02-28 02:16:49 +00:00
Wayne Davison
8ebdc9724e
Say "rsync 2.6.4" instead of "protocol 29".
2005-02-28 02:16:23 +00:00
Wayne Davison
9e0582f9bf
Tweaked a comment.
2005-02-28 02:04:42 +00:00
Wayne Davison
705de51a73
Improved do_lseek()'s failure message.
2005-02-27 21:12:13 +00:00
Wayne Davison
1a8e5c97eb
Complain if the run-terminating keep-alive packets aren't what
...
we expected.
2005-02-27 20:50:07 +00:00
Wayne Davison
55bb7fff14
Don't loop forever when the receiver is waiting around to be killed
...
at EOF -- it should be a rapidly arriving event, so only hang around
for 10 seconds, max., and then go ahead and report the "unexpectedly
closed" error.
2005-02-27 18:24:34 +00:00
Wayne Davison
662bdcd4ac
Make sure that allowed_lull will not be computed as 0 if
...
io_timeout is 1.
2005-02-27 18:09:17 +00:00
Wayne Davison
fef101a548
Improved a couple sentences.
2005-02-27 18:01:32 +00:00
Wayne Davison
18a11cfd48
- Made the calls to maybe_send_keepalive() happen at better intervals.
...
- Call do_hard_links() with its new args.
2005-02-27 09:02:32 +00:00
Wayne Davison
0f80c3e886
Added 2 args to do_hard_links() so that it can call maybe_send_keepalive().
2005-02-27 09:02:29 +00:00
Wayne Davison
f122383179
Mention the backup fix for redone files with --inplace.
2005-02-27 08:02:06 +00:00
Wayne Davison
e6bc6f4232
We need to turn off make_backups for the redo phase so that
...
the inplace processing doesn't make a second backup.
2005-02-27 07:50:43 +00:00
Wayne Davison
ac1cb9380d
Tweaked an error message.
2005-02-27 07:34:27 +00:00
Wayne Davison
40df65fdb4
- Seems to me that sigusr2_handler() should call close_all() for
...
the sake of MS Windows.
- Improved some comments.
2005-02-27 07:33:01 +00:00
Wayne Davison
cb2e1f18c2
One more comment fix.
2005-02-26 22:14:40 +00:00
Wayne Davison
0ecd03e396
Fixed comment.
2005-02-26 22:02:38 +00:00
Wayne Davison
e6f5ac116b
Improved a couple sentences.
2005-02-26 21:48:12 +00:00
Wayne Davison
051182cb75
Set kluge_around_eof to a -1 for the receiver's needs.
2005-02-26 20:58:08 +00:00
Wayne Davison
574c250093
If kluge_around_eof is < 0, we go into an msleep() loop instead
...
of exiting.
2005-02-26 20:58:05 +00:00
Wayne Davison
8dad7fc6ea
Explicitly set kluge_around_eof to a 1 when it is needed.
2005-02-26 20:58:01 +00:00
Wayne Davison
b558728875
Added keep-alive checking during the directory-touching loop at
...
the end of the processing.
2005-02-26 20:43:14 +00:00
Wayne Davison
e777afad6f
Set kludge_around_eof when the receiver is trying to read a
...
potential keep-alive message that may never come.
2005-02-26 20:21:12 +00:00
Wayne Davison
87703a1b1f
Improved the comment for kludge_around_eof.
2005-02-26 20:21:08 +00:00
Wayne Davison
981b202661
Added "set -x".
2005-02-26 19:49:59 +00:00
Wayne Davison
13725744fd
Decided I like "set -x" after all.
2005-02-26 19:47:43 +00:00
Wayne Davison
363c3ece3a
Don't allow keep-alive sending if --read-batch is enabled.
2005-02-26 19:37:49 +00:00
Wayne Davison
47780ddfef
Mention the new keep-alive handling and the devices-size fix.
2005-02-26 19:17:06 +00:00
Wayne Davison
251f22b5d7
Fixed a line-ordering problem.
2005-02-26 19:11:57 +00:00
Wayne Davison
4e0fcd85ae
Handle keep-alive messages at the end of the transfer when
...
--delete-after is happening.
2005-02-26 18:57:57 +00:00
Wayne Davison
59faec8b8b
- Moved all the file-deletion code here from flist.c and receiver.c.
...
- Call maybe_send_keepalive() from delete_in_dir() so that a really
long delete-pass won't timeout.
- Renamed delete_files() -> do_delete_pass().
- Renamed delete_file() -> delete_item().
- Call get_dirlist() with its new arg.
2005-02-26 18:03:49 +00:00
Wayne Davison
32cbfe7b17
- Moved file-deletion code into generator.c.
...
- Made filesystem_dev a global that the generator can set during its
delete pass.
- Fixed an off-by-one boundary check in send_directory().
- Added an arg to get_dirlist() so that delete_in_dir() can call it
efficiently.
2005-02-26 18:03:46 +00:00
Wayne Davison
f08ca43472
Moved the delete-after support into generator.c.
2005-02-26 18:03:42 +00:00
Wayne Davison
8eb6cf784b
Moved the delete-before support into generator.c.
2005-02-26 18:03:40 +00:00
Wayne Davison
7433d73adc
- Moved the initialization of "itemizing", "maybe_PERMS_REPORT", and
...
"code" from recv_generator() to generate_files() so that they
don't get recomputed for every file (we pass them as args now).
- Allow protocols < 29 to call maybe_send_keepalive() so that we can
try to flush the output buffer if things are slow (though we can't
send a keep-alive packet without protocol_version >= 29).
2005-02-26 06:52:55 +00:00
Wayne Davison
3221f451a0
Calling maybe_send_keepalive() for protocol_version < 29 is
...
now supported, though we can only try to flush the output
buffer if we're in a lull.
2005-02-26 06:43:15 +00:00
Wayne Davison
9e4536748d
- Moved the description of '%i's output into the rsync manpage.
...
- A few minor tweaks to the "log format" setting.
2005-02-26 05:18:03 +00:00
Wayne Davison
ea67c71505
- We now mention what "%i" outputs under --itemize-changes.
...
- Improved the description of --log-format.
2005-02-26 05:16:26 +00:00
Wayne Davison
ea38b5af72
Mention the change in when --log-format outputs and how it
...
interacts with --verbose.
2005-02-26 05:11:46 +00:00
Wayne Davison
89d19eedef
Call log_delete() from delete_file() anytime that DEL_TERSE is
...
not set (we used to only call if verbose or log_format were also
set).
2005-02-26 04:50:55 +00:00
Wayne Davison
41b5b5e756
The log_delete() function may now be called even when the client is
...
not getting delete messages, which ensures that the daemon's log-
file output includes all deletions when per-file logging is enabled.
2005-02-26 04:49:30 +00:00
Wayne Davison
a3e1363aaa
Make sure that our protocol-28 compatibility is OK.
2005-02-26 03:22:05 +00:00
Wayne Davison
2217b30adf
Fixed a problem sending include rules to an older rsync.
2005-02-26 02:56:30 +00:00
Wayne Davison
9ac2395bf0
- Call maybe_send_keepalive() if timeouts are enabled.
...
- Use the new ignore_timeout variable.
2005-02-25 22:01:36 +00:00
Wayne Davison
9e2409ab22
- Added variable "ignore_timeout" that lets the generator tell
...
us to ignore a timeout without turning off the timeout-related
time-keeping that the keep-alive processing needs.
- Added a new function: maybe_send_keepalive().
2005-02-25 21:58:13 +00:00
Wayne Davison
8e6cf5d189
Accept the new keep-alive (no-op) packet.
2005-02-25 21:56:00 +00:00
Wayne Davison
d17190df44
Don't add st_size from a device to stats.total_size.
2005-02-25 20:28:27 +00:00
Wayne Davison
fbe5eeb831
Mention how --backup sometimes implies --omit-dir-times.
2005-02-25 17:10:48 +00:00
Wayne Davison
ed9d969c4c
Use the new am_starting_up value in who_am_i().
2005-02-25 17:08:57 +00:00
Wayne Davison
7f2a1f651e
Got rid of kluged value for am_sender, and instead added a new
...
variable named am_starting_up that is non-zero during the option
parsing. This lets the who_am_i() routine output a better value
for debugging info that is output during the option parsing.
2005-02-25 17:08:31 +00:00
Wayne Davison
bbbb44ee0f
Fixed some typos.
2005-02-25 02:30:38 +00:00
Wayne Davison
29fbd1eea6
Preparing for release of 2.6.4pre1
2005-02-23 03:22:53 +00:00
Wayne Davison
33f839b319
Tweaked an entry.
2005-02-23 03:17:11 +00:00
Wayne Davison
bc83274ad6
- Fixed a problem with full_fname() when curr_dir was "/".
...
- Made full_fname() consistently output a leading "/" for
module paths no matter if chroot is in use or not.
2005-02-23 02:56:42 +00:00
Wayne Davison
38e3910b6f
One more tweak to the need_name_pipe logic.
2005-02-23 02:14:00 +00:00
Wayne Davison
c26c51a7ee
Commenting out link-dest test for now.
2005-02-23 02:13:33 +00:00
Wayne Davison
e9973668a4
Got rid of --copy-dest references.
2005-02-23 02:07:09 +00:00
Wayne Davison
4104c3bf52
Changed --copy-dest to --link-dest.
2005-02-23 02:06:33 +00:00
Wayne Davison
b7c2481933
Got rid of --copy-dest for now -- I think it should be made to do
...
the copying of unchanged files locally (like --link-dest does
using a hard link).
2005-02-23 02:05:34 +00:00
Wayne Davison
cfb691ac9a
Fixed a problem with the last change.
2005-02-22 22:13:04 +00:00
Wayne Davison
cb8240a291
We need the name-pipe for --inplace these days.
2005-02-22 22:13:02 +00:00
Wayne Davison
352963ddc3
Always set the SID_USING_ALT_BASIS appropriately for the transfer,
...
even if --inplace wasn't specified.
2005-02-22 22:12:59 +00:00
Wayne Davison
8c57732324
More cleanups.
2005-02-22 21:56:32 +00:00
Wayne Davison
8a33c406b3
Trying to fix bug #2357 .
2005-02-22 21:48:10 +00:00
Wayne Davison
340bd68f59
We now look for the ITEM_USING_ALT_BASIS flag for an --inplace
...
transer that is using an alternate basis file (instead of reading
an extra byte after the flag word).
2005-02-22 21:43:59 +00:00
Wayne Davison
8237f9305b
We now set the ITEM_USING_ALT_BASIS flag for an --inplace transfer
...
that is using an alternate basis file (instead of sending an extra
byte after the flag word).
2005-02-22 21:43:57 +00:00
Wayne Davison
5b1c1eefda
Added ITEM_USING_ALT_BASIS.
2005-02-22 21:43:54 +00:00
Wayne Davison
6258626751
Document an alternate way to achieve the effect of this script
...
through the use of awk and the more powerful --filter option.
2005-02-22 21:24:24 +00:00
Wayne Davison
87fd439059
When preforming a recursive delete, push/pop the per-dir merge rules.
2005-02-22 20:42:55 +00:00
Wayne Davison
564ef546a9
Sort the dir-list returned by get_dirlist() and the dir-list that
...
delete_in_dir() generates.
2005-02-22 03:37:18 +00:00
Wayne Davison
94dcbf8367
- Iterate through the deletion list in reverse order so that we
...
can't delete a backup file that we just created.
- The rename-directory-for-backup heuristic now checks the
DEL_FORCE_RECURSE flag, not the zap_dir variable. We also set
the flag when we recurse so that only the root dir of a deleted
hierarchy can be missing the flag (and thus be a call from the
generator).
2005-02-22 03:16:41 +00:00
Wayne Davison
1bad11c759
Only rename a directory with the backup suffix if we're removing
...
it to replace it with a file of the same name.
2005-02-22 01:59:15 +00:00
Wayne Davison
ba679d5194
In make_simple_backup(), if the rename() failed because we tried
...
to rename a directory over a file or visa versa, try to handle it.
2005-02-22 01:57:58 +00:00
Wayne Davison
e1ad7fe63d
A couple changes in delete_file() make us more compatible with
...
older versions: (1) we no longer complain if excluded files
sticking around cause us to not be able to remove a subdir, and
(2) we output the name of the removed subdir after it has been
successfully removed.
2005-02-22 00:42:12 +00:00
Wayne Davison
f18d87b6ed
Added function check for vasprintf.
2005-02-21 18:58:09 +00:00
Wayne Davison
a6c15e9a38
- Added function tests for va_copy and __va_copy for snprintf.c code.
...
- Added AC_C_LONG_DOUBLE for snprintf.c code.
- Got rid of unneeded ino_t check.
2005-02-21 17:08:09 +00:00
Wayne Davison
64bba1465b
Check SIZEOF_LONG_LONG instead of HAVE_LONG_LONG.
2005-02-21 17:02:53 +00:00
Wayne Davison
638e106568
- Moved delete_file() into flist.c.
...
- No need to separately test for (make_backups && !backup_dir)
because omit_dir_times is now set under those circumstances.
2005-02-21 10:50:32 +00:00
Wayne Davison
34e18ecd61
- Moved delete_file() here from rsync.c and improved it to avoid
...
removing files we just backed up to the current directory and to
rename a non-empty dir to dir~ (when no backup-dir is specified).
- Made delete_missing() static.
2005-02-21 10:50:30 +00:00
Wayne Davison
d4021b6d9b
- Set omit_dir_times if backing up files w/o a backup dir.
...
- Only send an explicitly specified -O (--omit-dir-times)
if it won't be inferred by the receiver.
2005-02-21 10:03:23 +00:00
Wayne Davison
40b1393880
Pass the file-diffing flag as an arg to checkit.
2005-02-21 07:27:28 +00:00
Wayne Davison
30688bf11b
If checkit is passed a 4th arg, skip the file-diffing step.
...
This is used by the devices.test script.
2005-02-21 07:26:59 +00:00
Wayne Davison
a7d7a805dc
Touch $tmpdir/do_not_diff_the_files so that checkit does not try
...
to diff the devices against each other.
2005-02-21 07:19:11 +00:00
Wayne Davison
4a239e98f6
Reposition log_open() and log_close().
2005-02-21 00:38:15 +00:00
Wayne Davison
7b97c38898
Mention two more things.
2005-02-21 00:32:04 +00:00
Wayne Davison
1f35babc6b
- For win32: made --no-detach the default for daemon mode.
...
- Added --detach (a --daemon option).
2005-02-21 00:31:31 +00:00
Wayne Davison
80ffc3de12
Updated to remove completed items and add a little more info for
...
other items.
2005-02-21 00:17:10 +00:00
Wayne Davison
507b61d5a6
Some minor tweaks.
2005-02-21 00:16:36 +00:00
Wayne Davison
8db3106e0b
Mention the compression-mode fix for large block sizes.
2005-02-20 23:08:56 +00:00
Wayne Davison
1b1fef20b3
Tweaked the rprintf() that outputs about the delta-transmission
...
enablement.
2005-02-20 22:11:43 +00:00
Wayne Davison
22c7c5fb0b
- Integrated the latest version from samba.
...
- Tweaked the order of the code in my_modf() to avoid
a compiler warning.
2005-02-20 22:10:33 +00:00
Wayne Davison
13d00101e8
One more tweak to the "whoami" code.
2005-02-20 21:04:03 +00:00
Wayne Davison
3e7934a5fb
Changed the memory implementation of --delay-updates so that it
...
only allocates memory to store needed bits, it sparsely allocates
the bits in 16KB chunks, and the bit-finding loop works in a more
efficient manner.
2005-02-20 20:55:24 +00:00
Wayne Davison
815193e89e
Got rid of "set -x" (runtests.sh has a way to set this, if desired).
2005-02-20 17:24:15 +00:00
Wayne Davison
4fd4b3d667
Dropped a useless "const" from the definition of poptStrerror.
2005-02-20 17:21:13 +00:00
Wayne Davison
1526b8b17d
Mark a couple unused variables.
2005-02-20 17:20:14 +00:00
Wayne Davison
732537212b
Cast char* to uchar* when dereferencing characters for isdigit()
...
and isprint().
2005-02-20 17:07:31 +00:00
Wayne Davison
4adbb5f246
Have rule_strcmp() accept and return a uchar*.
2005-02-20 17:04:53 +00:00
Wayne Davison
30fa772457
A few improvements to the "test" commands to neaten them up and
...
to try to fix another problem under solaris.
2005-02-20 17:01:32 +00:00
Wayne Davison
ee03617b3d
Cast a uchar* arg to char* for write_buf().
2005-02-20 16:56:30 +00:00
Wayne Davison
19cb6106d2
Improved the testuser-setting code to try to get it to work
...
under solaris.
2005-02-20 16:27:10 +00:00
Wayne Davison
cd6bececc1
If --delay-updates is specified with --remove-sent-files, delay
...
the MSG_SUCCESS messages until we actually move the files into
place at the end.
2005-02-20 02:54:30 +00:00
Wayne Davison
88b93c6159
Corrected "log format" info and added info on --remove-sent-files.
2005-02-20 02:45:10 +00:00
Wayne Davison
b62fd39392
A small twiddle.
2005-02-20 01:14:27 +00:00
Wayne Davison
95306d9d50
- For every file that we send off to the receiver, mark it with
...
FLAG_SENT.
- Added successful_send(), which is called when MSG_SUCCESS was
received from the receiver/generator side. This function
validates the message, and removes the indicated file/symlink
(assuming that remove_sent_files was actually set).
2005-02-20 01:04:54 +00:00
Wayne Davison
3e870a6444
If --remove-sent-files was specified and we successfully updated a
...
file, send MSG_SUCCESS to the sender (through the generator).
2005-02-20 01:04:51 +00:00
Wayne Davison
bf26aa2219
- If --remove-sent-files was specified, abort if we're pulling from
...
a read-only module.
- If need_messages_from_generator is set, make sure that the
connection between the generator to the sender has multiplexed
I/O enabled.
2005-02-20 01:04:49 +00:00
Wayne Davison
9981c27ef1
Handle the new MSG_SUCCESS message for both the generator and the
...
sender.
2005-02-20 01:04:46 +00:00
Wayne Davison
fe96018750
If we update the contents of a symlink and --remove-sent-files
...
is enabled, tell the sender about it via MSG_SUCCESS.
2005-02-20 01:04:43 +00:00
Wayne Davison
07c6ae7de8
- Added --remove-sent-files option.
...
- If a server is refusing "delete" and we're the sender, also refuse
the --remove-sent-files option.
2005-02-20 01:04:40 +00:00
Wayne Davison
e163683020
Document how refusing "delete" affects --remove-sent-files.
2005-02-20 01:04:37 +00:00
Wayne Davison
961103049b
Document --remove-sent-files.
2005-02-20 01:04:34 +00:00
Wayne Davison
0254bd46ec
Test --remove-sent-files.
2005-02-20 01:04:27 +00:00
Wayne Davison
8b806ed347
Disallow --remove-sent-files with a read-only server.
2005-02-20 01:04:12 +00:00
Wayne Davison
8e3ead09a3
Got rid of maybe_DEL_TERSE.
2005-02-20 00:47:15 +00:00
Wayne Davison
8715db2cab
Tweaked some externs.
2005-02-20 00:16:23 +00:00
Wayne Davison
50839b4bb0
Tweaked some externs.
2005-02-19 23:42:09 +00:00
Wayne Davison
e1f40891c7
- Needed to use a name buffer in delete_missing() to avoid having
...
a recursive delete reuse our buffer from f_name().
- Moved the backup-handling into delete_file() in rsync.c.
- Moved the --max-delete counting into delete_file() in rsync.c.
2005-02-19 23:41:52 +00:00
Wayne Davison
042f470ef9
Made delete_file() backup files it is removing if --backup was specified.
2005-02-19 23:39:47 +00:00
Wayne Davison
40cc28516d
Moved deletion_count here so that we honor --max-delete in
...
delete_file().
2005-02-19 23:24:41 +00:00
Wayne Davison
8174bc3506
If the server refuses a directory, don't allow any files to be
...
sent to the server inside that directory.
2005-02-19 23:01:52 +00:00
Wayne Davison
9118a09c77
Changed a couple log_recv() calls back to log_send().
2005-02-19 22:57:08 +00:00
Wayne Davison
8324bd5c21
When logging PERMS_REPORT messages, send them with the FCLIENT code
...
if the daemon has "%i" in its log message (because it already got a
detailed log message from the generator).
2005-02-19 22:16:53 +00:00
Wayne Davison
7f37167da5
- Always send the itemized-info bytes on to the receiver. This
...
not only ensures that batch files are created consistently for
push and pull, but allows a daemon to log itemized changes.
- Improved the logging of itemized changes for the daemon.
- Make sure we debug-log our presence in send_files().
2005-02-19 22:16:50 +00:00
Wayne Davison
227a9c41c1
- Improved the logging of itemized changes for the daemon.
...
- Make sure we debug-log our presence in recv_files().
2005-02-19 22:16:47 +00:00
Wayne Davison
6c3862fae3
Make use of new variables (log_format_has_i, log_format_has_o_or_i,
...
and daemon_log_format_has_i) and the new FCLIENT logging code to
output stats in the best way possible for both the client and the
daemon.
2005-02-19 22:16:45 +00:00
Wayne Davison
1eec003a80
The FCLIENT log code aviods putting the message into the daemon's
...
log file and instead sends a FINFO message to the client. This is
used when the daemon wants to log a better message locally than it
is sending to the client. Improved log_delete() to make use of this
idiom if it needs to log a separate delete message for the daemon
and the client.
2005-02-19 22:16:41 +00:00
Wayne Davison
684d7582b6
- Added log_format_has_i.
...
- Fixed a problem withe option-refusing code when it refuses the
daemon options.
- Don't sent --itemize-changes (-i) to the server -- send an
improved --log-format value instead.
2005-02-19 22:16:39 +00:00
Wayne Davison
f39b2060fe
We now set daemon_log_format_has_i and daemon_log_format_has_o_or_i
...
instead of itemize_daemon_changes.
2005-02-19 22:16:35 +00:00
Wayne Davison
4f2ba7e056
No more need to clear itemize_changes based on protocol_version.
2005-02-19 22:16:33 +00:00
Wayne Davison
1dcf3b4345
Changed some of the values of the MSG_* defines.
2005-02-19 22:16:31 +00:00
Wayne Davison
aa57d14ae7
We now use a regular expression to parse the (restored to its previous
...
version) default logfile format. Added parsing for a version of the
default logfile format where %o has been replaced with %i.
2005-02-19 19:36:54 +00:00
Wayne Davison
3c54d8a3ad
Decided to leave the "log format" default the same as in
...
earlier versions.
2005-02-19 17:38:51 +00:00
Wayne Davison
c0814b813f
If the "log format" has a %i in it, set itemize_daemon_changes.
2005-02-19 17:37:40 +00:00
Wayne Davison
088aff1a48
- Don't log a delete message to the daemon log in dry-run mode.
...
- The daemon's wrote/read log message now uses the terms
sent/received.
2005-02-19 17:23:08 +00:00
Wayne Davison
d6707171e6
Decide whether to log a delete message via the default format by
...
checking the new log_format_has_o_or_i variable, not itemize_changes.
2005-02-19 03:54:13 +00:00
Wayne Davison
5c5e159892
- Set new variable, log_format_has_o_or_i.
...
- Make sure that -i can't be set w/o an actual %i in the log_format.
- Only need to pass -i to server if we're the sender.
- Only need to pass some --log-format information to the server in
certain circumstances.
2005-02-19 03:54:11 +00:00
Wayne Davison
6d7b3d52dc
Rules read in from per-dir merge files need to have non-applicable
...
rules filtered out before the rule gets stored (not in a post-
filtering pass like the rules that are read-in prior to the run).
2005-02-19 03:12:21 +00:00
Wayne Davison
591b908fbf
Mention the change in the default "log format" daemon-config setting.
2005-02-19 03:03:13 +00:00
Wayne Davison
742be97ce4
Log items that are unchanged if verbose > 1.
2005-02-19 02:39:33 +00:00
Wayne Davison
1f30a674cd
Notify the remote side about -i (if either specified or inferred from
...
the user's --log-format string) and, if we're not verbose but we're
logging messages, let the server know that --log-format was specified.
2005-02-19 02:39:30 +00:00
Wayne Davison
19bc826d8b
- Tweaked the letters output by "%i", including adding support for
...
logging a deleted item and an identical item.
- Added log_delete(), a routine that either logs the fact that a
deletion happened, or sends a MSG_DELETED message to the client
side (or both if we're a daemon server receiver).
2005-02-19 02:39:26 +00:00
Wayne Davison
c786a7aec5
- Changed the calling args to delete_file() to take an st_mode instead
...
of a DEL_DIR flag.
- Call log_delete() instead of outputting "deleting ..." messages..
- Log deletions if either verbose or log-format is specified.
2005-02-19 02:39:23 +00:00
Wayne Davison
8a8356b7db
- Send the itemized data for every file, changed or not, if verbose > 1.
...
- Don't call set_perms() with PERMS_REPORT if we're itemizing changes.
- Don't call delete_file() with DEL_TERSE if we're itemizing changes.
- Call delete_file() with its new arg.
2005-02-19 02:39:21 +00:00
Wayne Davison
0d67e00af8
- Allow send_msg() to be called by the delete code in flist.c and
...
have it figure out if it should send the message to our sibling
or the other side.
- Handle the new MSG_DELETED message in both the generator and the
sender. This message is used to let the client side log each
deletion when the server side is the receiver.
2005-02-19 02:39:18 +00:00
Wayne Davison
7448177753
- Call log_delete() instead of outputting a "deleting ..." message.
...
- Call delete_file() with its new arg.
2005-02-19 02:39:15 +00:00
Wayne Davison
90d151f423
If the protocol is less than 29, make sure itemize_changes is off.
2005-02-19 02:39:11 +00:00
Wayne Davison
9f7c5dabf8
- Got rid of DEL_DIR define.
...
- Added define for ITEM_DELETED.
2005-02-19 02:39:09 +00:00
Wayne Davison
a85a151430
- Mention that "%o" can now have the value "del."
...
- Updated the description of "%i" to reflect the latest functioning.
2005-02-19 02:39:06 +00:00
Wayne Davison
5dd97ab999
Fixed an inaccuracy in the --archive description.
2005-02-19 02:39:03 +00:00
Wayne Davison
8daa9925cc
More improvements.
2005-02-18 21:24:00 +00:00
Wayne Davison
e844be4e7b
- Use read_short() and write_short().
...
- If the user does not want itemized changes, don't log the name
for attribute changes.
2005-02-18 20:17:24 +00:00
Wayne Davison
88b218fa5c
- Tweaked code in itemize() a bit.
...
- Use the new write_short() function.
- Mention the delete() when an item replaces an item of a different type.
- Make sure that this replacing of a non-same item is marked as a new
transfer in the itemized output.
2005-02-18 20:17:20 +00:00
Wayne Davison
e66d70e34c
The '%n' escape needs to append a trailing slash onto a directory name.
2005-02-18 20:17:17 +00:00
Wayne Davison
9361f83933
Added read_short() and write_short().
2005-02-18 20:17:15 +00:00
Wayne Davison
3b2bebbf90
Improved the "log format" section some more.
2005-02-18 20:17:12 +00:00
Wayne Davison
4f90eb433a
Improved --verbose, --itemize-changes, and --log-format.
2005-02-18 20:17:09 +00:00
Wayne Davison
b485e0c16c
Fixed/improved the comment before safe_name().
2005-02-18 20:17:05 +00:00
Wayne Davison
bc1fac9648
Handle uchar and short as a function return type.
2005-02-18 20:16:59 +00:00
Wayne Davison
c78779cce3
- Fixed a few bugs and compile warnings.
...
- Use the long-option parser for better option handling.
- Output a usage message if the options are wrong.
- Improved the option-variable names.
- Parse the new default daemon log-file format.
- Handle filenames that have spaces in them.
2005-02-18 17:58:03 +00:00
Wayne Davison
702cd15cb0
For the server, don't ever intuit verbosity higher than what
...
the client asked for.
2005-02-18 17:36:12 +00:00
Wayne Davison
1da05366ad
The daemon loop needs to call log_open() because it called log_close().
2005-02-18 17:34:09 +00:00
Wayne Davison
2267efeac5
Made log_open() non-static and moved log_close() next to it.
2005-02-18 17:33:43 +00:00
Wayne Davison
15954da08f
Updated the default "log format" string and the output of "%i".
2005-02-17 09:19:07 +00:00
Wayne Davison
b2dc7bad39
Changed the default log format.
2005-02-17 09:16:51 +00:00
Wayne Davison
d4e0196346
Use '.' for unchanged attributes in the %i output.
2005-02-17 09:16:23 +00:00
Wayne Davison
2fc50f5a98
More improvements for the description of the %i output.
2005-02-16 20:12:20 +00:00
Wayne Davison
bd5b85dbc7
Mention the new flag-word for protocol 29.
2005-02-16 17:08:04 +00:00
Wayne Davison
8a8324657e
- The itemized flags are now 2 bytes instead of 1.
...
- Always send/receive the itemized flags for protocols >= 29.
- The output of the verbose log-the-transfer messages is always handled
via log_send() (when we're the client).
2005-02-16 17:02:16 +00:00
Wayne Davison
4bb0af79b7
- The itemized flags are now 2 bytes instead of 1.
...
- Always send/receive the itemized flags for protocols >= 29.
- The output of the verbose log-the-transfer messages is always handled
via log_recv() (when we're the client).
2005-02-16 17:02:13 +00:00
Wayne Davison
e3bcd89319
- The itemized flags are now 2 bytes instead of 1.
...
- Always send the itemized flags for protocols >= 29.
- Sent an itemized-flag update for dirs and symlinks for protocols >= 29
(instead of outputting a message directly).
2005-02-16 17:02:11 +00:00
Wayne Davison
87383697e8
- Auto-set --verbose if --dry-run is specified w/o --log-format.
...
- When verbose w/o a log_format specified, set it to "%n%L".
- There's no longer a need to send -i to the server.
2005-02-16 17:02:08 +00:00
Wayne Davison
e4b808989e
Moved the auto-setting of --verbose when --dry-run is specified into
...
options.c.
2005-02-16 17:02:05 +00:00
Wayne Davison
59e52bf276
Tweaked ITEM_MISSING_DATA.
2005-02-16 17:02:02 +00:00
Wayne Davison
9b40e44ef4
No need to handle itemize_changes anymore.
2005-02-16 17:01:59 +00:00
Wayne Davison
e92f21d2f7
Tweaked the mention of --itemize-changes.
2005-02-16 08:12:34 +00:00
Wayne Davison
910e89b963
- We now accept an itemized-changes flag-byte over the socket if we're
...
the local client and --itemized-changes was specified. If the item
is not being updated, just call log_recv().
- We reject an attempt to file-update any non-regular file, not just
dirs.
- Avoid the verbose "log the transfer" output if --log-format was
specified and log_before_transfer is in effect.
- Call log_recv() with its new iflags arg.
2005-02-16 08:10:45 +00:00
Wayne Davison
8a9cfb2459
- We now accept an itemized-changes flag byte over the socket if we're
...
in --itemized-changes mode. If the item is not being updated,
either pass it along to the receiver (if we're the server) or just
call log_send().
- We reject an attempt to file-update any non-regular file, not just
dirs.
- Avoid the verbose "log the transfer" output if --log-format was
specified and log_before_transfer is in effect.
- Call log_send() with its new iflags arg.
2005-02-16 08:10:41 +00:00
Wayne Davison
41961db0bd
Ensure that -i is set consistent with the batch's data.
2005-02-16 08:10:38 +00:00
Wayne Davison
e76518843d
- If log_before_transfer is possible, don't force --verbose on for
...
--progress.
- If --log-format contains %i, set --itemize-changes (-i).
- Always send -i to the remote rsync if it was specified/implied.
2005-02-16 08:10:31 +00:00
Wayne Davison
ef74f5d626
- Improved log_formatted() to handle long filenames better.
...
- Added %i, for the list of itemized changes, %n for the normal
filename (might be shorter than %f), and %L for a " -> symlink"
string IIF the item is a symlink (else "").
- The log_{send,recv}() functions now take an "iflags" arg.
2005-02-16 08:10:28 +00:00
Wayne Davison
c557eb8cec
Changed showchg() into itemize(), which now ships off a flag byte of
...
what changed over to the sender instead of outputting a string itself.
This does mean that we now ship off indexes of non-file items that got
updated, but the sender will know what to do with it.
2005-02-16 08:10:25 +00:00
Wayne Davison
0cc279e0d3
- Added the new ITEM_* flags for the itemized-changes flag passing.
...
- Also added defines for FLAG_SENT and MSG_SUCCESS.
2005-02-16 08:10:22 +00:00
Wayne Davison
0cfdf22655
Documented that -i now sets a default --log-format string.
2005-02-16 08:10:19 +00:00
Wayne Davison
527a010f10
Documented the new log-format escapes: %n, %L, and %i.
2005-02-16 08:10:13 +00:00
Wayne Davison
c8ca974634
Some tweaks to how --itemize-changes works.
2005-02-16 01:13:03 +00:00
Wayne Davison
3296f91bb0
Check for refusal of --delete-before when it is inferred.
2005-02-15 21:15:58 +00:00
Wayne Davison
e2124620eb
Moved two paragraphs.
2005-02-15 20:42:36 +00:00
Wayne Davison
69864a5ccf
Made showchg() use safe_fname().
2005-02-15 20:41:37 +00:00
Wayne Davison
5b4e1f318d
- Mention the addition of --itemize-changes.
...
- Mention the setting of read_only when a daemon is read-only.
2005-02-15 19:47:57 +00:00
Wayne Davison
b78296cb0b
Decided on a better option name --itemize-changes (-i).
2005-02-15 07:41:13 +00:00
Wayne Davison
06a1dbad61
Implemented the --what-has-changed functionality.
2005-02-15 07:20:14 +00:00
Wayne Davison
93c31c1a6d
Don't force -v with -n if -w was specified.
2005-02-15 07:20:11 +00:00
Wayne Davison
a8ed495833
If -w and -v are both on, don't output the "log the transfer"
...
verbose message.
2005-02-15 07:20:04 +00:00
Wayne Davison
4a14ed068c
Added --what-has-changed (-w), which summaries the changes
...
being made to the files.
2005-02-15 07:20:01 +00:00
Wayne Davison
dc0f24976d
Document --what-has-changed (-w).
2005-02-15 07:19:58 +00:00
Wayne Davison
1e7098b5e3
Fixed a typo.
2005-02-15 03:38:04 +00:00
Wayne Davison
2f24fb18c4
Make sure that there are no directory-time differences between the
...
dirs that might trip up the check of the merged copy.
2005-02-15 02:01:02 +00:00
Wayne Davison
96a8ca6d98
Had a report that the __attribute__ code needs to check for
...
__APPLE__ being defined, not APPLE.
2005-02-14 22:49:51 +00:00
Wayne Davison
37a5644576
One arg to matched() is supposed to be an int32.
2005-02-14 22:48:28 +00:00
Wayne Davison
a1cbe76e2c
Changed one size_t var into an int32.
2005-02-14 22:47:42 +00:00
Wayne Davison
98bf61c80e
Improved description of --whole-file option.
2005-02-14 19:09:30 +00:00
Wayne Davison
01f439ec6e
Fixed a mismatch in the compressed-data handling between how the
...
sending side and the receiving side handled implicit (unsent) data.
2005-02-14 08:28:00 +00:00
Wayne Davison
acc461c7da
Changed various token variables from "int"s to "int32"s.
2005-02-14 08:19:32 +00:00
Wayne Davison
1585958497
The count of chunks should really be an int32, not a size_t,
...
because that's the maximum size we can transmit over the wire.
2005-02-14 08:13:47 +00:00
Wayne Davison
7cacd47edd
Changed the size_t variables into int32 variables.
2005-02-14 08:12:22 +00:00
Wayne Davison
e461b9bed4
Don't let --fuzzy be used with a protocol_version < 29.
2005-02-14 02:47:44 +00:00
Wayne Davison
3723c04850
Mention --fuzzy.
2005-02-14 02:41:35 +00:00
Wayne Davison
73273075c8
Added code to read a fuzzy-basis name from the generator.
2005-02-14 02:41:30 +00:00
Wayne Davison
8e85be0a16
Added handling for fuzzy-basis scanning. When a fuzzy filename is
...
chosen, the name is sent down the name-pipe to the receiver.
2005-02-14 02:41:27 +00:00
Wayne Davison
37802f40dc
- If send_file_name() gets f set to -2, it skips the local filter rules.
...
- Added get_dirlist(), which returns a file_list structure for the
desired directory, optionally with local filter rules disabled.
2005-02-14 02:41:23 +00:00
Wayne Davison
06b96ffa86
Set need_name_pipe if --fuzzy was specified.
2005-02-14 02:41:18 +00:00
Wayne Davison
c4ed1487f9
Added parsing for the --fuzzy (-y) option.
2005-02-14 02:41:15 +00:00
Wayne Davison
e64ae6d766
Added find_filename_suffix() and fuzzy_distance().
2005-02-14 02:41:10 +00:00
Wayne Davison
5b4837552b
Document the --fuzzy (-y) option.
2005-02-14 02:41:05 +00:00
Wayne Davison
d2004814f0
Changed #if to use "defined".
2005-02-14 02:34:01 +00:00
Wayne Davison
bf0c5bec45
If f_name_cmp() discovers that two directory strings compare to an
...
equal value without being equal pointers, substitute one of the
pointers for the other in the file list. This optimizes future name
comparisons. Note also that this optimization won't be triggered
very often (because rsync tends to send the names grouped by dir-
name at transmission time), but it's nice to be able to assume that
all files in the same dir have identical dir-name pointers after the
qsort is finished.
2005-02-14 01:29:17 +00:00
Wayne Davison
0dd046d36f
Don't check defined-ness of SIZEOF_OFF64_T.
2005-02-14 00:58:10 +00:00
Wayne Davison
4f5b0756df
John E. Malmberg convinced me to standardize on #ifs for defined
...
values instead of non-zero.
2005-02-14 00:53:43 +00:00
Wayne Davison
fe1c19dcdf
In clean_flist(), if a duplicate is found for a dir and a non-dir,
...
always dump the non-dir (because the dir might have contents in
the list).
2005-02-13 22:48:38 +00:00
Wayne Davison
24b2096e86
The dir vs non-dir test now assumes the dir wins.
2005-02-13 22:48:35 +00:00
Wayne Davison
86e97e178d
Mention the new sorting method for protocol 29.
2005-02-13 22:37:29 +00:00
Wayne Davison
905d906d69
Added a test for the merging of a dir and a non-dir with the same name.
2005-02-13 22:01:15 +00:00
Wayne Davison
abce74bb93
Added some missing commas in some option summary lines.
2005-02-13 21:50:55 +00:00
Wayne Davison
f5db099330
- Made receive_file_entry() return the file_struct pointer instead
...
of storing it into the files[] array.
- Made flist_find() return "no match" if the found item differs in
its directory-ness from the search item.
- Changed f_name_cmp() to sort sub-directories after non-directories
for each directory's contents. This makes things like the upcoming
--fuzzy patch easier to get right.
- One complicating factor is that clean_flist() needed some extra
code to ensure that a directory doesn't duplicate a non-directory
of the same name.
- Make sure that the "strip_root" code in clean_flist() (for relative
paths) strips off all leading slashes.
2005-02-13 21:15:47 +00:00
Wayne Davison
122d1771db
Improved the call to f_name_cmp().
2005-02-13 20:06:18 +00:00
Wayne Davison
8824e2cee4
Changed the prefix on the fnc_state enums.
2005-02-13 10:23:56 +00:00
Wayne Davison
8a6f3fead8
Improved the summary for the -F option.
2005-02-13 05:45:42 +00:00
Wayne Davison
9c71f56a25
Improved the help text for -F.
2005-02-13 05:44:29 +00:00
Wayne Davison
f924946eba
Improved the description of the --compress (-z) option.
2005-02-12 22:22:14 +00:00
Wayne Davison
32a5edf43f
Improved the documentation of the --compress (-z) option.
2005-02-12 22:21:45 +00:00
Wayne Davison
9a338344da
Forgot to make sure that the dir-times on the chkdir got synced
...
in the newest test case.
2005-02-12 21:22:21 +00:00
Wayne Davison
df337831dc
When --dry-run is set, note when a directory is missing and avoid
...
trying to stat() any items inside that dir's hierarchy. This fixes
a bug where a symlink to a dir getting replaced by a dir with
identical contents to the dir at the other end of the symlink would
not report the updated files in the new hierarchy. (See bug #1673 )
2005-02-12 21:18:58 +00:00
Wayne Davison
bb558f6791
Some more improvements to exercise rule-restricted merge files
...
(i.e. exclude patterns only) and side-restricted filter rules.
2005-02-12 20:45:39 +00:00
Wayne Davison
22558cdd7e
Improved checkit() and rsync_ls_lR() to work with filenames that
...
might have spaces.
2005-02-12 20:25:12 +00:00
Wayne Davison
28c54e81c1
Mention the protocol change for --delete-excluded.
2005-02-12 19:52:40 +00:00
Wayne Davison
0dfffb88e1
Document the new filter rule flags for sender-/receiver-specific
...
rules.
2005-02-12 19:52:34 +00:00
Wayne Davison
ed243f8c29
- Added modifiers for the include/exclude rules that makes them
...
apply to the indicated (sender/receiver) side.
- Added the hide/show and protect/risk filter rules as an alternate
way to specify sender-/receiver-specific include/exclude rules.
- send_rules() now allows f_out to be -1 to indicate that the list
should be scanned but not sent.
- send_rules() now filters the list to remove any items that don't
apply to the current side (after sending the item to the other
side when f_out != -1).
- {send,recv}_filter_list() now transfer the list, even when the
receiver is the server and --delete-excluded was specified (the
exchanged list is appropriately filtered, of course).
- recv_filter_list() uses send_rules() to trim non-applicable rules
when we're a local-server (because we got our filter list without
send/recv calls when fork() duplicated it).
2005-02-12 19:52:26 +00:00
Wayne Davison
a427e8938a
- Define MATCHFLG_SENDER_SIDE and MATCHFLG_RECEIVER_SIDE.
...
- Updated MATCHFLGS_FROM_CONTAINER.
2005-02-12 19:52:22 +00:00
Wayne Davison
cc25d29132
We don't need to avoid the local filter list in send_file_name()
...
when --delete-excluded is set because our list has been trimmed to
only include rules that apply in the current mode.
2005-02-12 19:52:18 +00:00
Wayne Davison
134f43385b
- Since send_file_list() is no longer called with f == -1, got rid
...
of all the conditional code to support that.
- Improved the comment before send_directory() to indicate that it
gets called with f == -1 from delete_in_dir().
2005-02-12 18:40:15 +00:00
Wayne Davison
a5a264842e
Don't use underscores in the example filter rules.
2005-02-11 23:16:41 +00:00
Wayne Davison
eed47b6b9c
Made "i" a size_t in receive_sums().
2005-02-11 20:46:55 +00:00
Wayne Davison
3841a04e88
A minor tweak for the dry_run logic.
2005-02-11 20:26:08 +00:00
Wayne Davison
9eef8f0b73
Improved the "refuse options" section, including an update
...
to the section that talked about --del being a popt alias
(which is no longer true).
2005-02-11 10:52:50 +00:00
Wayne Davison
c258230722
- Several improvements in describing how options imply other options.
...
- Improved --partial-dir.
2005-02-11 10:51:25 +00:00
Wayne Davison
345e0988cb
Changed rule_match() to rule_strcmp(). Likewise for the
...
define RULE_MATCH() being changed into RULE_STRCMP().
2005-02-11 10:47:43 +00:00
Wayne Davison
3671987f4d
- Added some new refused_* variables that note if certain options
...
have been refused on the server daemon. This allows us to reject
implied options (e.g. if --partial is refused and -P specified).
- Changed the handling of the --delete refusals from the old idiom
of upgrading "delete" to "delete*" into the new idiom of checking
if refused_delete is set when we determine --delete was implied.
- Changed the --del option from a popt alias into a normal option.
- Mark all the daemon options as refused when a daemon is parsing
the over-the-socket options.
- Created a new function, create_refuse_error(), which is now called
from all the spots that check for refused options.
- Don't call clean_fname() on an empty string -- either reject it
or handle it without erroneously expanding the string.
- If --delay-updates was specified without a --partial-dir option,
don't send the default "--partial-dir=.~tmp~" option if the server
is the receiver -- just let it default.
2005-02-11 10:42:55 +00:00
Wayne Davison
5aa7b20a3e
Have partial_dir_fname() also check if the dir is excluded
...
by the server, not just the partial file.
2005-02-11 09:58:31 +00:00
Wayne Davison
68795c640b
If a --delay-update can't use the partial-dir (e.g. if a server
...
daemon excludes the dir or file), update the file without delay.
2005-02-11 09:56:28 +00:00
Wayne Davison
4f1f94d1de
Improved the --modify-window description.
2005-02-09 17:08:23 +00:00
Wayne Davison
0f7e31f7d7
Improved several items and added a new section describing what is
...
different for protocol version 29.
2005-02-09 04:45:36 +00:00
Wayne Davison
2f3cad893b
- Decided that flist_find() should be public, not static.
...
- Modified f_name_cmp() so that, beginning with protocol 29,
it will guarantee that a directory name will sort one slot
before its contents (prior versions could sort other items
in between in rare instances).
2005-02-09 02:36:17 +00:00
Wayne Davison
e79666267d
Also test the new long-named filter rules.
2005-02-08 19:30:07 +00:00
Wayne Davison
d91de04671
Mention the new long-name filter rules.
2005-02-08 19:06:30 +00:00
Wayne Davison
64b761c19a
Allow a ',' to prefix the MODIFIERS for a single-letter filter rule.
2005-02-08 18:47:25 +00:00
Wayne Davison
a1ac8edd66
- Added long-name filter rules.
...
- Only parse the "!" token when MATCHFLG_NO_PREFIXES is set if
MATCHFLG_CVS_IGNORE is also set.
2005-02-08 18:33:16 +00:00
Wayne Davison
1dca857b5b
Fixed a typo.
2005-02-07 20:46:42 +00:00
Wayne Davison
f8cd88dbd1
- Added more calls to safe_fname().
...
- Improved safe_fname() so that it changes all non-printable chars
into '?'s, and accomodates more simultaneous (and longer) names.
2005-02-07 20:41:43 +00:00
Wayne Davison
71903f601a
Added missing calls to safe_fname() and full_fname().
2005-02-07 20:40:18 +00:00
Wayne Davison
719bc858b5
Made NS define make use of safe_fname().
2005-02-07 20:39:13 +00:00
Wayne Davison
a6126d678b
Added missing call to safe_fname().
2005-02-07 20:38:56 +00:00
Wayne Davison
4875d6b64d
Adding more calls to safe_fname().
2005-02-07 20:36:43 +00:00
Wayne Davison
54b4059856
Needed to call safe_fname() when listing the remote names.
2005-02-07 19:40:31 +00:00
Wayne Davison
38059f8e8e
One more tweak.
2005-02-06 07:24:42 +00:00
Wayne Davison
bb5f4e7285
A few tweaks to the FILTER RULES section, including a mention of
...
using the +/- modifiers on merge-file rules.
2005-02-06 07:16:19 +00:00
Wayne Davison
448797a1e6
Fixed an off-by-one error in the prefix-length checking in
...
get_rule_prefix().
2005-02-05 06:53:20 +00:00
Wayne Davison
a261103ce0
Improved the name of a variable.
2005-02-05 05:30:06 +00:00
Wayne Davison
7b82b5adb3
Mention a couple more changes.
2005-02-05 01:38:19 +00:00
Wayne Davison
397a344364
Added the "C" modifier to the itemized list of +/- modifiers.
2005-02-05 00:03:46 +00:00
Wayne Davison
bafa48759f
Mention the new --filter=-C syntax that lets you position the default
...
CVS rules within your other filter rules.
2005-02-04 23:57:26 +00:00
Wayne Davison
46db185081
- Moved get_cvs_excludes() up above its only use and made it static.
...
- Changed get_cvs_excludes() to make an mflags arg.
2005-02-04 22:32:17 +00:00
Wayne Davison
1412da7c32
If we're a "local server" (i.e. we just forked a server for a
...
local transfer), don't duplicate all the filter rules that we
already know about in the forked process.
2005-02-04 21:54:02 +00:00
Wayne Davison
d09e800a0e
Fixed the way get_rule_prefix() turns the MATCHFLG_WORD_SPLIT flag
...
back into a modifier character.
2005-02-04 21:16:39 +00:00
Wayne Davison
53b417e414
- Added MATCHFLG_CVS_IGNORE.
...
- Made the match_flags var a uint32.
2005-02-04 21:13:12 +00:00
Wayne Davison
57dee64e82
- Moved the cvs_exclude checks into send_filter_list() and
...
recv_filter_list(). Because of this, we never skip these
calls anymore, though read-batch processing indicates that
the list should not really be sent by setting f_out to -1.
- Moved the definintion of the "local_server" variable here
from options.c.
2005-02-04 21:13:09 +00:00
Wayne Davison
fdc795015f
- Changed filter_rule() to add_rule().
...
- Improved the debug info coming from add_rule().
- Changed add_filter() to parse_rule() and add_filter_file()
to parse_filter_file().
- Changed get_filter_tok() to parse_rule_tok().
- Made the mflags a uint32.
- Added an extra arg to get_rule_prefix() to indicate if we're
building the options for transmission or other purposes.
- The 'C' modifier can now be applied to a '-' rule, so it now
sets a new flag: MATCHFLG_CVS_IGNORE.
- The send_filter_list() and recv_filter_list() functions now handle
all the logic needed to do the right thing for -C (this used to be
in main.c).
2005-02-04 21:13:06 +00:00
Wayne Davison
3a5e9224d0
- Changed add_filter() to parse_rule() and add_filter_file()
...
to parse_filter_file().
- Moved the definintion of the "local_server" variable into main.c.
2005-02-04 21:13:03 +00:00
Wayne Davison
ebfd1a1cf7
Changed add_filter() to parse_rule() and add_filter_file()
...
to parse_filter_file().
2005-02-04 21:13:00 +00:00
Wayne Davison
dd667c2301
Call get_rule_prefix() with its new arg.
2005-02-04 21:12:56 +00:00
Wayne Davison
d727f0ff48
Fixed the MODIFIERS_MERGE_FILE define.
2005-02-04 00:48:18 +00:00
Wayne Davison
eb9b2e53c8
Changed delete_missing() to not limit the use of DEL_FORCE_RECURSE
...
to just --delete-during now that the other delete routines are using
delete_in_dir().
2005-02-03 19:19:39 +00:00
Wayne Davison
b6f06b8e8b
Added an mflags arg to get_filter_tok(), add_filter_file(), and
...
add_filter(). This made for less flag conversion between various
MATCHFLG_* and XFLG_* values. It also made it easy to fix a bug
in the handling of no-prefix per-directory include/exclude files.
We also use the new XFLG_OLD_PREFIXES and MATCHFLGS_FROM_CONTAINER
defines.
2005-02-03 19:00:20 +00:00
Wayne Davison
0a68f869d7
Call add_filter() and add_filter_file() with their new flag args.
2005-02-03 19:00:17 +00:00
Wayne Davison
3b2461cf2e
- Got rid of a bunch of XFLG_* options.
...
- Added XFLG_OLD_PREFIXES and MATCHFLGS_FROM_CONTAINER defines.
2005-02-03 19:00:13 +00:00
Wayne Davison
346402ddbf
Use the new negated exclude to filter out all non-dirs in a few
...
of the rsync commands.
2005-02-03 03:45:24 +00:00
Wayne Davison
44d60d5f83
Document the new "!" modifier for include/exclude filter rules (to
...
negate the match).
2005-02-03 03:37:02 +00:00
Wayne Davison
f2ae9e8583
Implemented a "!" modifier for filter rules that lets a rule trigger
...
on a non-matching pattern.
2005-02-03 03:36:58 +00:00
Wayne Davison
7c8e23bd9f
Added MATCHFLG_NEGATE.
2005-02-03 03:36:55 +00:00
Wayne Davison
0752721dc3
Mention the latest delete optimization.
2005-02-03 02:01:22 +00:00
Wayne Davison
68a94ac30f
Changed delete_files() to use the delete_in_dir() function, which
...
saves a ton of memory for a large set of files.
2005-02-03 02:01:20 +00:00
Wayne Davison
ee3751c8d7
- We now separate the user-specified top-dir flag (via the restored
...
FLAG_TOP_DIR) from the del-in-this-directory flag (FLAG_DEL_HERE).
This was needed to properly handle -x in delete_in_dir().
- The delete_in_dir() function takes a slightly changed set of args.
- Always set the FLAG_DEL_HERE flags, not just for --delete-during.
2005-02-03 02:01:17 +00:00
Wayne Davison
ec33e0e6bd
- Changed {XMIT,FLAG}_DEL_START back to {XMIT,FLAG}_TOP_DIR.
...
- Define FLAG_DEL_HERE.
2005-02-03 02:01:14 +00:00
Wayne Davison
31937d363b
Call delete_in_dir() with its new args.
2005-02-03 02:01:11 +00:00
Wayne Davison
8982a89b24
In hlink_compare(), call f_name_cmp() directly instead of using
...
file_compare().
2005-02-03 01:19:03 +00:00
Wayne Davison
0492fdfb2e
- Improved some comments.
...
- Changed the index passed to recv_generator() from "i" to "ndx".
- Call delete_in_dir() with its new args.
- During the redo phase, clear a bunch of options that might interfere
with the generator deciding it needs to redo the file (for instance,
--update-only could have interfered if --partial was specified).
2005-02-03 01:19:01 +00:00
Wayne Davison
14698a3a1a
- Moved an optimization from file_compare() into f_name_cmp() (the one
...
that avoids doing a string-compare on two identical char pointers),
making it just a wrapper for f_name_cmp(). Also made file_compare()
static because everyone now calls f_name_cmp() directly.
- Improved the flist summary that is output at high verbosity.
- Improved delete_in_dir() to better handle the push/pop semantics
based on the depth value that is now passed in as an arg (so that
we don't have to parse it out of the paths each time).
2005-02-03 01:18:58 +00:00
Wayne Davison
8c2ffaf095
- If recv_files() is sent the index of a directory, complain about it
...
and die.
- Moved a few code snippets in recv_files() into better locations.
2005-02-03 00:19:40 +00:00
Wayne Davison
afd72c78bd
If the generator sends us the index of a directory, generate an
...
error and die.
2005-02-02 17:15:22 +00:00
Wayne Davison
6bf822649b
- Fixed a problem with the setting of the --recurse option from the
...
batch file.
- Save the state of the --dirs option in the batch flags in a way
that is compatible with older protocol versions.
2005-02-02 09:40:45 +00:00
Wayne Davison
67dde16163
In read_sum_head: output the who_am_i() info in our error messages.
2005-02-01 16:42:01 +00:00
Wayne Davison
f1d5ba4005
Set am_sender to -1 until the end of the option parsing. This
...
lets who_am_i() output better values for the command-line
--filter/--include/--exclude options.
2005-02-01 09:46:42 +00:00
Wayne Davison
794b0a037f
Changed who_am_i() to output "server" or "client" when am_sender
...
is negative. This will only occur during the startup phase
before we know if we're the sender or not (e.g. when parsing
client-side --filter/--exclude/--include options).
2005-02-01 09:45:09 +00:00
Wayne Davison
c32edbe02e
Make sure the %f expansion handles the new dir.root properly.
2005-02-01 09:23:59 +00:00
Wayne Davison
f3c3ed44e6
- Made flist_find() and receive_file_entry() static functions.
...
- Changed receive_file_entry() args.
- We now store the directory depth into file->dir.depth when
receiving the file list. This will be used to aid in the
traversal of the file list on the receiving side for things
such as the future --fuzzy option and better --delete-during
processing.
- Fixed a bug when -R was used with "." as a source directory:
subdirectories were not being promoted to FLAG_DEL_START when
--delete-during was specified.
- Refer to the old basedir variable as dir.root.
- Got rid of the first-push code -- I decided that it wasn't
the right thing to do for per-dir merge-file processing.
- Improved the flist_find() function to make it a little more
optimal. The new code no longer needs the inline function
flist_up().
- In clean_flist() we now set two new values in the flist struct:
"low" and "high". These are used by the new flist_find().
- Tweaked the output_flist() function to output each entry's
flags and to output the directory-depth on the receiving side
in place of the directory-root (which is still output on the
sending side).
2005-02-01 09:21:32 +00:00
Wayne Davison
f805730493
- Put "basedir" into a union "dir" and named it "root". The other
...
member of the union is "depth".
- Added members "low" and "high" to the file list structure (which
are set when the list is cleaned).
- Got rid of the flist_up() inline function.
2005-02-01 09:21:30 +00:00
Wayne Davison
2b1366635d
Refer to the old basedir variable as dir.root.
2005-02-01 09:21:28 +00:00
Wayne Davison
42f23f479d
Fixed a typo in a variable name.
2005-02-01 08:12:00 +00:00
Wayne Davison
62bf783f06
Changed the "s" modifier to "w" for word-splitting tokens from a
...
merge filter file. Also sprinkled some bf(...) macros into that
section.
2005-01-31 23:57:35 +00:00
Wayne Davison
0b2901b72d
Changed the "s" modifier to "w" for a word-splitting merge file.
2005-01-31 23:51:54 +00:00
Wayne Davison
faa82484a5
- Mark references to command-line switches with the bf(...) macro.
...
- Changed some verb(...) macros to use other yodl idioms because
yodl inserts way too much vertical whitespace surrounding the
item.
- Some items weren't indenting enough in the manpage, though they
were indenting fine in the HTML version, so used some creative
idioms to get things to render well in both.
- Got rid of some empty lines in lists.
- Made several quote(...) items also tt(...).
2005-01-31 23:41:08 +00:00
Wayne Davison
4ccfd96cfe
Tweaked one or more warning messages.
2005-01-31 19:13:19 +00:00
Wayne Davison
408aa7b24c
Improved the exclude tests to make sure that the filter files
...
are interacting with --delete-during correctly.
2005-01-31 18:09:23 +00:00
Wayne Davison
776b9d1c00
Added "need_first_push" logic to delete_in_dir().
2005-01-30 20:24:11 +00:00
Wayne Davison
c93fad5ee0
The --delete-during processing only happens during the first phase
...
(not the redo phase). We also call delete_in_dir(NULL, NULL) to
make sure that all the local filter files get popped.
2005-01-30 10:06:18 +00:00
Wayne Davison
19b2a5d9fd
delete_in_dir() now mananges the push/pop levels of nested
...
directories properly.
2005-01-30 10:01:21 +00:00
Wayne Davison
f1773e09ab
- Now delete_in_dir() calls send_directory(), not send_file_name().
...
- Moved the local-list push/pop code out of send_directory() so that
the callers (send_file_name() and delete_in_dir()) can call the
push/pop functions themselves. This is in preparation for
delete_in_dir() getting fully correct push/pop semantics (for
its --delete-during handling of per-dir filter files).
2005-01-30 09:12:55 +00:00
Wayne Davison
462c51d9a1
- Restored the io_error test to delete_files().
...
- Sanity check the dir_list value from send_file_list().
2005-01-30 07:35:13 +00:00
Wayne Davison
2430e98412
- Made delete_files() call send_file_list() and delete_missing()
...
instead of delete_in_dir().
- Tweaked check in front of delete_files() call.
2005-01-29 22:35:53 +00:00
Wayne Davison
78fc60cd29
If --recurse wasn't specified, turn off all the --delete* options.
2005-01-29 22:35:50 +00:00
Wayne Davison
864146de58
Tweaked check in front of delete_files() call.
2005-01-29 22:35:47 +00:00
Wayne Davison
45478cc79b
- Improved the handling of -x with -K.
...
- Changed delete_in_dir() to only be used by the --delete-during
option.
- Added delete_missing() that is used by both delete_files() and
delete_in_dir().
- delete_files() still uses send_file_list(), but delete_in_dir()
now uses send_file_name().
2005-01-29 22:35:44 +00:00
Wayne Davison
5454d22ad8
The --dirs was sending -k instead of -d.
2005-01-29 21:25:44 +00:00
Wayne Davison
dc1488ae47
- Document the new "/" modifier for -/+.
...
- "=" is no longer a valid separator for a filter rule.
2005-01-29 20:48:27 +00:00
Wayne Davison
0121a8ecad
Renamed XFLG_ABS_PATH XFLG_ANCHORED2ABS.
2005-01-29 20:48:23 +00:00
Wayne Davison
7bc90b3066
Moved the module_id define into clientserver.c.
2005-01-29 20:48:20 +00:00
Wayne Davison
bf39270e0c
- Renamed make_filter() to filter_rule().
...
- Added the "/" modifier to the -/+ filter rules to allow the
rule to specify an absolute path (sets MATCHFLG_ABS_PATH).
- Added the passing of the xflgags to filter_rule() and key off
XFLG_ANCHORED2ABS to prepend the current dirbuf value (was
keing off MATCHFLG_ABS_PATH).
- We no longer allow a '=' to separate the filter rule from its
arg (just a single space or an underscore).
- For triple verbose levels, mention when we look for a filter
file even if we don't find it (used to only mention the file
when it was found).
- A chrooted daemon process now includes /.cvsignore (inside the
chrooted hierarchy) instead of $HOME/.cvsignore.
2005-01-29 20:48:17 +00:00
Wayne Davison
211bc43b6e
- Moved the module_id definition from options.c to here.
...
- Use the new XFLG_ANCHORED2ABS name for the old XFLG_ABS_PATH
define.
2005-01-29 20:48:14 +00:00
Wayne Davison
91c5833bd0
Change one call to add_cvs_excludes() to add_filter() to just add
...
the per-dir .cvsignore rule for protocols < 29.
2005-01-29 20:29:06 +00:00
Wayne Davison
8311f1c11e
A minor change to the HAVE_GETPGRP code.
2005-01-28 23:00:58 +00:00
Wayne Davison
ae2836325f
Fixed some typos.
2005-01-28 22:01:02 +00:00
Wayne Davison
a897af2cde
Mention a few more things.
2005-01-28 21:48:32 +00:00
Wayne Davison
cc80022e84
Pass an unsigned character to isdigit().
2005-01-28 21:32:20 +00:00
Wayne Davison
5a016db9b6
Don't allow the user to specify a filter file that is excluded
...
by a daemon's config options.
2005-01-28 21:28:08 +00:00
Wayne Davison
92e1aeede7
Got rid of an unreachable free() call.
2005-01-28 21:07:05 +00:00
Wayne Davison
f846a9bfe9
Cast each value referenced from the struct mallinfo to a long
...
in order to print it.
2005-01-28 21:05:50 +00:00
Wayne Davison
3db859e8b5
Don't set unsigned del_heir_name_len to -1 -- it's only used
...
if in_del_hier is non-zero, so it doesn't need to take on an
invalid value.
2005-01-28 21:03:50 +00:00
Wayne Davison
0eeb1cf83a
Case uchar pointer to a char pointer when calling strlen().
2005-01-28 21:02:15 +00:00
Wayne Davison
5f238db203
- Use "uchar" instead of "unsigned char".
...
- Tweaked an initializer to try to avoid a compiler warning.
2005-01-28 21:01:21 +00:00
Wayne Davison
422696201a
Call the right stat function based on USE_STAT64_FUNCS.
2005-01-28 20:43:09 +00:00
Wayne Davison
58fef0ac38
Changed direct call to fstat() into a call to do_fstat().
2005-01-28 20:41:36 +00:00
Wayne Davison
25e1181466
Use new USE_STAT64_FUNCS define.
2005-01-28 20:33:55 +00:00
Wayne Davison
5b5f7e3b59
- Use off_t if SIZEOF_OFF_T is 8.
...
- Define USE_STAT64_FUNCS if we defined STRUCT_STAT as
"struct stat64".
2005-01-28 20:32:47 +00:00
Wayne Davison
dc3afaf6aa
Changed "char" to "uchar" in delayed_bits's new_array() call.
2005-01-28 20:24:23 +00:00
Wayne Davison
1164f67827
Make use of new HAVE_STRUCT_STAT64 define.
2005-01-28 20:15:08 +00:00
Wayne Davison
c83a2c8ec5
Added a check for "struct stat64".
2005-01-28 20:15:06 +00:00
Wayne Davison
43d0f38b24
Do a better job defining an int32. Also define SIZEOF_INT32
...
instead of the (unused) LARGE_INT32 variable.
2005-01-28 19:03:16 +00:00
Wayne Davison
e95538ca2c
- Changed the main core of system include files to use the same "#if"
...
idioms that configure uses.
- Use "#if" (not "#ifdef") for configure-defined macros.
- Use "#if !" (not "#ifndef") for configure-defined macros.
2005-01-28 18:50:54 +00:00
Wayne Davison
25ff04417e
Use "#if" (not "#ifdef") for configure-defined macros.
2005-01-28 18:50:49 +00:00
Wayne Davison
63ecee4d1a
Made log_open() static and made it die with an error if the
...
log-file can't be opened.
2005-01-28 17:42:21 +00:00
Wayne Davison
4c8f6b6a06
No need to call log_open() in start_accept_loop() because
...
rsync_module() calls log_init() before it gives up its privileges.
2005-01-28 17:33:57 +00:00
Wayne Davison
2161111900
Document the "max verbosity" setting.
2005-01-28 17:11:48 +00:00
Wayne Davison
24b0922b0e
Document the --verbose (-v) option for the daemon.
2005-01-28 17:10:58 +00:00
Wayne Davison
186387301f
- Moved read_only variable here from options.c
...
- Set read_only to 1 if the module is read-only.
- Make sure that the verbose level is 0 before we parse the client's
options.
2005-01-28 17:10:16 +00:00
Wayne Davison
1bd9db74ba
- Added --verbose option parsing to the daemon options.
...
- Moved read_only into clientserver.c.
2005-01-28 17:07:54 +00:00
Wayne Davison
df6933406f
Got rid of unused mmap section.
2005-01-28 17:06:41 +00:00
Wayne Davison
d679c8390a
Changed HAVE_OFF64_T to SIZEOF_OFF64_T.
2005-01-28 16:27:02 +00:00
Wayne Davison
d4daa7b68c
Changed HAVE_OFF64_T to SIZEOF_OFF64_T.
2005-01-28 16:21:37 +00:00
Wayne Davison
44d98d6166
Improved the option summaries.
2005-01-28 09:55:36 +00:00
Wayne Davison
b3708acf27
Improved the option-descriptions in the --help text.
2005-01-28 09:55:18 +00:00
Wayne Davison
2c0fa6c5df
More --delete-before improvements.
2005-01-28 08:01:33 +00:00
Wayne Davison
57f74bd1c2
One minor tweak to the --delete-before option-passing code.
2005-01-28 07:50:00 +00:00
Wayne Davison
598c409e63
Document --delete-before.
2005-01-28 07:39:59 +00:00
Wayne Davison
c6eb7fad68
Added back support for the --delete-before option so that future
...
verions of rsync can more easily change the default that --delete
implies and still support explicit --delete-before functionality
when interacting with older versions.
2005-01-28 07:39:09 +00:00
Wayne Davison
c561edaa72
Added a sanity check for the SIZEOF_INT64 define.
2005-01-28 06:51:44 +00:00
Wayne Davison
031fa9ad4d
Use the new SIZEOF_INT64 define instead of INT64_IS_OFF_T.
2005-01-28 06:46:33 +00:00
Wayne Davison
d622d4bf30
- Switched the int64 code over to using the improved SIZEOF_*
...
macros.
- Define SIZEOF_INT64 to a value that is useable at compile time.
- Got rid of INT64_IS_OFF_T.
2005-01-28 06:45:16 +00:00
Wayne Davison
e32db5c9aa
Switched the checks for "long long" and "off64_t" to use the
...
AC_CHECK_SIZEOF() macro since it now fully supports cross-
compiling.
2005-01-28 06:43:48 +00:00
Wayne Davison
4a6c209a13
Use SIGNED_CHAR_OK instead of HAVE_UNSIGNED_CHAR.
2005-01-28 02:01:18 +00:00
Wayne Davison
0d2aa5d9d7
- Made some of the tests work better when cross-compiling.
...
- Added descriptions for all config.h variables that had none.
- Changed HAVE_UNSIGNED_CHAR to SIGNED_CHAR_OK.
- Got rid of (the unused) HAVE_SHORT_INO_T.
- Changed version to 2.6.4cvs (long overdue).
2005-01-28 02:00:40 +00:00
Wayne Davison
e30b1fb8fd
Added a few more details of changes since 2.6.3.
2005-01-28 01:56:50 +00:00
Wayne Davison
da1b6eeaf2
Mention the latest changes plus a few missed items.
2005-01-28 00:01:54 +00:00
Wayne Davison
01b835c237
Docment the new --delay-updates option.
2005-01-27 22:47:23 +00:00
Wayne Davison
48e1c8c69d
Implement the new --delay-updates option.
2005-01-27 22:46:36 +00:00
Wayne Davison
f06e708282
Added the new --delay-updates option.
2005-01-27 22:46:14 +00:00
Wayne Davison
f0f7e760ae
- Output the new flist time stats (when available).
...
- For protocol 29 and above, send the flist time stats to the
client side (as needed).
2005-01-27 22:23:30 +00:00
Wayne Davison
31b4d25d10
Set the new stats.flist_buildtime and stats.flist_xfertime values.
2005-01-27 22:21:45 +00:00
Wayne Davison
d41988232e
- Added a caveat to the definition of the int64 type.
...
- Added two time values to the stats struct.
2005-01-27 21:55:11 +00:00
Wayne Davison
880570f228
Added a missing newline to an error message.
2005-01-27 21:45:32 +00:00
Wayne Davison
72a90c750a
Bumped the copyright year to 2005.
2005-01-27 21:42:56 +00:00
Wayne Davison
e1988bc744
Added .rsync-filter.
2005-01-25 18:16:34 +00:00
Wayne Davison
d6a3e37b83
If rsync is put in the background, output fewer progress-report
...
lines.
2005-01-25 17:16:13 +00:00
Wayne Davison
8261047b1e
- Use the "--filter=._-" option instead of --exclude-from=- if the
...
protocol being saved is >= 29.
- Call the new get_rule_prefix() function to figure out the right
rule prefix.
- Strip out the --filter and -f options from the cached command-line.
2005-01-25 12:13:53 +00:00
Wayne Davison
417b59997f
- Moved the code that turns rule flags into chars into a new
...
function called get_rule_prefix().
- Don't pass the per-dir .cvsignore rule from -C for protocols < 29.
2005-01-25 12:10:31 +00:00
Wayne Davison
4366d2c428
In delete_files(), handle new DEL_NO_RECURSE flag (and use
...
renamed DEL_FORCE_RECURSE flag.
2005-01-25 12:07:13 +00:00
Wayne Davison
217cc3b045
- The call to delete_file() needs DEL_NO_RECURSE when handling
...
delete_before or delete_after or --dry-run will report too
many deletions.
- Changed DEL_RECURSE to DEL_FORCE_RECURSE.
2005-01-25 12:05:20 +00:00
Wayne Davison
757e0a5445
Added DEL_NO_RECURSE and changed DEL_RECURSE to DEL_FORCE_RECURSE.
2005-01-25 12:02:08 +00:00
Wayne Davison
ddf6410130
Needed to call add_cvs_excludes() from one more code path.
2005-01-25 11:55:03 +00:00
Wayne Davison
7842418b7b
Renamed several exclude-related functions/variables using new
...
filter terminology.
2005-01-25 10:39:14 +00:00
Wayne Davison
9624b86426
Mention the latest new options.
2005-01-25 04:00:31 +00:00
Wayne Davison
201a2fe5ff
Added testing for --filter and merge-file features.
2005-01-25 03:18:29 +00:00
Wayne Davison
ed032a88b8
Mention that --del is a popt alias for --delete-during, so there's
...
no need to refuse "del" by name -- just refusing "delete-during" or
"delete*" is sufficient.
2005-01-25 03:09:06 +00:00
Wayne Davison
ae76a74043
Document the latest --delete options, including --delete-during.
2005-01-25 03:09:02 +00:00
Wayne Davison
3359acb8cb
- Changed --delete to go back to defaulting to the delete-before
...
functionality.
- Got rid of --delete-before.
- Added --delete-during.
- Added a popt alias for --delete-during: --del.
- Fixed a bug in the generation of the proper --delete options
for the server.
- Generate an error if the user tries to specify both --delete-during
and --delete-after.
2005-01-25 03:08:58 +00:00
Wayne Davison
a2b371cd52
Don't try to allocate zero bytes in push_local_excludes().
2005-01-25 02:30:59 +00:00
Wayne Davison
dd69b3976a
Document the new "filter" parameter.
2005-01-25 00:53:07 +00:00
Wayne Davison
16e5de84da
Document --filter (-f) and -F, with lots of changes to the
...
include/exclude sections, including a little restructuring.
2005-01-25 00:53:03 +00:00
Wayne Davison
46fa602530
Some changes to support the new --filter option:
...
- Changed XFLG_WORDS_ONLY to XFLG_NO_PREFIXES.
- Added XFLG_DEF_EXCLUDE and XFLG_ABS_PATH.
- Added some new MATCHFLG_* values for the new merge-file support.
- Put the "slash_cnt" var (in the exclude_struct) into a union with
the new megelist pointer.
2005-01-25 00:52:59 +00:00
Wayne Davison
aa4d3b4cc0
- Added parsing for --filter (-f) and -F.
...
- Changed the include/exclude calls to work with the new XFLG_* values.
2005-01-25 00:52:56 +00:00
Wayne Davison
73ed23495e
Added the "filter" parameter.
2005-01-25 00:52:53 +00:00
Wayne Davison
c7d970f782
The calls into the exclude system changed a little for the new --filter
...
option:
- The special handling for cvs_exclude went away.
- Call push_local_excludes() and pop_local_excludes() instead of fiddling
with the (no longer present) local_exclude_list var.
2005-01-25 00:52:50 +00:00
Wayne Davison
6dfd07d025
Implemented the core of the merge-file and per-dir merge-file support
...
for the --filter option. Some noteworthy changes:
- Added push_local_excludes() and pop_local_excludes() to implement
the changes needed as we go from directory to directory (this takes
the place of the old local_exclude_list var that only handled the
.cvsignore files). These per-dir excludes are linked into the same
exclude list as the global excludes.
- The exclude list is transferred as filter rules to an rsync that
talks protocol 29 or above. It limits itself to just include/exclude
rules for older rsyncs.
2005-01-25 00:52:47 +00:00
Wayne Davison
e7bf7c0161
Some exclude changes for the new --filter option, including:
...
- Added module_dirlen var.
- Call set_excludes_dir() instead of setting exclude_path_prefix.
- Use the newest XFLG_* options.
2005-01-25 00:52:44 +00:00
Wayne Davison
f5a7b9e716
Improved the explanation for --omit-dir-times.
2005-01-25 00:47:35 +00:00
Wayne Davison
b951e023ec
Moved the code that reads the extra byte for a modern inplace
...
transfer up nearer the code that reads the index.
2005-01-24 17:19:04 +00:00
Wayne Davison
3ea9bbd632
Optimized away the post-transfer directory loop in certain
...
circumstances.
2005-01-24 06:19:58 +00:00
Wayne Davison
aaca3daa27
Document --delete-before and --delete's new "during" behavior.
2005-01-24 01:41:57 +00:00
Wayne Davison
a51b316824
Added the delete-during handling (also selected with --delete) and
...
added --delete-before for the old delete logic.
2005-01-24 01:41:54 +00:00
Wayne Davison
928a00c474
Moved a call to add_cvs_exclude() from the delete code to one code-
...
path in this file. This avoids a potential duplication of the
cvs-excludes that would occur in the old logic.
2005-01-24 01:41:51 +00:00
Wayne Davison
fa13f396d5
Added code to implement the delete-during handling.
2005-01-24 01:41:48 +00:00
Wayne Davison
3ab56a20ee
Moved some of the delete code into flist.c since the generator now
...
calls it for the delete-during handling.
2005-01-24 01:41:45 +00:00
Wayne Davison
649f874292
Moved some of the delete code from receiver.c to here and implemented
...
the handling for delete_during (which is called from the generator).
2005-01-24 01:41:42 +00:00
Wayne Davison
90fdd89a0b
Mention the --omit-dir-times option.
2005-01-24 00:56:37 +00:00
Wayne Davison
54e66f1d59
Document --omit-dir-times.
2005-01-24 00:51:38 +00:00
Wayne Davison
82471e68a8
Honor the new omit_dir_times var.
2005-01-24 00:51:34 +00:00
Wayne Davison
20fb7b9175
Added --omit-dir-times (-O).
2005-01-24 00:51:32 +00:00
Wayne Davison
859fdaad45
Mentioned the --dirs and --list-only options.
2005-01-24 00:34:53 +00:00
Wayne Davison
09ed309996
- Changed --keep-dirs (-k) into --dirs (-d).
...
- Document --list-only.
2005-01-24 00:17:42 +00:00
Wayne Davison
65e4cda059
- Changed --keep-dirs (-k) into --dirs (-d).
...
- Renamed keep_dirs to xfer_dirs.
- Mention --list-only in the --help.
2005-01-24 00:17:39 +00:00
Wayne Davison
7e037c4226
Renamed keep_dirs, "xfer_dirs".
2005-01-24 00:17:36 +00:00
Wayne Davison
f636c38440
Document the new --keep-dirs option.
2005-01-23 16:49:09 +00:00
Wayne Davison
b98f040ef2
Go back to requiring -r for deletes to happen.
2005-01-23 07:27:01 +00:00
Wayne Davison
e57211c544
When an option defined with POPT_ARG_VAL is being refused, we must
...
change it to POPT_ARG_NONE or it won't be refused.
2005-01-23 01:25:36 +00:00
Wayne Davison
48a1ff0d45
- Use the new delete_before var.
...
- Check the "keep_dirs" var instead of "recurse" to decide if
delete is appropriate.
2005-01-22 22:48:40 +00:00
Wayne Davison
032dcf74b0
Check the "keep_dirs" var instead of "recurse" to decide if
...
delete-after is appropriate.
2005-01-22 22:48:37 +00:00
Wayne Davison
51d4839861
- We now set a delete_before variable for the --delete option.
...
- Reordered some of the options in the --help list.
- Made the popt-handling of the delete options simpler.
- Parse the new --keep-dirs option.
- Parse the new --list-only option.
- Set recurse to -1 (infinite) for the -r and -a options.
- Set keep_dirs for --list-only.
2005-01-22 22:48:34 +00:00
Wayne Davison
9f125ea7c1
- Implemented a new handling of the recurse variable: if it is
...
< 0, it specifies infinite recursion, otherwise it contains a
count of how many levels of recursion we will allow.
- If the user is processing/listing a non-recursive directory/
arg, send the contents.
2005-01-22 22:48:31 +00:00
Wayne Davison
9bcb25958d
- Mustn't override a user-specified list_only value.
...
- Moved the computing of the options for the server down until
after we've figured out the protocol_version for the transfer.
- If we're talking to a protocol-29 server in list-only mode,
force the new --list-only mode (which avoids the -r with
--exclude="/*/*" kluge).
- Output the options we sent to the daemon if verbose > 1.
2005-01-22 22:48:27 +00:00
Wayne Davison
866925bfb7
Changed the order of a few of the options in the options summary.
2005-01-22 20:32:03 +00:00
Wayne Davison
f8b3c05311
Mustn't override a user-specified list_only value.
2005-01-22 20:28:17 +00:00
Wayne Davison
353f272434
Changed a comment.
2005-01-22 20:27:22 +00:00
Wayne Davison
3d54c6ec46
Moved the /proc/mounts literal string nearer to the top.
2005-01-22 08:11:43 +00:00
Wayne Davison
71e27c463d
- Changed XMIT_TOP_DIR to XMIT_DEL_START.
...
- Changed FLAG_TOP_DIR to FLAG_DEL_START.
2005-01-21 00:34:37 +00:00
Wayne Davison
8c48382049
Don't mention when the file-list is first allocated, just when it
...
expands.
2005-01-20 23:57:35 +00:00
Wayne Davison
11781089d1
In delete_file(): got rid of DEL_NO_RECURSE code and added
...
DEL_RECURSE code. Improved the verbose output of a recursively
deleted directory when --dry-run is specified.
2005-01-20 23:51:57 +00:00
Wayne Davison
d97fd43a72
Decided that delete_in_dir()'s call to delete_file() would be
...
better using DEL_RECURSE.
2005-01-20 23:51:55 +00:00
Wayne Davison
f5ea4b3b39
Changed DEL_NO_RECURSE to DEL_RECURSE.
2005-01-20 23:51:52 +00:00
Wayne Davison
f227ffe4b9
Moved the dry_run check in set_perms() so that it only triggers if
...
we don't have a stat-buffer (and returns 1, not 0).
2005-01-20 23:01:34 +00:00
Wayne Davison
027428eb1d
Got rid of the erroneous --dry-run short-circuit in the directory
...
handling.
2005-01-20 22:59:54 +00:00
Wayne Davison
15778afbdc
In set_modtime(), the verbose message should be output even if
...
--dry-run was specified.
2005-01-20 22:58:30 +00:00
Wayne Davison
d06f63287e
- Got rid of the uint64 typedef.
...
- Changed the dev/inode vars to use int64.
2005-01-20 22:43:32 +00:00
Wayne Davison
1490812ab2
Switched uint64 vars over to int64.
2005-01-20 22:42:47 +00:00
Wayne Davison
707415d4fc
Use int64 instead of uint64.
2005-01-20 22:37:38 +00:00
Wayne Davison
9cea6ef1b6
Improved a confusing sentence in the description of subcomponent
...
include/exclude matching.
2005-01-20 19:31:42 +00:00
Wayne Davison
48ea74bf01
When outputting the file list created for the delete pass, identify
...
it as such.
2005-01-20 00:53:15 +00:00
Wayne Davison
026deaf759
Added an example of running mnt-excl remotely via ssh for a pull.
2005-01-19 21:07:09 +00:00
Wayne Davison
4c59971194
A perl script that outputs excludes for all mount points that affect
...
the supplied source dir (or all mount points if the arg is omitted).
The excludes are appropriately anchored relative to the supplied dir,
and honor rsync's trailing-slash idiom.
2005-01-19 21:00:26 +00:00
Wayne Davison
fd8571c2c9
Mention a change in the verbose output when deleting directories.
2005-01-19 20:32:25 +00:00
Wayne Davison
dd096ae080
- Updated delete_file() to take a flag arg that makes it more
...
flexible. Optimized away a stat() call since the caller knows
if the item to delete is a directory or not.
- Tweaked delete_file()'s "deleting ..." messages to include a
trailing slash when we're deleting a directory.
- No need for conditional code around do_lstat() anymore.
2005-01-19 20:11:03 +00:00
Wayne Davison
eb1accaa91
Define the new DEL_* flags.
2005-01-19 20:11:00 +00:00
Wayne Davison
7e38410e47
- Moved write_sum_head() to io.c.
...
- Use the new delete_file() calling syntax.
2005-01-19 20:10:57 +00:00
Wayne Davison
d336388403
Got rid of delete_one() since we can (and do) use the updated
...
delete_file() call now.
2005-01-19 20:10:53 +00:00
Wayne Davison
c207d7ec62
Moved write_sum_head() here from generator.c.
2005-01-19 20:10:50 +00:00
Wayne Davison
018b28328c
No need for conditional code around do_lstat() anymore.
2005-01-19 19:30:29 +00:00
Wayne Davison
0957a7463e
When SUPPORT_LINKS is not defined, we now go ahead and provide
...
the do_lstat() function and just have it call do_stat().
2005-01-19 19:29:20 +00:00
Wayne Davison
c72f5bd9c4
A slight simplification to the no-implied-dirs change.
2005-01-19 00:34:13 +00:00
Wayne Davison
0f57446da7
Use the new "keep_dirs" var instead of separately checking the
...
"recurse" and "files_from" vars. This also simplifies the case
where the code wants to send the implied dirs without recursing.
2005-01-19 00:24:35 +00:00
Wayne Davison
3a90ea0acd
- Added new int, keep_dirs, which is set if either recurse or
...
files_from was specified.
- Pass the the sender the --no-implied-dirs option if --relative
was specified (or implied) and the sender is not the client.
2005-01-19 00:23:32 +00:00
Paul Green
58af2f958c
Fix typo in handling of lchown when the host operating system does
...
not implement it. It should get mapped to chown.
2005-01-18 21:19:42 +00:00
Wayne Davison
a8fd4161bb
Mention the latest changes.
2005-01-17 23:55:15 +00:00
Wayne Davison
53f8519a38
For --inplace over protocol-version 29 or greater, read the
...
type the type of basis file the generator is using from the
socket and set the new updating_basis_file var.
2005-01-17 23:11:26 +00:00
Wayne Davison
eb162f3b0a
Mention the change in restrictions for --inplace. Also talk about
...
how --backup makes an --inplace transfer more optimal.
2005-01-17 23:11:22 +00:00
Wayne Davison
4ce838e1f1
We don't need to complain about --inplace being combined with one
...
of the --FOO-dest options anymore.
2005-01-17 23:11:18 +00:00
Wayne Davison
a36ffd3910
Changed the checks for --inplace to use the new updating_basis_file
...
variable.
2005-01-17 23:11:13 +00:00
Wayne Davison
17b5b32f75
For --inplace over protocol-version 29 or greater, tell the
...
sender what kind of a basis file we've selected.
2005-01-17 23:11:05 +00:00
Wayne Davison
9b919d590a
- Moved read_sum_head() to io.c (because the generator uses it too).
...
- Tweaked the read_size var (formerly map_size) that gets passed to
map_file().
2005-01-17 22:51:29 +00:00
Wayne Davison
80264051d8
Tweaked the read_size var (formerly map_size) that gets passed to
...
map_file().
2005-01-17 22:51:27 +00:00
Wayne Davison
188fed9570
Moved read_sum_head() here from sender.c (because the generator uses it
...
too) and improved it with better error checking.
2005-01-17 22:51:24 +00:00
Wayne Davison
eae7165c79
Make sure that we don't compute a block size larger than MAX_BLOCK_SIZE.
2005-01-17 22:51:21 +00:00
Wayne Davison
54281fe733
- Changed the map_size parameter to map_file() to be an int32 named
...
"read_size".
- Changed some int vars in map_ptr() needed to be int32 vars.
- All callers expect map_ptr() to return back the full "len" bytes,
so we never shorten this value, even near EOF--the read will
just get zero-padded, as needed.
- Die with an error if someone calls map_ptr() with a len < 0, or
if read_size is computed as a value < 0.
2005-01-17 22:51:17 +00:00
Wayne Davison
2b2ea368aa
- Incremented the PROTOCOL_VERSION to 29.
...
- Added define for MAX_BLOCK_SIZE.
- Reorder the variables in the structure defs to sort by size.
- Some vars in map_struct needed to be int32 instead of int.
2005-01-17 22:51:15 +00:00
Wayne Davison
67a28eb256
Got rid of an unneeded assert().
2005-01-17 22:25:53 +00:00
Wayne Davison
f5d96a6f80
Added a commented-out RSYNC initialization that uses valgrind.
2005-01-17 22:24:08 +00:00
Wayne Davison
44ac015598
Put double-quotes around the --rsync-path arg.
2005-01-17 22:23:09 +00:00
Wayne Davison
89a9c0545e
Collapsed two sed invocations into one.
2005-01-17 06:00:44 +00:00
Wayne Davison
3b26bba0c4
Fixed an off-by-one comparison against MAX_BASIS_DIRS.
2005-01-15 21:23:04 +00:00
Wayne Davison
2be2fb3ed3
Use the new FNAMECMP_BASIS_DIR_HIGH to improve a compare-dest check.
2005-01-15 21:17:39 +00:00
Wayne Davison
e341588a8a
Define FNAMECMP_BASIS_DIR_LOW and FNAMECMP_BASIS_DIR_HIGH instead of
...
FNAMECMP_BASIS_DIR.
2005-01-15 21:17:36 +00:00
Wayne Davison
c56595d749
Make sure that the generator sent us a valid index into basis_dir[].
2005-01-15 21:14:27 +00:00
Wayne Davison
ce0b384fa6
Made basis_dir_cnt non-static.
2005-01-15 21:12:58 +00:00
Wayne Davison
dfd7d541b0
Made compare_dest non-static.
2005-01-15 20:54:25 +00:00
Wayne Davison
ded4daf049
Some inplace-checking code should have been inside the #ifdef that
...
handles the case where --inplace cannot be supported.
2005-01-15 20:22:54 +00:00
Wayne Davison
361428213b
Simplified the logic in allow_access() and tweaked some whitespace.
2005-01-15 20:06:48 +00:00
Wayne Davison
12a79db2f6
Simplified one "if" that checks if one of the --FOO-dest options
...
was specified.
2005-01-15 04:40:06 +00:00
Wayne Davison
e8b155a3be
Improved the docs on --delete and --delete-after.
2005-01-14 19:49:35 +00:00
Wayne Davison
716b46c550
- We now remove the DEST~old~ dir instead of renaming it to DEST~new~.
...
- Improved the usage message and added an introductory comment.
2005-01-14 19:23:20 +00:00
Wayne Davison
9d954dca8c
Make sure that the presence of a partial-dir file is noted, even
...
if --whole-file is in effect. Also needed to force statret to 0
when using a partial-dir file.
2005-01-14 18:20:46 +00:00
Wayne Davison
7162c65df7
We also need the "name pipe" from the generator to the receiver
...
when --partial-dir was specified.
2005-01-14 18:18:31 +00:00
Wayne Davison
bd9fca4708
For the "unexpected tag" or "multiplexing overflow" messages, we
...
now output who_am_i() so we know who had the problem.
2005-01-14 18:17:32 +00:00
Wayne Davison
14d496cc8b
Aid forward-compatibility in the include/exclude syntax by putting
...
a "- " in front of any name that starts with a '+' or a '-' and would
otherwise be unprefixed (the old code only did this if the '+' or '-'
was followed by a space).
2005-01-13 22:01:56 +00:00
Wayne Davison
106a8ad918
- Allow multiple source paths to be specified (and checked).
...
- Allow spaces and a few other extra chars in file names.
- For safety, disallow any option that takes an arg. This should
be improved in the future because it blocks options such as
--block-size=N, but without this rule the user could specify
something like --files-from=FILE or --backup-dir=DIR and have
it affect files outside the desired SUBDIR restriction.
- Switched to SSH_CONNECTION from the deprecated SSH_CLIENT.
- Strip "::ffff:" from the start of an IP from SSH_CONNECTION.
2005-01-12 19:20:07 +00:00
Wayne Davison
44a82a175d
This is Joe Smith's rrsync (restricted rsync) perl script.
2005-01-12 18:48:26 +00:00
Wayne Davison
99248631aa
A simple Makefile.
2005-01-11 18:37:37 +00:00
Wayne Davison
2836ee9b02
A debug program to help diagnose data-transfer corruption problems.
2005-01-11 18:36:31 +00:00
Wayne Davison
d82773ffe9
Fixed the file_checksum1() function that is compiled only when
...
TEST_MDFOUR is defined: it did not have the fix that the main
rsync code got back in protocol 27 to properly handle files
that are a multiple of 64-bytes long.
2005-01-10 20:52:08 +00:00
Wayne Davison
ec626b3f0e
Two more fixes.
2005-01-10 10:08:59 +00:00
Wayne Davison
997d9ea67f
Added a "overwriting_basis" arg to finish_transfer().
2005-01-10 10:03:12 +00:00
Wayne Davison
aec6b9f86f
- Call finish_transfer() with its new arg. This ensures that we only
...
create a backup file if we're about to overwrite the basis file.
- Only clear make_backups for the redo phase if partial_dir isn't set.
2005-01-10 10:03:10 +00:00
Wayne Davison
d45898df80
Call finish_transfer() with its new arg.
2005-01-10 10:03:06 +00:00
Wayne Davison
b0da4b23a0
Moved the reading of the final MSG_DONE message here from main.c
...
(this message comes from the receiver). This ensures that any
redo-pass files and delete-after processing are known to be done
prior to the start of our hard-link and dir-time-munging loops.
2005-01-10 00:31:55 +00:00
Wayne Davison
bf18b7ca67
Moved the reading of the final MSG_DONE message from here to
...
generator.c (the message comes from the receiver). This ensures
that any redo-pass files and delete-after processing are known to be
done prior to the start of the hard-link and dir-time-munging loops.
2005-01-10 00:31:55 +00:00
Wayne Davison
cc17fbfe7d
Mention new atomic-rsync script.
2005-01-06 17:15:36 +00:00
Wayne Davison
fa170b2e5a
A perl script to effect an atomic transfer of a set of files.
2005-01-06 17:13:31 +00:00
Wayne Davison
c61ba345f2
Decided that a cross-compling configure should default the
...
chown-follows-symlinks check to "yes".
2005-01-03 23:01:19 +00:00
Wayne Davison
ae09fb1f91
Improved the last addition.
2005-01-03 22:49:14 +00:00
Wayne Davison
70a2c84cd2
If lchown() is not available, we only skip the call to chown() for a
...
symlink if it will try to follow the symlink (as a normal OS should).
2005-01-03 22:47:55 +00:00
Wayne Davison
21524e3083
- Added a test to see if chown() follows symlinks.
...
- Check for getpgrp() and tcgetpgrp().
2005-01-03 22:42:55 +00:00
Wayne Davison
fbe2aba2e7
Mention lchown() fix.
2005-01-03 21:07:02 +00:00
Wayne Davison
a41a1e8718
If there is no lchown(), don't try to set the user & group of a symlink.
2005-01-03 21:05:39 +00:00
Wayne Davison
051547603a
Moved kluged (conditional) define of lchown from rsync.h to syscall.c.
2005-01-03 21:03:33 +00:00
Wayne Davison
80a25bb880
Backed out changes to send_deflated_token() that surrounded the
...
call to deflate(..., Z_INSERT_ONLY) -- the underlying bug was
caused by the zlib code not handling Z_INSERT_ONLY in the case
where the server has disabled compression.
2005-01-02 09:08:59 +00:00
Wayne Davison
0301b334c7
Fixed Z_INSERT_ONLY support in deflate_stored().
2005-01-02 09:03:44 +00:00
Wayne Davison
1492b4b2b2
The deflate_stored() function needed to support Z_INSERT_ONLY.
2005-01-02 08:49:47 +00:00
Wayne Davison
5b7bcac260
In send_deflated_token(), the section that handles "token != -2"
...
now breaks up the calls to deflate() into CHUNK_SIZE chunks, just
like the other sections of the code.
2005-01-02 00:55:55 +00:00
Wayne Davison
7fcbf9e43e
- Use an int32 for the each block-size variable.
...
- Fixed a problem in send_deflated_token() where the data we are
compressing might not finish processing in one call.
2005-01-01 21:08:20 +00:00
Wayne Davison
6c495e0da4
- Use an int32 for the each block-size variable.
...
- Fixed a potential overflow in the map_size calculation.
2005-01-01 21:08:17 +00:00
Wayne Davison
a06b419d42
Use an int32 for the each block-size variable.
2005-01-01 21:08:14 +00:00
Wayne Davison
a255c592e8
- Use an int32 for the each block-size variable.
...
- Improved the layout and error-checking of the code that
calculates the block-size and the number of checksum bits.
2005-01-01 21:08:11 +00:00
Wayne Davison
7aac6604c4
- Use an int32 for the each block-size variable.
...
- Renamed the local block_size arg to blk_size (to avoid
confusion with the global block_size variable).
2005-01-01 21:08:07 +00:00
Wayne Davison
deb5bf1dff
- Use an int32 for each checksum length variable.
...
- Simplified some of the code, removing a useless memcpy().
2005-01-01 21:08:05 +00:00
Wayne Davison
3dfe6e97a7
Since lp_bind_address() can't return NULL, we need to check if it is
...
an empty string and ignore it when it is.
2004-12-31 09:41:04 +00:00
Wayne Davison
43bab4035b
A minor improvement to the just-committed code.
2004-12-31 00:41:32 +00:00
Wayne Davison
ef0c03ff70
The code that tries to read an error from the socket in an abnormal-
...
exit situation was properly forcing the io_timeout value down to 30
seconds, but failing to set the select_timeout value.
2004-12-31 00:39:59 +00:00
Wayne Davison
ad54dcc827
Set select_timeout if the per-module timeout value was lower than
...
the default select_timeout value.
2004-12-31 00:35:03 +00:00
Wayne Davison
c0ab28d1d9
If we send --files-from to the remote server and relative-paths
...
are not enabled, we need to also send --no-relative.
2004-12-22 09:10:08 +00:00
Wayne Davison
5b2f48da27
Mention latest fix.
2004-12-16 22:48:31 +00:00
Wayne Davison
132fcf36b2
The "ignore nonreadable" daemon parameter no longer affects
...
symlinks that are being copied, even if they point nowhere.
2004-12-16 22:47:36 +00:00
Wayne Davison
4571df58c6
Got rid of the rare failure caused by a directory-time mismatch.
2004-12-14 19:41:19 +00:00
Wayne Davison
f6b384d41f
Don't call do_lstat() unless SUPPORT_LINKS is defined.
2004-12-13 17:22:32 +00:00
Wayne Davison
c259892c3a
Document the client version of the --port option.
2004-12-08 17:30:40 +00:00
Wayne Davison
b471329591
Allow --port to be used in client mode (as well as daemon mode).
2004-12-08 17:29:54 +00:00
Wayne Davison
3add5835db
If rsync_port is 0, set it to RSYNC_PORT.
2004-12-08 17:11:15 +00:00
Wayne Davison
cf510ad2c5
Switching to a better rsync_port fix.
2004-12-08 17:09:59 +00:00
Wayne Davison
696a8d6191
Document the new "address" global option.
2004-12-06 22:45:10 +00:00
Wayne Davison
01f8a1155f
Made --port and --address point the user at the relevant global
...
options in the rsyncd.conf manpage.
2004-12-06 22:45:07 +00:00
Wayne Davison
986aaaaa4b
Check the global option "address" if the user didn't specify
...
an --address option when starting the daemon.
2004-12-06 22:45:03 +00:00
Wayne Davison
c96ee2310d
Added support for the "address" option.
2004-12-06 22:45:00 +00:00
Wayne Davison
76cb2a3a4f
Set default port value for a :: file-spec without a port number.
2004-12-06 17:57:06 +00:00
Wayne Davison
9bef934c76
Improved the examples for the --relative option.
2004-12-03 01:31:24 +00:00
Wayne Davison
85f14172dc
Check the return value of flush_write_file() and report an error
...
if it reports failure.
2004-12-02 17:16:19 +00:00
Wayne Davison
4539c0d79f
Improved the description of the --update option.
2004-11-30 20:43:06 +00:00
Wayne Davison
c3131af90a
Improved some of the descriptions.
2004-11-30 06:07:50 +00:00
Wayne Davison
c2c14fa26e
Removed some redundant words in a sentence.
2004-11-29 17:09:31 +00:00
Wayne Davison
e49f61f5fc
Make some of the --*-dest comments clearer and more complete.
2004-11-27 22:09:33 +00:00
Wayne Davison
22f5bd5e35
Improved some of the items.
2004-11-27 21:55:05 +00:00
Wayne Davison
7a1b73b983
Mentioned the latest enhancements.
2004-11-27 18:26:30 +00:00
Wayne Davison
0c56b1add7
Allow "port" to be specified in the rsyncd.conf file.
2004-11-27 18:24:12 +00:00
Wayne Davison
1e60969646
Added tests for multiple --compare-dest options and --copy-dest.
2004-11-27 17:59:48 +00:00
Wayne Davison
ee29752217
Added support for multiple --*-dest options.
2004-11-27 17:56:58 +00:00
Wayne Davison
e012f858d6
- Added parsing for --copy-dest.
...
- Added support for multiple --*-dest options.
2004-11-27 17:52:51 +00:00
Wayne Davison
c3fad2e227
The compare_dest variable changed.
2004-11-27 17:52:49 +00:00
Wayne Davison
b7e8628c4b
- Added support for --copy-dest, which behaves like --link-dest,
...
but it copies the identical files instead of hard-linking them.
- Added support for multiple --*-dest options.
2004-11-27 17:52:47 +00:00
Wayne Davison
e4977b0b9f
- Define MAX_BASIS_DIRS.
...
- Renamed FNAMECMP_CMPDEST to FNAMECMP_BASIS_DIR.
2004-11-27 17:52:45 +00:00
Wayne Davison
b127c1dc58
Document --copy-dest and the support for multiple --*-dest options.
2004-11-27 17:52:42 +00:00
Wayne Davison
07bff66fb5
Fixed a socket-data conflict when verbosity is >= 2 and the
...
files-from list is coming from a remote receiver.
2004-11-20 17:10:54 +00:00
Wayne Davison
4a888ae6d4
Mention latest fix.
2004-11-20 07:23:20 +00:00
Wayne Davison
a0a33ee506
Call set_msg_fd_in() during the early phase of being a client sender
...
so that we monitor the socket for any messages that it might send to
us (and thus avoid a potential hang when verbosity is high).
2004-11-20 07:08:44 +00:00
Wayne Davison
98f8c9a5e5
Some minor improvements to read_msg_fd() made it safe to use both
...
set_msg_fd_in() and read_msg_fd() during the early phase of being
a client sender (up through the sending of the file list). This
makes sure that the sender monitors the socket from the receiver
for any messages that it might send to us, and thus avoids a hang
when verbosity is high.
2004-11-20 07:07:37 +00:00
Wayne Davison
1f69bec480
Mention that the --bwlimit may now be combined with --daemon.
2004-11-17 19:41:09 +00:00
Wayne Davison
8f1b4f3642
- Mention the latest enhancements.
...
- Aged the 2.6.3 news into OLDNEWS.
2004-11-17 19:35:11 +00:00
Wayne Davison
ca39ebf9fb
Aged the 2.6.3 release news.
2004-11-17 19:34:31 +00:00
Wayne Davison
9fb0844100
- Added the --bwlimit option to the options that are handled in
...
combination with --daemon. This value is both a default bwlimit
value and a maximum limit if the client asks for something larger.
- Enabled popt support for option aliases.
2004-11-17 19:29:20 +00:00
Wayne Davison
bdf278f7a5
Separate the daemon options from the normal client options.
2004-11-17 19:11:53 +00:00
Wayne Davison
c8f2f8572f
Tweaked the error code for a pipe() failure.
2004-11-13 22:32:34 +00:00
Wayne Davison
5d54f33962
Mentioned the new fork() check.
2004-11-13 21:50:56 +00:00
Wayne Davison
ba449e444b
Die with an appropriate error if do_fork() fails.
2004-11-13 21:49:26 +00:00
Wayne Davison
87ba7282f6
Mention the new --max-size option.
2004-11-11 01:45:31 +00:00
Wayne Davison
7d1bfaf7be
Obey the max_size setting.
2004-11-11 01:45:28 +00:00
Wayne Davison
7d5acf1d44
Added the --max-size option.
2004-11-11 01:45:25 +00:00
Wayne Davison
3610c4583a
Document --max-size.
2004-11-11 01:45:22 +00:00
Wayne Davison
41cfde6be3
Checking in the g2r-basis-filename patch that ensures that the receiver
...
uses the same basis file that the generator used (avoiding a duplicate
check that could cause a hang if a compare-dest file was a named pipe).
2004-11-03 20:30:31 +00:00
Wayne Davison
34bde8d54a
Always include lib/snprintf.o when we include lib/compat.o.
2004-11-02 16:47:15 +00:00
Wayne Davison
1ed55e3e3e
Mention latest fix.
2004-10-27 06:35:50 +00:00
Wayne Davison
f80a8520e8
Don't ever call make_backup() if we're removing a destination directory
...
(just remove it).
2004-10-27 06:34:13 +00:00
Wayne Davison
740bab942d
Mention the latest bug-fix.
2004-10-18 20:44:09 +00:00
Wayne Davison
08b1b4860f
Fixed an off-by-one error in the handling of --max-delete=N.
2004-10-18 20:41:57 +00:00
Wayne Davison
18ea5dc0d7
Mention new option parsing.
2004-10-14 17:11:28 +00:00
Wayne Davison
3ac7f5d4c1
Separate the daemon options so that the user can't mix client options
...
with daemon options and visa versa.
2004-10-14 17:08:15 +00:00
Wayne Davison
ad71500818
It seems that some popt releases don't define POPT_TABLEEND, so don't
...
use it.
2004-10-14 09:11:12 +00:00
Wayne Davison
b2ad840a6b
Decided we don't need the build_gen target after all.
2004-10-12 20:08:51 +00:00
Wayne Davison
8db7cc2cff
- Got rid of some awkward spacing in the long_options table.
...
- Use the POPT_TABLEEND macro to end the long_options table.
- Improved the count_args() function to accept a NULL pointer.
- Simplified the code that sets *argc using count_args().
2004-10-11 10:43:25 +00:00
Wayne Davison
ac1541f4b7
Mention the latest changes.
2004-10-10 20:33:07 +00:00
Wayne Davison
09e2bbce8a
Call flush_write_file() in _exit_cleanup() if we are keeping a
...
partially-received file.
2004-10-10 20:31:54 +00:00
Wayne Davison
73496a36a1
Handle systems where the makedev() macro is named mkdev().
2004-10-08 21:27:22 +00:00
Wayne Davison
8303cc1021
A new target, build_gen, works like gen w/o man-page generation.
2004-10-08 19:52:38 +00:00
Wayne Davison
ab759cd27b
Improved an error message by using rsyserr().
2004-10-07 17:02:39 +00:00
Wayne Davison
64444de582
Mention in -a's usage message that -H isn't implied.
2004-10-07 17:00:36 +00:00
Wayne Davison
e425fbe85d
Re-enable the "!" token-handling in a .cvsignore file.
2004-10-06 00:10:08 +00:00
Wayne Davison
4f4b2f0927
The device-handling code is no longer omitted based on HAVE_MKNOD
...
(this is because do_mknod() might be using a different function
to handle fifos and sockets without the help of mknod().
2004-10-01 06:58:23 +00:00
Wayne Davison
da6eb9d123
Improved do_mknod() so that it handles creating a fifo file
...
and a socket file when mknod() itself does not.
2004-10-01 06:56:14 +00:00
Wayne Davison
1b15e07e99
Make sure that all programs that use syscall.o also include
...
lib/compat.o so that we can use strlcpy().
2004-10-01 06:53:26 +00:00
Wayne Davison
e49d720081
- Check if struct sockaddr_un has a sun_len member.
...
- Check if mknod() can make a fifo file.
- Check if mknod() can make a socket file.
2004-10-01 06:51:34 +00:00
Wayne Davison
3267d6a9ce
Some systems need do_mkstemp() to use setmode() to set O_BINARY.
2004-10-01 02:34:22 +00:00
Wayne Davison
3ba2c330e1
Check for the setmode() function.
2004-10-01 02:31:10 +00:00
Wayne Davison
618c8a73db
Preparing for release of 2.6.3
2004-09-30 16:36:42 +00:00
Wayne Davison
aa0ea373cd
Mention the enhancement that was made (quite a while ago) to the
...
daemon's wildcard-expansion limit (formerly 1000 items, now memory
limited).
2004-09-30 10:46:43 +00:00
Wayne Davison
6c3fda83ba
Refined the text of a few of the news items.
2004-09-30 09:58:39 +00:00
Wayne Davison
a3571c6cce
- Mention the fix for lost output with 2>&1.
...
- Prepare the file for the 2.6.3 final release.
2004-09-30 09:37:38 +00:00
Wayne Davison
6fcedb7dbe
Mention the (anticipated) 2.6.3 release date.
2004-09-30 09:36:29 +00:00
Wayne Davison
18882701d2
Set our stderr output to blocking I/O to avoid any loss of output.
2004-09-29 17:58:07 +00:00
Wayne Davison
30c041f9ad
Changed the errors concerning the secrets file to output with FLOG
...
instead of FERROR.
2004-09-24 17:04:05 +00:00
Wayne Davison
be7cf82299
- Make sure that match_address() always restores the "tok" string,
...
even on error.
- Turned the various FERROR messages into (the more proper) FLOG.
2004-09-24 16:50:07 +00:00
Wayne Davison
fde045cd77
Turned the various FERROR messages into (the more proper) FLOG.
2004-09-24 16:39:41 +00:00
Wayne Davison
183150b741
Added some more --inplace info (i.e. it implies --partial and conflicts
...
with 3 basis-file-affecting options).
2004-09-23 21:15:04 +00:00
Wayne Davison
a2570930e8
Made the refused-option message clearer, like Paul suggested.
2004-09-23 17:39:05 +00:00
Wayne Davison
fdb6716c0f
Create a FIFO using mkfifo.
2004-09-23 16:34:43 +00:00
Wayne Davison
a20a88d235
Assume that gettimeofday() takes two arguments when cross-compiling.
2004-09-23 16:00:44 +00:00
Wayne Davison
48d3ff94c9
Only output major/minor info for a character/block device, not for
...
a FIFO or a socket.
2004-09-23 05:33:48 +00:00
Wayne Davison
a33857da09
Mention that --partial-dir now sets an exclude that helps to avoid
...
losing the partial data when deleting, and avoid copying any partial
data from the sender.
2004-09-22 04:14:43 +00:00
Wayne Davison
13791b1eeb
If the partial-dir value is relative, add a directory-exclude for it
...
to the end of the user's exclude list.
2004-09-22 04:12:13 +00:00
Wayne Davison
9a5e37fca8
In get_exclude_tok(), if XFLG_DIRECTORY was passed in the xflags,
...
set MATCHFLG_DIRECTORY in the mflags we return.
2004-09-22 04:11:15 +00:00
Wayne Davison
3e976df0fb
Added XFLG_DIRECTORY define.
2004-09-22 04:10:10 +00:00
Wayne Davison
42afed9c1a
Preparing for release of 2.6.3pre2
2004-09-21 16:10:35 +00:00
Wayne Davison
37c36e2692
Mention the daemon-socket-connection change.
2004-09-21 15:47:20 +00:00
Wayne Davison
7fbc7031f4
Mentioned a couple more changes.
2004-09-21 15:31:33 +00:00
Wayne Davison
9f004a9ea9
The delete_one() function no longer needs to handle the case where
...
it thinks it is removing a directory and it is really removing a
symlink.
2004-09-21 09:24:06 +00:00
Wayne Davison
23f4587f2b
- Turned readlink_stat() into a static function.
...
- Made readlink_stat() no longer honor keep_dirlinks.
- The make_file() function now checks keep_dirlinks late in the
function so that it only transforms a symlink to a local dir
into a directory if the receiver also has a directory by that
name. This makes the use of --delete with --keep-dirlinks
work much better.
2004-09-21 09:24:02 +00:00
Wayne Davison
4d8f5b0ae7
- Fixed a problem with the $bakdir value.
...
- Made the files have better contents to copy.
- Also test --backup without --backup-dir.
2004-09-20 19:50:04 +00:00
Wayne Davison
89389a29ef
Output a backup message when verbose > 1 and we did a copy prior
...
to an --inplace update.
2004-09-20 19:47:59 +00:00
Wayne Davison
29fe3961ab
Output the same backup-message prefix when verbose > 1 regardless of
...
the setting of --backup-dir.
2004-09-20 19:46:45 +00:00
Wayne Davison
4e8a085ac9
Use $diffopt instead of -u.
2004-09-20 05:17:57 +00:00
Wayne Davison
fb22c2774d
Got rid of a superfluous static buffer.
2004-09-20 05:01:38 +00:00
Wayne Davison
7d059d4c37
A simple test of the backup functionality.
2004-09-20 04:59:01 +00:00
Wayne Davison
9715c5899a
Improved a comment.
2004-09-20 04:17:42 +00:00
Wayne Davison
cc07f21211
Mention the new RSYNC_PARTIAL_DIR environment variable.
2004-09-18 17:37:54 +00:00
Wayne Davison
b4d1e854ef
Document the new RSYNC_PARTIAL_DIR environment variable.
2004-09-18 17:35:20 +00:00
Wayne Davison
075aa18fd4
Look for the RSYNC_PARTIAL_DIR environment variable when --partial
...
was specified (and --partial-dir was not).
2004-09-18 17:34:56 +00:00
Wayne Davison
e0204f5621
Mention that older rsync versions had a problem with --link-dest and
...
how to work around it.
2004-09-18 01:49:19 +00:00
Wayne Davison
a9ac4411e5
Mention the latest changes.
2004-09-17 16:53:51 +00:00
Wayne Davison
50b31539c2
- Added the ability to parse a literal IPv6 address in an "rsync:" URL
...
(e.g. rsync://[2001:638:500:101::21]:873/module/dir).
- Improved a couple --files-from error messages.
2004-09-17 16:50:53 +00:00
Wayne Davison
56194bcd95
When outputting the flist info (in a debug-level of verbosity) we
...
now mention the UID of the file when we are the sender (as well as
when we are root).
2004-09-17 16:39:34 +00:00
Wayne Davison
eb8ffa9040
Actually, since the close calls shouldn't fail (now that listener
...
is properly set to -1 on close), we don't really need to play the
save-errno game after all.
2004-09-16 17:22:31 +00:00
Wayne Davison
a7a1cc2c75
Make sure that /etc and /bin actually are readable before we try
...
to list them.
2004-09-16 17:16:36 +00:00
Wayne Davison
ab217f7ffa
- Set "listener" to -1 after we close it so that the error-handler
...
doesn't try to re-close it.
- Set blocking I/O before the second (final) connect() call.
2004-09-16 17:09:46 +00:00
Wayne Davison
a20c9893e4
Don't try to optimize-away the sending of the --delete option if
...
--delete-after was specified (since we don't know what the protocol
version will be yet).
2004-09-08 07:33:06 +00:00
Wayne Davison
3bb400ca14
If --backup was used with --inplace, we don't limit the basis-file
...
matches (as we normally would) because the receiver is using the
backup-file as the basis-file.
2004-09-07 21:45:19 +00:00
Wayne Davison
cd6aa5b5c0
When --backup is used with --inplace, we make a copy of the destination
...
file into its backup spot while generating the checksums.
2004-09-07 21:44:02 +00:00
Wayne Davison
dc55d7bdab
If we're making backups with --inplace, use the backup file as the
...
basis file while still updating the real destination file inplace.
2004-09-07 21:34:26 +00:00
Wayne Davison
8b115ac8dc
Turn off make_backups during the redo phase, just like the receiver.
2004-09-07 21:32:36 +00:00
Wayne Davison
c94e4afbfa
Moved the code that determines the backup filename into a new function
...
named get_backup_name().
2004-09-07 21:29:26 +00:00
Wayne Davison
6566d205e2
Made full_write() non-static.
2004-09-07 21:26:26 +00:00
Wayne Davison
e484f0cc04
W mustn't backup an inplace file in finish_transfer().
2004-09-07 20:37:36 +00:00
Wayne Davison
bd397b8cba
Reject the use of --compare-dest or --link-dest with --inplace
...
(it will take extra code to suppor this).
2004-09-07 20:36:36 +00:00
Wayne Davison
f8c8ef9eac
When we say we're skipping a non-regular file, actually skip it.
2004-09-07 19:49:09 +00:00
Wayne Davison
72c19bb3de
A minor optimization to the partial-dir code.
2004-09-07 17:03:51 +00:00
Wayne Davison
89f7eff382
Fix the case where a partial-dir file exists but the destination
...
file does not.
2004-09-07 16:50:07 +00:00
Wayne Davison
b90a6d9ff6
Mention that --whole-file interferes with the reuse of a --partial-dir
...
file.
2004-09-07 16:49:10 +00:00
Wayne Davison
584ba4ebae
Fixed a typo Paul pointed out.
2004-09-05 21:30:00 +00:00
Wayne Davison
ba3db4795e
Allow the use of the --exclude*/--include* options to a server
...
process again, but make sure that the user didn't specify a
server-excluded file for one of the --*-from options.
2004-08-26 17:39:48 +00:00
Wayne Davison
59d73bf3d2
Some fixes & clarifications for the BATCH MODE section.
2004-08-18 07:50:36 +00:00
Wayne Davison
919ca3a3cc
Few few more minor improvements to the existing change items.
2004-08-18 07:49:03 +00:00
Wayne Davison
5886edfac2
Corrected/enhanced a comment.
2004-08-18 07:00:17 +00:00
Wayne Davison
d414962af4
One more NEWS tweak.
2004-08-12 21:02:13 +00:00
Wayne Davison
8fb7db245a
Mention the security fix.
2004-08-12 20:58:33 +00:00
Wayne Davison
6f0fc27e33
Got rid of one item.
2004-08-12 20:48:05 +00:00
Wayne Davison
9c54ad58f8
Preparing for release of 2.6.3pre1
2004-08-12 20:06:57 +00:00
Wayne Davison
f55c2dfc03
One last minor tweak to clean_fname().
2004-08-12 20:04:47 +00:00
Wayne Davison
675ef1aa3a
Tweaked the USAGE section a tad and added an ADVANCED USAGE section
...
that discusses how to request multiple names from a remote rsync.
2004-08-12 19:31:23 +00:00
Wayne Davison
ef57235623
Improved the build rule for getfsdev and added getfsdev.o to the
...
files we cleanup.
2004-08-12 18:59:03 +00:00
Wayne Davison
d66d07e883
If system won't let us set chmod bits, fall back to testing without
...
them set.
2004-08-12 18:51:35 +00:00
Wayne Davison
b92693daba
- Made clean_flist()'s collapsing of ".." dirs optional by adding
...
a "BOOL collapse_dot_dot" arg.
- Improved some comments.
2004-08-12 18:20:14 +00:00
Wayne Davison
58b1999e08
Call clean_flist() with its new "collapse_dot_dot" arg.
2004-08-12 18:20:07 +00:00
Wayne Davison
8e5f029e02
One (hopefully) last change to the sanitize_path() code.
2004-08-12 10:13:45 +00:00
Wayne Davison
2d41264e9e
Simplified sanitize_path() logic a little.
2004-08-12 09:32:16 +00:00
Wayne Davison
82c6be7edf
More improvements and a couple missing items.
2004-08-12 01:27:26 +00:00
Wayne Davison
0219d4dfba
Improved a comment.
2004-08-12 00:58:01 +00:00
Wayne Davison
391516da51
Got rid of a comment that became inapplicable.
2004-08-12 00:52:58 +00:00
Wayne Davison
1d6b8f9ad2
- Call sanitize_path() with updated args.
...
- Added count_dir_elements() function.
- Changed the args for sanitize_path() so that the caller can request
the value for the rootdir and so that the caller tells us the current
subdir depth instead of sending us a string that we have to figure it
out from.
- Make sure that sanitize_path() doesn't mis-parse multiple adjacent
slashes.
2004-08-11 23:41:06 +00:00
Wayne Davison
10796f4b6e
Call sanitize_path() with updated args.
2004-08-11 23:41:03 +00:00
Wayne Davison
33ffd7c37d
- Set the var lastdir_depth when setting lastdir.
...
- Call sanitize_path() with updated args.
2004-08-11 23:41:00 +00:00
Wayne Davison
21d1e929a0
Ignore new getfsdev executable.
2004-08-11 17:33:52 +00:00
Wayne Davison
d0bc3520de
Make the text of the --times (-t) option more correct on what
...
happens if it is omitted.
2004-08-11 17:24:37 +00:00
Wayne Davison
9f18657889
A minor improvement in check_one_exclude().
2004-08-10 18:15:33 +00:00
Wayne Davison
c16d69b292
Mention the early-chmod change.
2004-08-09 20:58:26 +00:00
Wayne Davison
ebeacb36fb
Set each file's permissions and modtime before it gets renamed.
2004-08-09 20:57:10 +00:00
Wayne Davison
6558854dbe
Do some simple tests with various read-only and set[ug]id files.
2004-08-09 20:52:35 +00:00
Wayne Davison
7d9d5d9478
Added a rule for building getfsdev and for requiring it to run "test".
2004-08-09 20:51:44 +00:00
Wayne Davison
630f548ff4
Made robust_rename() return a 1 if it had to copy the file.
2004-08-09 20:48:38 +00:00
Wayne Davison
100b62bb69
Output a device string for each file given on the command-line.
2004-08-09 20:46:54 +00:00
Wayne Davison
e012b94f21
Fixed a bug in clean_fname() that could sometimes leave a "dir/.."
...
sequence uncollapsed.
2004-08-07 20:56:41 +00:00
Wayne Davison
3104620cf0
Made clean_fname() return the length of the string.
2004-08-06 22:36:55 +00:00
Wayne Davison
ebdd24d6d0
An improved clean_fname() routine that is more efficient and will also
...
collapse ".." dirs that aren't at the start of the path. Care was taken
to ensure that the cleaning of a name that goes over the socket is done
in the same way as the old code (because both sides call clean_fname()
on those file-list names). This ensures compatibility with older rsync
versions.
2004-08-06 21:24:14 +00:00
Wayne Davison
7cd72c79ec
Set "eob" correctly in add_exclude_file().
2004-08-05 22:58:17 +00:00
Wayne Davison
84a6379565
Merged alloc_sanitize_path() into sanitize_path(), adding an extra arg
...
that indicates the destination dir for the resulting path (if the dest
is NULL, a buffer will be allocated) and having it return a value.
2004-08-05 21:57:11 +00:00
Wayne Davison
0a5f12720e
Use the new sanitize_path() calling syntax.
2004-08-05 21:57:09 +00:00
Wayne Davison
73f7af0e88
If dry_run is > 1 then the destination directory was missing, so we
...
set stat_errno to ENOENT and statret to -1 without calling stat().
2004-08-05 18:18:36 +00:00
Wayne Davison
e5a96f0f54
In get_local_name(), if we would have created the destination dir but
...
were prevented by dry_run being set, increment dry_run so that the
generator knows that all the files are missing.
2004-08-05 18:17:44 +00:00
Wayne Davison
d73e7f6edd
In set_refuse_options(): make sure we scan the whole list of options
...
and avoid complaining about a wild-card spec that actually matches
one or more options.
2004-08-04 21:20:34 +00:00
Wayne Davison
61542c41de
Decided that we don't need to limit the block size after all now
...
that the map_file() code handles large block sizes better.
2004-08-03 15:41:16 +00:00
Wayne Davison
bd1a581bee
Use MAX_MAP_SIZE in the args to map_file().
2004-08-03 15:37:54 +00:00
Wayne Davison
6e8a1782ab
- Changed the calling syntax for map_file() so that it takes both
...
a (possibly approximate) window size and an optional block size
(which is used to round-up the window size if it is non-zero).
- Don't set window_start behind the supplied offset in map_ptr().
2004-08-03 08:05:29 +00:00
Wayne Davison
96d910c770
Call map_file() with its new args, including a suggested window
...
size.
2004-08-03 08:05:27 +00:00
Wayne Davison
7560c17adc
We call map_ptr() with a data range than includes any unmatched data
...
(which we might need to reference again) in addition to the current
rolling-checksum block (this prevents the unmatched data from being
lost when we slide the buffer and read more data).
2004-08-03 08:05:23 +00:00
Wayne Davison
9cd339eb39
- Changed the description for --block-size in the --help text.
...
- Use the new MAX_BLOCK_SIZE to limit the block_size value.
2004-08-03 08:05:20 +00:00
Wayne Davison
f310029387
- Added define for MAX_BLOCK_SIZE.
...
- Increased the MAX_MAP_SIZE.
2004-08-03 08:05:17 +00:00
Wayne Davison
3ed8eb3f9c
Updated the description of the --block-size option.
2004-08-03 07:58:48 +00:00
Wayne Davison
007351494d
Mention the open64()/mkstemp64() configure change.
2004-08-02 22:06:17 +00:00
Wayne Davison
6dcb93208d
Don't use mkstemp() if the OS has open64() but not mkstemp64().
2004-08-02 21:56:07 +00:00
Wayne Davison
84e1a698bf
Test for functions open64() and mkstemp64().
2004-08-02 21:54:49 +00:00
Wayne Davison
0d7638eafd
Got rid of trailing whitespace.
2004-08-02 16:49:20 +00:00
Wayne Davison
86e2f445f7
Mention the "refuse options" change.
2004-08-02 07:41:04 +00:00
Wayne Davison
093e816c37
Allow better wildcard matching against the short-option letters in
...
the "refuse options" handling.
2004-08-02 07:40:34 +00:00
Wayne Davison
1cb0a3edc6
Document the improved "refuse options" syntax.
2004-08-02 05:01:36 +00:00
Wayne Davison
06a5054273
- Extended the "refuse options" daemon setting to allow wildcards
...
and to allow single-letter option names.
- No need to send the various --delete* options or the --force option
from the receiver to the sender.
2004-08-02 05:00:30 +00:00
Wayne Davison
acd0299243
Got rid of unused externs.
2004-08-02 04:50:33 +00:00
Wayne Davison
dca68b0aad
- Changed "read so far" to "received so far".
...
- Output the who_am_i() information in the socket read/write errors to
make it a little clearer who is complaining about what (for those
familiar with rsync, at least -- e.g. it will help when users report
errors).
2004-08-02 02:43:54 +00:00
Wayne Davison
c3ea09906d
- Changed all the errors in parse_arguments() to use the err_buf so
...
that a client talking to a daemon server actually gets the error.
- If a daemon has a list of exclusions, apply that list to various
options to ensure that an excluded file can't be affected.
- Fixed an arg-checking problem when --files-from got passed to a
daemon.
2004-07-31 20:09:54 +00:00
Wayne Davison
bf4679e8a0
If we need to return an error during the startup phase and the other
...
side is expecting us to send them a files-from list, send the list
terminator before sending the error.
2004-07-31 19:55:42 +00:00
Wayne Davison
c4054610c8
Don't allow a --partial-dir setting to overwrite a server-excluded
...
file (affects a daemon receiver only).
2004-07-31 18:13:20 +00:00
Wayne Davison
f6c0d3d70b
- Document the change to --copy-links.
...
- Improved the "OUTPUT CHANGES" section.
2004-07-31 16:20:28 +00:00
Wayne Davison
ef855d198e
Document the old side-effect to --copy-links and that it no longer
...
happens in a modern rsync w/o --keep-dirlinks.
2004-07-31 16:19:14 +00:00
Wayne Davison
81b07870c8
One call to link_stat() (in set_perms()) needed to honor the setting
...
of keep_dirlinks if the current item is a directory.
2004-07-31 16:15:41 +00:00
Wayne Davison
bb6721dce6
Reset copy_links in the receiver.
2004-07-31 16:14:27 +00:00
Wayne Davison
446a2987cd
Prominently mention the changes to the text that gets output.
2004-07-31 03:33:05 +00:00
Wayne Davison
4de2a17409
Changed "wrote"/"written" to "sent" and "read" to "received" in
...
the text that is output.
2004-07-31 03:32:42 +00:00
Wayne Davison
99d24f77ed
- Mention the "list = no" change in error handling.
...
- Improved a few of the NEWS items.
2004-07-30 22:46:07 +00:00
Wayne Davison
c0422cea9f
If someone is denied access to a "list = no" module, lie and tell them
...
that the module is "Unknown" (so the user can't probe to find unlisted
modules).
2004-07-30 20:07:52 +00:00
Wayne Davison
8b6ad0193d
Don't ignore case in lp_number() because the rest of the daemon code
...
can't handle the case where the module name doesn't exactly match the
string the user provided.
2004-07-30 20:05:37 +00:00
Wayne Davison
33eff8bfd6
If we reject a name due to a server-exclude, someone is trying to hack
...
rsync (because the generator would not have included this file). Respond
with an exit.
2004-07-30 07:02:37 +00:00
Wayne Davison
65af3dab03
Document the latest changes.
2004-07-29 18:08:16 +00:00
Wayne Davison
065a605270
Got rid of bogus compare_dest scan in skip_file() -- it must checksum
...
the same file that we used for the stat() (in the parent routine).
2004-07-29 16:45:48 +00:00
Wayne Davison
a7260c4037
Added the new --partial-dir option.
2004-07-29 16:06:38 +00:00
Wayne Davison
44cad59f2b
Document the new --partial-dir option.
2004-07-29 16:06:34 +00:00
Wayne Davison
c52461f911
Check the error return of flush_write_file().
2004-07-29 07:37:27 +00:00
Wayne Davison
7f459268d9
Added close_multiplexing_in() and renamed io_multiplexing_close()
...
to close_multiplexing_out().
2004-07-29 07:24:45 +00:00
Wayne Davison
9eeb3b9c88
Call the new close_multiplexing_in() function in the generator.
2004-07-29 07:24:00 +00:00
Wayne Davison
d1b31da71e
If we fail writing to the socket and we're receiving error messages
...
from the other side via a multiplexed input, read the socket to see
if we get some errors that would explain why they went away.
2004-07-29 07:09:46 +00:00
Wayne Davison
89e540e638
One more inplace code tweak.
2004-07-29 06:59:30 +00:00
Wayne Davison
fab65a5bc2
Some minor fixes and improvements for the inplace code.
2004-07-29 06:40:26 +00:00
Wayne Davison
e7d13fe532
- Explicitly save the stat()'s errno so that we can be sure we're
...
testing the right thing lower down (and so that future code doesn't
always have to remember to save it off and restore it).
- Improved a chunk of link_dest code.
- Handle the removal of a non-regular file without so much duplicated
code.
2004-07-28 10:04:06 +00:00
Wayne Davison
ecc81fce17
Use the new safe_fname() function.
2004-07-26 16:36:59 +00:00
Wayne Davison
b4afd23c30
Allow safe_fname() to tweak up to two name at a time.
2004-07-26 16:34:36 +00:00
Wayne Davison
af1a3f9b6e
Use safe_fname() in full_fname().
2004-07-26 15:59:51 +00:00
Wayne Davison
820b6c9aa0
Added safe_fname() that converts any newlines in a name into '?'s.
2004-07-26 15:52:25 +00:00
Wayne Davison
3cb22c204c
Made a comment better.
2004-07-26 05:38:02 +00:00
Wayne Davison
7432ccf4ed
Some batch-mode changes.
2004-07-24 16:51:58 +00:00
Wayne Davison
6a48e792c1
Made the new option-twiddling message only output when verbose.
2004-07-24 16:51:16 +00:00
Wayne Davison
9459290ae7
Call read_stream_flags() as soon as we open the batch file for
...
reading.
2004-07-24 16:40:41 +00:00
Wayne Davison
741d654495
Call write_stream_flags() from start_write_batch().
2004-07-24 16:39:53 +00:00
Wayne Davison
d3e182af09
Added write_stream_flags() to write the state of certain flags into
...
the batchfile and read_stream_flags() to read and twiddle the same
flags. This ensures that the batchfile reading doesn't get confused
about what data to expect from the socket.
2004-07-24 16:38:49 +00:00
Wayne Davison
d9b4d267c7
Tweaked a compound line.
2004-07-23 16:59:38 +00:00
Wayne Davison
58c5c24555
Added a comment.
2004-07-23 16:59:22 +00:00
Wayne Davison
341c9a137f
Some basic batch-mode tests.
2004-07-23 02:13:34 +00:00
Wayne Davison
871446fc98
Chris added a missing "not" to a comment.
2004-07-23 01:40:22 +00:00
Wayne Davison
0abda1b176
Fixed the opening comments.
2004-07-23 01:39:19 +00:00
Wayne Davison
394bcdb5e3
If we sucessfully renamed a file that has multiple links to it, unlink()
...
it to ensure that rename() didn't lie to us (which it does if you try to
rename() a file over another link to the same file).
2004-07-22 22:52:39 +00:00
Wayne Davison
28deecca55
Changed NO_INT64 to INT64_IS_OFF_T because off_t might actually be
...
64 bits. The code now only complains if int64 is really too short.
2004-07-22 19:28:45 +00:00
Wayne Davison
4db88e5b8f
Some --help text fixes.
2004-07-22 15:43:28 +00:00
Wayne Davison
75b243a51d
Some more --inplace improvements.
2004-07-22 15:41:09 +00:00
Wayne Davison
9bccfc429c
Should always call finish_transfer() for inplace handling, just like
...
for keep_partial handling.
2004-07-22 15:31:06 +00:00
Wayne Davison
077e59b769
The inplace handling in finish_transfer() now passes PERMS_SKIP_MTIME
...
to set_perms() if ok_to_set_time wasn't specified.
2004-07-22 15:30:04 +00:00
Wayne Davison
007e3c0e9a
Need to output the "failed verification" error before sending the
...
MSG_REDO so that the output comes out in the right order.
2004-07-22 08:16:35 +00:00
Wayne Davison
e2bc412669
Added a warning message when a file fails to verify, letting the user
...
know if we retained it or discarded it. Especially useful for batch-
reading mode where the old code could look like it did the update when
it really silently failed.
2004-07-22 04:15:18 +00:00
Wayne Davison
e344209582
Added even more double-quoting.
2004-07-22 03:23:04 +00:00
Wayne Davison
e76ca1458c
No need to check both delete_after and delete_mode since the former
...
implies the latter.
2004-07-22 02:52:57 +00:00
Wayne Davison
16cc9ca2c9
In read_batch mode, we read ints from the new batch_gen_fd pipe and
...
only process the updates from the batch file when the generator has
indicated that it is ready (which ensures that all the necessary
dirs have been created).
2004-07-21 23:59:37 +00:00
Wayne Davison
8c90957ff5
Got rid of read_batch special case.
2004-07-21 23:59:33 +00:00
Wayne Davison
c0d8e84c9d
Setup for read_batch mode a little differently:
...
- Avoid calling local_child().
- Create a pipe that lets the generator send us index values.
- Set batch_gen_fd for the receiver to read the pipe.
2004-07-21 23:59:31 +00:00
Wayne Davison
b0ad542928
Added batch_gen_fd.
2004-07-21 23:59:28 +00:00
Wayne Davison
727b35f665
In read_batch mode, we now let the code write out the index value
...
to the f_out pipe before we return from recv_generator(). This gives
the receiver something to sync with so that it doesn't rush ahead of
us (which could be bad if we didn't have a chance to create the
destination dirs yet).
2004-07-21 23:59:25 +00:00
Wayne Davison
aa4343211f
Don't write out the protocol_version number in read_batch mode.
2004-07-21 23:59:22 +00:00
Wayne Davison
3611989355
Complain if the user combines --read-batch with --files-from.
2004-07-21 22:50:11 +00:00
Wayne Davison
3381b77d71
Improved the test a little.
2004-07-21 21:06:13 +00:00
Wayne Davison
dce70db374
Adding a test for the --compare-dest option.
2004-07-21 20:58:32 +00:00
Wayne Davison
2adbcdc7ea
A couple am_sender checks (one negated) were not needed.
2004-07-21 20:17:02 +00:00
Wayne Davison
7e5fa372cf
Call map_file() with the new block_size arg (had to delay the
...
call to map_file() until the block size was known).
2004-07-20 21:35:58 +00:00
Wayne Davison
6e45e1dd86
- Call map_file() with the new block_size arg (had to delay the
...
call to map_file() until the block size was known).
- Got rid of the setting of max_map_size.
2004-07-20 21:35:55 +00:00
Wayne Davison
7f290d5c82
- Added a new block_size arg to map_file(). Use it to set the
...
new def_window_size member variable.
- Got rid of max_map_size global (we use def_window_size now).
2004-07-20 21:35:52 +00:00
Wayne Davison
b6609cafae
- Got rid of cleanup_buf (map-file cleanup is not needed).
...
- Renamed the cleanup_fd* vars.
2004-07-20 21:35:49 +00:00
Wayne Davison
efa95a1842
Call map_file() with its new block_size arg.
2004-07-20 21:35:46 +00:00
Wayne Davison
51bd4f0f3a
Tweaked an error message.
2004-07-20 21:10:20 +00:00
Wayne Davison
562b61695e
Added a def_window_size variable to struct map_struct.
2004-07-20 21:08:33 +00:00
Wayne Davison
98f51bfb56
- More batch-file improvements.
...
- A few spelling fixes.
2004-07-20 18:12:50 +00:00
Wayne Davison
73f0ce69e7
We now append the exclude list as a "here" document to the end of
...
the BATCH.sh file.
2004-07-20 17:07:55 +00:00
Wayne Davison
cf338ab1be
Made write_sbuf() non-static.
2004-07-20 16:57:18 +00:00
Wayne Davison
66a9dc9639
Changed write_batch_argvs_file() to new write_batch_shell_file()
...
call (with extra arg).
2004-07-19 17:11:41 +00:00
Wayne Davison
8ed9d849dc
Added new function discard_receive_data().
2004-07-19 17:05:01 +00:00
Wayne Davison
5ebab6c10c
- Don't allow some crafty user to try to force us to update a
...
server-excluded file.
- If get_tmpname() fails we need to discard the update using
receive_data().
2004-07-19 16:37:30 +00:00
Wayne Davison
e7a69008e6
Do a better job of writing out the BATCH.sh file (i.e. quote special
...
characters and spaces in args, omit all the source args, omit the
include/exclude args if we can).
2004-07-19 08:27:17 +00:00
Wayne Davison
73e015683c
Changed batch.rsync_argvs to batch.sh.
2004-07-19 03:59:35 +00:00
Wayne Davison
b462781fd0
Fixed the argv munging to work properly regardless of whether the
...
user specified a trailing '=VALUE' or put the value in a separate
arg.
2004-07-19 00:53:49 +00:00
Wayne Davison
93095cbe99
A very minor optimization was made to read_sbuf(), read_byte(),
...
write_sbuf(), and write_byte().
2004-07-17 21:17:34 +00:00
Wayne Davison
399371e7b5
- Improved the warning about --inplace.
...
- Fixed the sentence describing how to read standard input with
--read-batch.
2004-07-17 16:44:16 +00:00
Wayne Davison
d7142e2328
Moved the read_batch abort check below the code that handles the
...
symlinks and devices.
2004-07-17 16:29:10 +00:00
Wayne Davison
1f75bb1066
Revamped some of the io variables and calls to make the various I/O
...
functions seemlessly work on fds that aren't for the main socket. This
involved changing some fd-variable names (to make them clearer), adding
io_set_sock_fds(), and making input buffering have a better enabled
flag (via an allocated buffer, just like the output buffering). I also
got rid of the fd arg to some functions where the fd arg could only
specify the input or output fd for the socket (which we already know).
2004-07-17 15:20:00 +00:00
Wayne Davison
088adfacc1
Got rid of the arg to io_start_multiplex_out().
2004-07-17 15:19:57 +00:00
Wayne Davison
da3478b2a7
- Got rid of the arg to the io_start_multiplex_{in,out}() calls.
...
- Call io_set_sock_fds().
2004-07-17 15:19:54 +00:00
Wayne Davison
5126ed1ef0
Changed a MIN() to a MAX() when setting max_map_size.
2004-07-17 10:59:14 +00:00
Wayne Davison
61fb21ad28
Mention the new --inplace option.
2004-07-17 00:00:27 +00:00
Wayne Davison
a3221d2ac1
My version of Mark Curtis's --inplace option.
2004-07-16 20:06:24 +00:00
Wayne Davison
2c713fcdfa
Added a check for ftruncate.
2004-07-16 20:04:20 +00:00
Wayne Davison
afd8bdb907
Avoid some useless memory copying.
2004-07-16 18:08:52 +00:00
Wayne Davison
efd5ee5786
- Limit the maximum block size we compute for a file.
...
- Set max_map_size based on the current file's block size (so that
map_ptr() is more efficient with large blocks).
2004-07-16 18:04:23 +00:00
Wayne Davison
510b4cd4d5
Added a max_map_size variable, initialized to MAX_MAP_SIZE.
2004-07-16 18:02:30 +00:00
Wayne Davison
de584c658c
Limit the block-size that the user can specify.
2004-07-16 18:01:30 +00:00
Wayne Davison
6eb770bbcc
Improved a sentence about --whole-file.
2004-07-16 17:14:55 +00:00
Wayne Davison
c7e11bfdc0
Make wf_writeBufSize based on a multiple of WRITE_SIZE instead
...
of the unrelated MAX_MAP_SIZE.
2004-07-16 01:32:02 +00:00
Wayne Davison
94327ff0c2
- Complain and die if --dry-run is used with a batch option.
...
- Improved the warning if a batch option gets sent to the server.
2004-07-15 19:06:32 +00:00
Wayne Davison
4602eafa87
Changed the batch examples to show how to do a remote read-batch
...
without first transferring the batch file.
2004-07-15 19:04:54 +00:00
Wayne Davison
bb3edc3b47
Expanded the comment on the new batch code.
2004-07-15 19:03:50 +00:00
Wayne Davison
c769702fe5
Mention that "-" can be used with --read-batch for reading from stdin.
2004-07-15 17:56:11 +00:00
Wayne Davison
dbbab0c4d2
Allow --read-batch=- to indicate stdin.
2004-07-15 17:01:51 +00:00
Wayne Davison
9b3318b0df
We no longer refer to a batch "prefix".
2004-07-15 16:27:02 +00:00
Wayne Davison
0fac7fe8b8
Mention new batch-mode changes.
2004-07-15 03:13:09 +00:00
Wayne Davison
b9f592fbf5
My modified version of Chris Shoemaker's improved batch-file handling.
2004-07-15 02:20:08 +00:00
Wayne Davison
c7b1a56b3d
Mention recent changes.
2004-07-14 17:11:53 +00:00
Wayne Davison
3896bca4d8
Tweaked some single-line ifs.
2004-07-14 16:41:10 +00:00
Wayne Davison
9774cc3344
The "len" to generate_and_send_sums() is supposed to be an OFF_T.
2004-07-14 16:40:08 +00:00
Wayne Davison
d3979b025d
Committed a space-tweak from Chris Shoemaker.
2004-07-14 16:39:08 +00:00
Wayne Davison
01966df4f7
Improved the write_batch_argvs_file() routine so that it doesn't
...
need the character buffers and so that it properly removes the
hostname from the destination arg.
2004-07-14 07:20:18 +00:00
Wayne Davison
f38bd4a072
Got rid of the disable_deltas_p() function (the whole_file value
...
is now fully set before the generator forks).
2004-07-13 01:45:51 +00:00
Wayne Davison
b1df18d76f
We now conditionally turn on whole_file in do_cmd() right before
...
calling local_child().
2004-07-13 01:44:03 +00:00
Wayne Davison
7daccb8e72
In generate_files(), changed arg "f" to "f_out", as Chris Shoemaker
...
suggested.
2004-07-12 20:42:48 +00:00
Wayne Davison
bb91a624f1
Made hard_link_check() compile when SUPPORT_HARD_LINKS isn't enabled.
2004-07-12 07:03:28 +00:00
Wayne Davison
a04d77bcbc
Use want_i instead of last_i+1.
2004-07-07 08:38:40 +00:00
Wayne Davison
25bd99451c
Make the GID_NONE define a little safer.
2004-07-07 08:25:13 +00:00
Wayne Davison
ed43d0a76d
Added some missing $(srcdir) references.
2004-07-04 08:56:31 +00:00
Wayne Davison
066a844c4e
Changed a "for" loop into a "do ... while" loop.
2004-07-04 08:07:23 +00:00
Wayne Davison
5e252dea4b
Optimized away a loop in hash_search().
2004-07-02 23:35:30 +00:00
Wayne Davison
d2a918b454
Some formatting tweaks.
2004-07-02 18:23:57 +00:00
Wayne Davison
da38e779ea
Moved the verbose message about renaming the finished file down into
...
finish_transfer() so that it only gets output when we're actually going
to rename the file.
2004-07-02 18:13:53 +00:00
Wayne Davison
8186ae6bc0
Tweaked some formatting.
2004-07-02 18:12:24 +00:00
Wayne Davison
e1f67417d7
Some simple whitespace tweaks.
2004-06-30 07:27:30 +00:00
Wayne Davison
fd322eef82
Made recv_generator static.
2004-06-29 19:19:00 +00:00
Wayne Davison
d3a4375f78
Optimized away a call to cmp_modtime() for a compare-dest file.
2004-06-29 16:22:54 +00:00
Wayne Davison
78112d305b
Mention the extended argv-overflow checking.
2004-06-29 15:13:18 +00:00
Wayne Davison
f7c3ee9932
Tweaked an overly-long line.
2004-06-29 15:12:01 +00:00
Wayne Davison
e7a392c77c
A few more improvements to the anti-overflow args[] checking.
2004-06-28 17:45:40 +00:00
Wayne Davison
887e553f05
Make sure that do_cmd() doesn't overflow its arg-pointer array
...
(which was also made larger).
2004-06-28 17:25:14 +00:00
Wayne Davison
beb227ddf1
Got rid of a couple unneeded assignments.
2004-06-24 04:46:02 +00:00
Wayne Davison
84acca07ae
Restoring correct skip_file() return semantics.
2004-06-23 21:21:19 +00:00
Wayne Davison
cc1e997dcd
Thought skip_file() wasn't returning 1 for "skip" and 0 or "keep"
...
so I reversed the return.
2004-06-23 16:51:21 +00:00
Wayne Davison
a7026ba90a
Fixed a newly-introduced problem in read_timeout() where FD_ZERO(&w_fds)
...
wasn't always called before w_fds was used.
2004-06-23 01:13:09 +00:00
Wayne Davison
3a69fad0f6
Some trivial format tweaks.
2004-06-20 21:48:06 +00:00
Wayne Davison
40564811ee
Mentioned the latest socket change and fixed a few typos.
2004-06-20 20:37:06 +00:00
Wayne Davison
dcd08dc51c
Restored the code in the IPV6_V6ONLY section that checks the
...
return value from setsockopt() with one improvement: if the
user has used --ipv6 (-6) we don't discard the IPv6 socket.
This should help people using older Linux kernels that don't
implement IPv6 support quite right.
2004-06-20 19:51:19 +00:00
Wayne Davison
fdf57ede8c
Tweaked a comment.
2004-06-20 19:47:05 +00:00
Wayne Davison
bd717af8ab
Must not call check_timeout() before checking the errno value.
2004-06-19 07:09:57 +00:00
Wayne Davison
c54f5170bf
Added some missing changes.
2004-06-19 06:55:58 +00:00
Wayne Davison
eae4e1f9f0
Some minor improved sentences.
2004-06-19 05:52:45 +00:00
Wayne Davison
9c513d678d
Tweaked some comments.
2004-06-18 16:55:12 +00:00
Wayne Davison
d16c245fc4
Some helpful comments from Chris Shoemaker.
2004-06-18 16:50:20 +00:00
Wayne Davison
ec8290c897
Fixed some typos in a comment, moved an extern, and made a few
...
minor format tweaks.
2004-06-18 16:30:24 +00:00
Wayne Davison
b293a7f62c
Improved a comment.
2004-06-18 16:29:21 +00:00
Wayne Davison
d67c8bdfc3
Moved the externs to the top and made a few trivial format tweaks.
2004-06-18 16:22:14 +00:00
Wayne Davison
e2ccd3578c
Got rid of some trailing whitespace.
2004-06-18 16:00:33 +00:00
Wayne Davison
4e834af140
If --partial was specified, make sure that make_backup is turned
...
off during the second (retry) phase of the transfer to avoid
making a second backup of a file (which would lose the original).
2004-06-14 15:09:36 +00:00
Wayne Davison
7e5614383d
Added a short msleep() after option_error() before we exit. This
...
ensures that the remote client has time to read our error message
while it is trying to write data to us before it gets a socket
error.
2004-06-13 14:18:48 +00:00
Wayne Davison
eb84a83b47
Changed the new code in delete_one() so that some compilers
...
don't complain about returning a value from a void function.
2004-06-12 21:30:07 +00:00
Wayne Davison
2c2898a388
Mention the bugfix in option-parsing error-reporting from a daemon.
2004-06-12 18:27:04 +00:00
Wayne Davison
1732b6c037
- Changed some FERROR log calls to FLOG.
...
- Improved the option-error-reporting to actually get the error back
to the user (by getting I/O multiplexing started).
2004-06-12 18:22:39 +00:00
Wayne Davison
314f459161
- Made readlink_stat() and link_stat() optionally follow a symlink
...
to a dir. This fixes deletions inside "kept" symlinked dirs.
- Call link_stat() with its new arg (for --keep-dirlinks support).
2004-06-11 07:40:57 +00:00
Wayne Davison
83926d3cae
Make sure that keep_dirlinks is turned off for the sender.
2004-06-11 07:40:54 +00:00
Wayne Davison
6218c7bf42
- Moved --keep-dirlinks code over to flist.c.
...
- Call link_stat() with its new arg (for --keep-dirlinks support).
2004-06-11 07:40:51 +00:00
Wayne Davison
566fce3237
Made delete_one() handle a failed rmdir on a symlink when
...
--keep-dirlinks was specified.
2004-06-11 07:40:48 +00:00
Wayne Davison
373ef16010
Call link_stat() with its new arg (for --keep-dirlinks support).
2004-06-11 07:40:45 +00:00
Wayne Davison
ea76e76104
In set_filesystem(), call do_stat(), not link_stat() to ensure
...
that we get the directory behind it all.
2004-06-11 05:02:59 +00:00
Wayne Davison
9fd62d1588
The mkdir code should be using do_stat(), not do_lstat() to copy
...
each existing dir's mode & owner info.
2004-06-10 16:43:52 +00:00
Wayne Davison
b7061c82b4
Allow the argv list the daemon uses for globbing its args to grow.
2004-06-09 21:51:07 +00:00
Wayne Davison
6fb812f747
Removed some excessive parens.
2004-06-09 21:43:28 +00:00
Wayne Davison
40e8d11e64
Mentioned a couple more bugfixes.
2004-06-09 21:42:33 +00:00
Wayne Davison
73042aae5b
Restore UNUSED() macro (the prior problems that prompted me to remove
...
it appear to have been a build-farm bug).
2004-06-09 21:41:21 +00:00
Wayne Davison
e5ce3bcf2c
Needed to enclose the new symlink-warning code in an
...
"#if SUPPORT_LINKS" conditional.
2004-06-09 19:23:56 +00:00
Wayne Davison
c399d22a19
Renamed read_unbuffered() to readfd_unbuffered() so that it matches
...
writefd_unbuffered().
2004-06-09 03:07:50 +00:00
Wayne Davison
1ea087a794
- Made the maximum-fd computation prior to a select() use the same idiom
...
in both the read and write code (also use a better variable name).
- Made the bytes-available code at the end of the select() loop use the
same flow of control in the read and the write code.
2004-06-08 22:18:04 +00:00
Wayne Davison
00bdf89977
Improved a comment in read_msg_fd() and made the byte-reading code
...
in read_timeout() a little better.
2004-06-08 16:23:54 +00:00
Wayne Davison
0bb4d17634
Improved rwrite() in two ways:
...
- We no longer assume that the buffer is null terminated (daemon
mode would ignore the len when logging a message).
- Errors in daemon mode are now sent to both the log and the user.
2004-06-07 22:51:14 +00:00
Wayne Davison
f9c6b3e7d6
Increase the size of the message-receving buffer for error
...
messages sent from the receiver to the generator.
2004-06-07 22:47:01 +00:00
Wayne Davison
9e5a5ddb4c
Changed a few FINFO messages to FLOG.
2004-06-07 22:33:01 +00:00
Wayne Davison
8c0d6a8432
Got rid of some am_daemon games in option_error().
2004-06-07 22:05:22 +00:00
Wayne Davison
553f93758a
Updated some exclude information that has changed.
2004-06-07 21:40:11 +00:00
Wayne Davison
a4a7e64c19
Don't report a "file vanished" error if a symlink points to nowhere
...
and -L was specified.
2004-06-07 19:59:20 +00:00
Wayne Davison
22832c30a0
Updated a couple things.
2004-06-06 20:41:01 +00:00
Wayne Davison
1a21666286
Tell folks to go to the bug-tracking page to report bugs.
2004-06-06 20:36:56 +00:00
Wayne Davison
4033b80b51
- Got rid of some useless calls to msg_list_push().
...
- Added a couple checks to ensure that the receiver doesn't mix two
clashing kinds of writes on the msg_fd_out pipe.
- Made sure that the read code in the receiver flushes the msg_fd_out
pipe, if needed.
2004-06-06 19:15:58 +00:00
Wayne Davison
99218d821b
If the user specifies a small io_timeout value, lower select_timeout.
2004-06-06 19:02:40 +00:00
Wayne Davison
e626b29e10
Make sure our select calls don't sleep for over one minute at a time,
...
even when io_timeout is a longer value (though the code in options.c
might set it to a shorter value if io_timeout is small).
2004-06-06 19:02:09 +00:00
Wayne Davison
f89b936801
Don't use single-line "if (condition) statement;" idiom.
2004-06-06 18:36:22 +00:00
Wayne Davison
17f59e818d
Mention changes to the patches dir.
2004-06-05 21:23:59 +00:00
Wayne Davison
b5bd5542eb
Neatened up some of the glob-expand code and made a few other
...
minor tweaks.
2004-06-05 20:26:56 +00:00
Wayne Davison
2e94e70e2b
Some superficial code tweaks.
2004-06-05 19:59:03 +00:00
Wayne Davison
4e1f385711
Mentioned new --keep-dirlinks option.
2004-06-05 16:19:02 +00:00
Wayne Davison
716e73d483
New --keep-dirlinks option.
2004-06-05 16:16:30 +00:00
Wayne Davison
5b36173d11
Mention new SSH_* vars.
2004-06-03 17:20:33 +00:00
Wayne Davison
b2ef4f6134
The daemon-over-ssh code now looks for $SSH_CONNECTION and $SSH2_CLIENT
...
as well as $SSH_CLIENT to figure out the remote IP address.
2004-06-03 17:20:21 +00:00
Wayne Davison
c7be6dec11
- Added older news from NEWS file.
...
- Added missing releases from the Partial Protocol History section.
2004-06-01 21:27:52 +00:00
Wayne Davison
bd1574b208
Moved older news to OLDNEWS.
2004-06-01 21:27:12 +00:00
Wayne Davison
f376e67420
Got rid of an unneeded character pointer in send_file_entry().
2004-05-29 21:21:17 +00:00
Wayne Davison
ef0bc0abff
Mention the --bwlimit change.
2004-05-28 19:42:06 +00:00
Wayne Davison
71e586304b
Improvements to make --bwlimit work better.
2004-05-27 22:09:31 +00:00
Wayne Davison
3c74c3a358
Set a new variable, bwlimit_writemax, based on the value of the bwlimit
...
option.
2004-05-27 21:51:53 +00:00
Wayne Davison
edad5898f2
Got rid of a superfluous call to gettimeofday().
2004-05-24 22:59:16 +00:00
Wayne Davison
fa0c1939ed
The various include/exclude options are not used on the server side,
...
so if someone is trying something funny, just quit.
2004-05-24 18:38:05 +00:00
Wayne Davison
9a5ade185c
Made full_fname()'s char-pointer arg const.
2004-05-24 08:10:22 +00:00
Wayne Davison
f1dd0f27cb
- Properly quote the $excl references.
...
- Moved the creation of our .cvsignore exclude file.
2004-05-24 00:16:07 +00:00
Wayne Davison
f9e5a0cde2
Improved the depth calculation in sanitize_path() so that it properly
...
handles a trailing slash, a leading slash, and an empty string.
2004-05-23 23:46:56 +00:00
Wayne Davison
ead751c62b
Moved a couple lines.
2004-05-22 19:29:53 +00:00
Wayne Davison
0058c58edd
A few minor improvements to the existing items.
2004-05-22 19:24:24 +00:00
Wayne Davison
221ddb9456
Fixed a typo in the sending of the --checksum-seed option to the server.
2004-05-22 06:09:22 +00:00
Wayne Davison
65e2487096
Fixed the comment for get_exclude_tok().
2004-05-22 05:32:20 +00:00
Wayne Davison
0501f36390
Tweaked the alloc/realloc code in flist_expand().
2004-05-21 23:22:14 +00:00
Wayne Davison
96981b9cff
Tell rsync to preserve permissions.
2004-05-21 10:06:09 +00:00
Wayne Davison
f51e87f5ad
Another new option.
2004-05-21 10:00:21 +00:00
Wayne Davison
cb213f1c1b
Got rid of a compiler warning (which was only output by certain
...
compilers).
2004-05-21 09:59:49 +00:00
Wayne Davison
c8d895de26
Added the --checksum-seed option.
2004-05-21 09:44:32 +00:00
Wayne Davison
e51094b721
- 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.
2004-05-21 09:41:38 +00:00
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
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
Wayne Davison
e610e50f9c
Added missing extern for read_batch.
2004-05-05 17:15:03 +00:00
Wayne Davison
935c64173f
Don't force the whole-file option when using read-batch.
2004-05-05 16:23:49 +00:00
Wayne Davison
377dbd2075
Calls to make_bak_dir() should only happen when we fail to create a
...
file/dir/etc. with errno == ENOENT.
2004-05-04 03:10:45 +00:00
Wayne Davison
93272700d2
A slight refinement to my last patch.
2004-05-03 01:24:10 +00:00
Wayne Davison
d508258ad8
Fixed crash bug that can affect --delete in certain circumstances.
2004-05-03 01:18:07 +00:00
Wayne Davison
f57b2e6150
Got rid of a TODO comment that was fixed long ago.
2004-05-02 17:04:14 +00:00
Wayne Davison
af45f9e27e
Renamed variable STRIP to INSTALL_STRIP to avoid an accidental match
...
with an environment variable in OpenBSD.
2004-05-02 16:52:52 +00:00
Wayne Davison
4c4d61b046
Got rid of trailing comma in an enum.
2004-05-02 16:34:33 +00:00
Wayne Davison
7561c3e132
Moved some news items under new headings.
2004-04-30 21:10:58 +00:00
Wayne Davison
1514ad2a80
Changed the order that ssh and rsh are mentioned.
2004-04-30 20:39:29 +00:00
Wayne Davison
d8195637d4
Additional testing confirmed the limited scope of the sources affected
...
by the -R sorting bug.
2004-04-30 19:14:52 +00:00
Wayne Davison
c8d771a0fb
Preparing for release of 2.6.2
2004-04-30 18:03:33 +00:00
Wayne Davison
9130776c4e
Mention the last few tweaks that made it into 2.6.2.
2004-04-30 17:53:51 +00:00
Wayne Davison
9eac94a4dd
Improved the program that checks for broken large-file locking.
2004-04-30 17:38:22 +00:00
Wayne Davison
6e06d2f31a
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.
2004-04-30 17:24:49 +00:00
Wayne Davison
6a6d21136a
Only refer to AI_NUMERICHOST if it is defined.
2004-04-30 16:10:45 +00:00
Wayne Davison
f28bd83346
Fixed a few typos.
2004-04-30 15:46:41 +00:00
Wayne Davison
96fb478eae
Mention the desire to improve how a daemon returns errors.
2004-04-29 21:12:46 +00:00
Wayne Davison
8752b3fcd8
Describe the changes for 2.6.2.
2004-04-29 21:09:33 +00:00
Wayne Davison
55ffed7e42
Preparing for release of 2.6.2pre1
2004-04-29 20:36:22 +00:00
Wayne Davison
e00df64bae
Got rid of unused check for sys/sysctl.h.
2004-04-29 19:40:17 +00:00
Wayne Davison
080ddf58ae
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).
2004-04-29 19:37:15 +00:00
Wayne Davison
4ce48a5bfd
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.
2004-04-29 19:34:31 +00:00
Wayne Davison
20bf7f847f
Undefined __attribute__ in some circumstances.
2004-04-28 17:35:08 +00:00
Wayne Davison
b66d00853b
Fixed the use of an uninitialized variable in map_uid() and map_gid().
2004-04-28 17:31:31 +00:00
Wayne Davison
8b602edda4
In copy_file(), check len < 0 before checking the close() return values.
2004-04-27 19:59:37 +00:00
Wayne Davison
9f27cd8ca6
Check the return code from close() and output an error if it
...
fails.
2004-04-27 19:51:33 +00:00
Wayne Davison
b084f9e092
Got rid of a debug-output statement.
2004-04-27 16:41:33 +00:00
Wayne Davison
4220e1098e
Preparing for release of 2.6.1
2004-04-27 03:55:37 +00:00
Wayne Davison
c30468169a
- 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.
2004-04-27 03:53:28 +00:00
Wayne Davison
c0d9e8c76b
- Changed XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.
...
- Got rid of HP-UX kludge (since it didn't help).
2004-04-27 01:36:16 +00:00
Wayne Davison
90a973fe8a
Changed XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.
2004-04-27 01:36:10 +00:00
Wayne Davison
7f0feb4dd6
- Changed XFLG_NO_PREFIXES to XFLG_WORDS_ONLY.
...
- Don't parse comment lines in add_exclude_file() when XFLG_WORD_SPLIT
is set.
2004-04-27 01:36:06 +00:00
Wayne Davison
33a5432ea6
Got rid of HP-UX kludge (since it didn't help).
2004-04-27 01:36:00 +00:00
Wayne Davison
968ff560d2
Made a comment clearer.
2004-04-27 01:00:58 +00:00
Wayne Davison
cd59be1d5e
One more try at getting the HP-UX system in the build farm to compile
...
popt.
2004-04-25 20:36:41 +00:00
Wayne Davison
8b2869c0d2
Don't use __attribute__((__unused__)) on HP-UX w/o gcc.
2004-04-25 16:10:09 +00:00
Wayne Davison
82a51ea53d
Improved the debug string for the local_exclude_list.
2004-04-24 08:00:39 +00:00
Wayne Davison
20af605eba
Improved the EXCLUDE PATTERNS section some more.
2004-04-24 06:16:04 +00:00
Wayne Davison
a6536635e3
Fixed a comment.
2004-04-23 08:09:13 +00:00
Wayne Davison
adddd075eb
Mention how --update behaves when the type of the file differs on
...
the source and destination systems.
2004-04-23 05:14:39 +00:00
Wayne Davison
a0c823b22b
Recently added caveat is no longer true.
2004-04-23 01:33:35 +00:00
Wayne Davison
9fdb334e85
Restore the old include behavior where a command-line include could
...
override a .cvsignore exclude.
2004-04-22 22:17:15 +00:00
Wayne Davison
f89e890b87
Got rid of a wrong paragraph.
2004-04-22 21:35:45 +00:00
Wayne Davison
1c666c3fcb
Got rid of a bunch of cruft.
2004-04-22 21:17:58 +00:00
Wayne Davison
2a383be0f1
Updated the default list of cvs-excluded files and added some extra
...
info on how the option interacts with other include/exclude rules.
2004-04-22 18:17:30 +00:00
Wayne Davison
ac1d2d3384
Added "debug_type" to the exclude_list_struct.
2004-04-22 09:58:24 +00:00
Wayne Davison
acfcfa7053
No need to pass a debug string to check_exclude() anymore.
2004-04-22 09:58:21 +00:00
Wayne Davison
8ef81dd452
No need to pass a debug string to check_exclude() anymore. When we
...
free an exclude list, make sure we don't clear the debug_type string.
2004-04-22 09:58:18 +00:00
Wayne Davison
67340e9523
Initialize the new debug_type string in each exclude list and output
...
it in a couple extra debug messages. When we free an exclude list,
make sure we don't clear the debug_type string.
2004-04-22 09:58:15 +00:00
Wayne Davison
a7ceddae34
Changed check_exclude()'s prototype.
2004-04-22 09:58:11 +00:00
Wayne Davison
24e1569f8b
The debug output for add_exclude() now needs to limit the pattern to
...
print only "pat_len" chars.
2004-04-22 08:41:03 +00:00
Wayne Davison
de31639fff
A couple minor text improvements.
2004-04-19 17:52:39 +00:00
Wayne Davison
8b46340924
Mentioned the better handling of option paths when a daemon is not
...
running with chroot enabled.
2004-04-18 06:29:06 +00:00
Wayne Davison
d008bcb5cd
Made the device-changes section agree with the latest code.
2004-04-17 19:58:12 +00:00
Wayne Davison
0484b5b0b7
Preparing for release of 2.6.1pre-2
2004-04-17 18:40:16 +00:00
Wayne Davison
f01b6368a5
Mention that --from0 does not affect --cvs-exclude's reading of the
...
.cvsignore files.
2004-04-17 18:12:33 +00:00
Wayne Davison
40d38dc0be
In add_exclude_file(), if we're word-splitting, stop reading a "line"
...
at any whitespace (so that we don't overflow the line buffer).
2004-04-17 17:55:45 +00:00
Wayne Davison
33a2361cc2
The inode and dev values in the idev struct are now uint64.
2004-04-17 17:14:16 +00:00
Wayne Davison
4124540d61
Changed the dev handling for -H back to using an opaque 64-bit
...
integer instead of trying to transfer it as separate major & minor
values. Since the value is not interpreted by the receiving side
(just compared for equality), this is a safer way to go.
2004-04-17 17:14:12 +00:00
Wayne Davison
5f38126817
Use "uint64" instead of INO64_T (which is now gone).
2004-04-17 17:07:23 +00:00
Wayne Davison
b05b3c9b48
Fixed alloc_sanitize_path()'s handling of a rootdir == "/" (the old
...
code would generate a string that started with "//" instead of "/").
2004-04-17 17:06:03 +00:00
Wayne Davison
a03a9f4efe
Don't say "skipped" if the file is just not being transferred (i.e.
...
when other updates, such as owner/permissions/etc. might be made).
2004-04-15 18:32:24 +00:00
Wayne Davison
3e55030372
Mention exclude improvements.
2004-04-15 18:23:52 +00:00
Wayne Davison
273c0420d0
Got rid of a couple useless lines.
2004-04-15 18:22:56 +00:00
Wayne Davison
5774786fa5
Moved some externs.
2004-04-15 16:55:23 +00:00
Wayne Davison
1a9ec1fd1c
Got rid of zlib/dummy ("dummy" is in the zlib .cvsignore, where it
...
should be).
2004-04-15 06:54:14 +00:00
Wayne Davison
b2aa573b1c
Our exclude lists are now comprised of a base structure with a head
...
and a tail pointer pointing to a linked list of items (rather than
an array of pointers that has to be reallocated all the time).
2004-04-14 23:33:40 +00:00
Wayne Davison
63d0331991
Added a "next" pointer to "exclude_struct" and added a new structure
...
for exclude lists, exclude_list_struct, that holds the head/tail
pointers for the list.
2004-04-14 23:33:37 +00:00
Wayne Davison
bf6dcd1713
Updated the exclude-list code to handle the new linked-list
...
structure format.
2004-04-14 23:33:34 +00:00
Wayne Davison
495723bb26
Updated the exclude-list code to handle the new linked-list
...
structure format.
2004-04-14 23:33:34 +00:00
Wayne Davison
911cb0662c
Updated stub version of check_exclude().
2004-04-14 22:49:54 +00:00
Wayne Davison
5387514eaf
Added a description arg to check_exclude().
2004-04-14 21:59:45 +00:00
Wayne Davison
61414c83ce
The check_exclude() and report_exclude_result() functions now take a
...
description string that describes what kind of an include/exclude is
happening (which only gets output when verbose is set to 2 or more).
2004-04-14 21:59:41 +00:00
Wayne Davison
43a9d0e7c2
Improved the exclude testing by adding tests that exercise --cvs-exclude
...
and --delete-excluded.
2004-04-14 20:50:32 +00:00
Wayne Davison
df5cd107a5
Moved (and expanded) a verbose message from clientserver.c to socket.c
...
to solve an old FIXME comment.
2004-04-14 16:51:48 +00:00
Wayne Davison
abca4eba67
Fixed a potential problem parsing the "!" token from a word-split string.
2004-04-13 19:07:21 +00:00
Wayne Davison
96d3590a08
A few more improvements to get_exclude_tok() and add_exclude().
2004-04-13 18:35:08 +00:00
Wayne Davison
8429aa9e0e
Added an example for --link-dest.
2004-04-13 00:32:58 +00:00
Wayne Davison
79d4053048
Updated with latest news and some spelling mistakes corrected.
2004-04-12 18:03:08 +00:00
Wayne Davison
753b6b4692
Replaced MISSING_OK, MISSING_FATAL, ADD_INCLUDE, and ADD_EXCLUDE with
...
some new XFLG_* values (for the add_exclude*() function).
2004-04-12 17:42:35 +00:00
Wayne Davison
f8f726449b
- add_exclude() now takes a flag int and can optionally word-split
...
items and/or ignore +/- prefixes.
- add_exclude_file() changed to take the same flags as add_exclude().
- add_exclude_line() was removed since add_exclude() can now do its job.
- make_exclude() now takes a size-limited string without a +/- prefix.
- add_cvs_excludes() was changed to word-split the items that come from
a .cvsignore file, and to ignore all +/- prefixes in all the ignore
sources. Since CVS doesn't check if its ignore items are directories,
the dir-names (e.g. SCCS, CVS, etc.) no longer have a trailing slash
(making our excludes match CVS's ignores more exactly).
2004-04-12 17:42:32 +00:00
Wayne Davison
357406ecb2
Use the new XFLG_* flags to call the add_exclude*() functions.
2004-04-12 17:42:29 +00:00
Wayne Davison
3915fd7583
No need to cast st.st_rdev to DEV64_T anymore.
2004-04-12 16:52:43 +00:00
Wayne Davison
9c5e91f848
- Use dev_t instead of DEV64_T.
...
- Changed rdev_high to rdev_major.
- Use major(), minor(), and makedev() to manipulate device numbers.
- Send the major and minor values separately in protocol 28 and beyond.
2004-04-12 16:52:40 +00:00
Wayne Davison
af107f6c08
- Got rid of DEV64_T and changed the internal device variables to dev_t.
...
- Changed XMIT_SAME_HIGH_RDEV to XMIT_SAME_RDEV_MAJOR.
- Added XMIT_RDEV_MINOR_IS_SMALL.
2004-04-12 16:52:37 +00:00
Wayne Davison
a3dbb20a0e
Fixed a bug where an exclude name that got sent over the wire could get
...
an extra "- " or "+ " parsed off the start of the name (i.e. we have to
quote excluded names that start with those strings with an extra "- "
at the start).
2004-04-10 10:31:11 +00:00
Wayne Davison
a3779426b6
UNUSED() misbehaves on HP-UX, not AIX.
2004-04-09 22:25:33 +00:00
Wayne Davison
2f5ca63d92
AIX doesn't like our UNUSED() macro, so let's eliminate it for them.
2004-04-09 21:51:34 +00:00
Wayne Davison
0e1d98ae92
Silence compiler warnings on Solaris.
2004-04-09 20:22:44 +00:00
Wayne Davison
04575bcab5
Missed one void-pointer-arithmetic case.
2004-04-09 20:17:01 +00:00
Wayne Davison
71b291d71b
AIX's cc was complaining about the void* arithmetic.
2004-04-09 19:53:50 +00:00
Wayne Davison
decba3ae73
Removed debug code.
2004-04-09 19:18:34 +00:00
Wayne Davison
f8ed564c9f
Changed sysmacros.h to sys/sysmacros.h.
2004-04-09 19:04:03 +00:00
Wayne Davison
47ba39bef6
Added some test code to assist in the remote debugging of the build
...
farm's Solaris machines.
2004-04-09 18:36:01 +00:00
Wayne Davison
71f7051489
Use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.
2004-04-09 18:10:03 +00:00
Wayne Davison
3c3791e8be
Use AC_HEADER_MAJOR for better makedev/major/minor determination.
2004-04-09 18:09:16 +00:00
Wayne Davison
c39d6514ab
Include <sys/mkdev.h> if it exists.
2004-04-09 17:59:50 +00:00
Wayne Davison
1cb6f3bf4d
Added sys/mkdev.h to the searched-for headers.
2004-04-09 17:56:58 +00:00
Wayne Davison
f09dc86ab6
Added a couple extra character devices to be copied.
2004-04-09 00:36:45 +00:00
Wayne Davison
f26ac1e8cb
If we're listing a device, output the major and minor device numbers.
2004-04-09 00:33:34 +00:00
Wayne Davison
84a3efa0ab
Simplify the setting of rdev & rdev_high in send_file_entry().
2004-04-08 23:15:39 +00:00
Wayne Davison
00ed4b5bf3
Fixed a bug in the sending of rdev when the high-bits match.
2004-04-08 23:05:36 +00:00
Wayne Davison
e2e053bbd7
Explicitly cast our ~0xFF mask using ~(DEV64_T)0xFF, just to be sure
...
(sign-extention would have probably made the former work OK).
2004-04-08 21:51:49 +00:00
Wayne Davison
f8b33ab379
Mention the rsync-daemon fix for --sufix=''.
2004-04-07 23:13:02 +00:00
Wayne Davison
5df1fcf245
If --daemon was specified, exit the option-parsing code before
...
adjusting various default values (the real defaults will get
set when the client's options arrive).
2004-04-07 23:09:14 +00:00
Wayne Davison
b1ad6a3260
Added a couple missing items.
2004-04-05 15:05:46 +00:00
Wayne Davison
6442ccc606
Decided against "Source root" in the exclude/include examples.
2004-04-03 20:47:54 +00:00
Wayne Davison
b21813060c
Mentioned the CoW improvement and got rid of a bug-fix mention that
...
was for a bug introduced during the 2.6.1 developement.
2004-04-03 18:13:51 +00:00
Wayne Davison
706c75307a
Use getaddrinfo() to figure out if a numeric address is IPv4 or IPv6.
2004-04-01 21:39:35 +00:00
Wayne Davison
2b284ee33d
Last of the cleanup before the patching starts.
2004-04-01 21:08:24 +00:00
Wayne Davison
4cfa6156e3
A couple more minor twiddles.
2004-04-01 20:56:50 +00:00
Wayne Davison
c1e7217fcb
Updated the sizeof syntax and trimmed some trailing whitespace.
2004-04-01 20:53:39 +00:00
Wayne Davison
4b2f6a7c37
Decided to use "nobody" instead of "guest".
2004-04-01 18:05:40 +00:00
Wayne Davison
a8726d2a06
Some more IOERR_VANISHED support.
2004-04-01 18:04:59 +00:00
Wayne Davison
b5ebe6d9c7
Improved the include/exclude example section some more. Document
...
the new username default of "guest" if neither USER or LOGNAME is
set in the environment.
2004-03-31 18:53:57 +00:00
Wayne Davison
ef383c0d32
The auth_client function must not return without outputting something
...
on the socket, so a NULL or empty username now defaults to "guest".
2004-03-31 18:52:38 +00:00
Wayne Davison
8dcf93356e
Don't complain about a null --suffix if we're the server/sender (since
...
we might not have received the --backup-dir path from the client).
2004-03-31 17:02:22 +00:00
Martin Pool
ce5f2732e4
I'm no longer maintaining this. Tell people to use the lists instead.
2004-03-31 02:48:47 +00:00
Wayne Davison
3e89da86df
The --files-from option needs to allow a server-sender to sometimes
...
have just 1 arg on the command-line.
2004-03-30 02:08:07 +00:00
Wayne Davison
f5450e791d
Try to avoid running on a system that allows us to create devices
...
without being root (like cygwin) because rsync won't copy the
devices if it is not root.
2004-03-29 17:02:31 +00:00
Wayne Davison
cb984e620e
In sigchild_handler(), finish with waitpid() before reinitializing
...
the SIGCHLD handling.
2004-03-29 16:30:53 +00:00
Wayne Davison
be92ac6c36
Added one more example to the new include/exclude section to show how
...
--relative works with a non-absolute path.
2004-03-27 20:04:04 +00:00
Wayne Davison
5dc6e9c9ca
Mention that certain options treat an absolute path as relative to the
...
module's "path" dir, even when chroot is off.
2004-03-27 19:47:27 +00:00
Wayne Davison
0b79c324ca
Improved the "relative to the destination dir" description for
...
several options.
2004-03-27 19:46:28 +00:00
Wayne Davison
f39b6638f6
Got rid of debug-output statement.
2004-03-27 19:42:13 +00:00
Wayne Davison
a4b6f30579
Try to make the complexities of includes/excludes a little more clear.
2004-03-27 18:25:41 +00:00
Wayne Davison
7be73df4e7
Optionally sanitize the args in parse_arguments() using the new
...
alloc_sanitize_path() function.
2004-03-27 09:46:42 +00:00
Wayne Davison
14b61c63f0
Added alloc_sanitize_path().
2004-03-27 09:44:49 +00:00
Wayne Davison
75a64762c2
The args are now sanitized in parse_arguments() instead of here.
2004-03-27 09:44:01 +00:00
Wayne Davison
028fdddb49
Fixed a crash bug when hlink_list is NULL and a link_u.links
...
pointer in one of the file_struct nodes is not.
2004-03-26 16:46:20 +00:00
Wayne Davison
f86b0f2e7b
Fixed a typo and made a sentence read better.
2004-03-26 15:51:51 +00:00
Wayne Davison
285fba0759
Preparing for release of 2.6.1pre-1
2004-03-24 21:59:07 +00:00
Wayne Davison
92b9eb978e
Moved a few externs and made a couple formatting tweaks.
2004-03-23 16:50:40 +00:00
Wayne Davison
1e82e2cea6
Got rid of an ancient (and no longer relevant) comment.
2004-03-23 16:36:00 +00:00
Wayne Davison
a7ed6ca618
A few formatting tweaks in delete_file().
2004-03-23 16:16:15 +00:00
Wayne Davison
b4b90120ff
Fixed the test for sin_len as noted by Shinichi Maruyama. Changed
...
the define name generated for this test and the sa_len test.
2004-03-16 01:26:39 +00:00
Wayne Davison
16f72adc49
Changed HAVE_SOCKADDR_SIN_LEN to HAVE_SOCKADDR_IN_LEN.
2004-03-16 01:26:31 +00:00
Wayne Davison
3d06165389
Check robust_rename()'s return value using < 0.
2004-03-13 20:18:03 +00:00
Wayne Davison
fd4893155d
Mention the changes in the "patches" dir.
2004-03-10 08:32:38 +00:00
Wayne Davison
67e78a8231
Use CHMOD_BITS instead of ~_S_IFMT.
2004-03-07 20:29:59 +00:00
Wayne Davison
6b320e4045
Improved an entry.
2004-03-06 20:07:24 +00:00
Wayne Davison
7e5cb90983
Other files use S_IWUSR instead of S_IWRITE, so use S_IWUSR and S_IRUSR.
2004-03-06 07:45:52 +00:00
Wayne Davison
8120a98f47
Define S_IRUSR if it doesn't already exist.
2004-03-06 07:43:55 +00:00
Wayne Davison
8f3f8eec08
Updated to version from autoconf 2.59 (2003-10-03).
2004-03-06 07:00:47 +00:00
Wayne Davison
386b93dc60
Updated to version from autoconf 2.59 (2003-08-18).
2004-03-06 07:00:16 +00:00
Wayne Davison
b3bc31102c
Moved out the old news and improved the new.
2004-03-04 19:36:28 +00:00
Wayne Davison
0f1aa0d3e5
Moved the previous release's NEWS here.
2004-03-04 19:35:57 +00:00
Wayne Davison
7a08ae31d2
Progress improvement.
2004-02-28 02:02:37 +00:00
Wayne Davison
304f127f56
Improved the progress reporting/E.T.A. using a (slightly modifed)
...
patch from Timo Sirainen.
2004-02-28 02:00:57 +00:00
Wayne Davison
c338460d66
Got rid of some superfluous parens.
2004-02-27 08:03:49 +00:00
Wayne Davison
48d704af52
Tru64 fix.
2004-02-27 07:37:43 +00:00
Wayne Davison
ac7aa92290
Use new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN).
2004-02-27 07:22:40 +00:00
Wayne Davison
0042f81894
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).
2004-02-27 07:22:39 +00:00
Wayne Davison
2c836acb37
No longer needed.
2004-02-26 04:03:44 +00:00
Wayne Davison
a1d8f29a3d
A couple AC_DEFINE() changes so that we can do without acconfig.h.
2004-02-26 04:03:35 +00:00
Wayne Davison
a174e1ed0f
Tweaked some comments and some whitespace.
2004-02-25 21:20:59 +00:00
Wayne Davison
530adb7625
Configure addition.
2004-02-23 20:09:14 +00:00
Wayne Davison
cd3fe9fb03
Allow the default (system) rsyncd.conf file to be specified via configure.
2004-02-23 20:00:20 +00:00
Wayne Davison
a8edfd53d1
Trivial whitespace tweak.
2004-02-23 19:23:53 +00:00
Wayne Davison
dbb665180c
Shouldn't ignore .cvsignore.
2004-02-23 18:19:13 +00:00
Wayne Davison
9d78ed31a7
A couple fixes from Shinichi Maruyama.
2004-02-23 07:03:03 +00:00
Wayne Davison
89afe532d7
Mentioned the recent change in slash handling.
2004-02-23 02:28:04 +00:00
Wayne Davison
c67d13866b
Changed the literal 9000 into "OPT_REFUSED_BASE".
2004-02-22 08:56:43 +00:00
Wayne Davison
3b98b08c4d
Another bug fix.
2004-02-21 21:39:54 +00:00
Wayne Davison
9c15534511
Got rid of the "refuse options" section.
2004-02-21 21:37:14 +00:00
Wayne Davison
55afbb522c
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.
2004-02-21 21:36:55 +00:00
Wayne Davison
27ed20f7a0
Fixed the "refuse options" setting in the daemon after Fabrice Bellet
...
identified what was wrong.
2004-02-21 21:12:49 +00:00
Wayne Davison
f567e9b3d7
- Guard against and out-of-memory condition.
...
- Don't use the NGROUPS_MAX define.
2004-02-20 17:09:30 +00:00
Wayne Davison
40ae4f93a0
Don't use NGROUPS_MAX define.
2004-02-20 17:01:33 +00:00
Wayne Davison
7a27e9b599
Don't use ENOMSG -- it's not portable.
2004-02-18 22:33:21 +00:00
Wayne Davison
62c9e6b3a5
Moved the EXDEV handling into robust_rename().
2004-02-17 23:13:10 +00:00
Wayne Davison
cfeed4da95
- 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.
2004-02-17 23:00:00 +00:00
Wayne Davison
4068d8617d
We no longer munge a double-leading slash in do_open() because we
...
shouldn't generate a path with a double-leading slash anymore.
2004-02-17 22:49:19 +00:00
Wayne Davison
421c2a2448
Don't create a pathname that has two leading slashes (which we used
...
to do when the root of the transfer was "/").
2004-02-17 21:57:44 +00:00
J.W. Schultz
d1e7726460
Remove "Conditional -z for old protocols" because those old
...
protocols are no longer supported.
2004-02-14 01:43:24 +00:00
Wayne Davison
0596df00b3
Reordered the items inside the file_struct so that alignment padding
...
should be minimized.
2004-02-11 08:01:21 +00:00
Wayne Davison
417c99f637
If --backup was specified, the links we remove are backed up.
2004-02-11 05:03:04 +00:00
Wayne Davison
de0e225076
- Revised and optimized the directory-making code.
...
- Optimized the keep_backup() code.
2004-02-11 05:02:21 +00:00
Wayne Davison
e0391f8149
Added backup_dir_buf and backup_dir_remainder.
2004-02-11 04:30:41 +00:00
Wayne Davison
7de2483fbd
Fixed a crash bug when keep_backup() calls make_file() and the lastdir
...
pointer is no longer valid.
2004-02-11 02:48:58 +00:00
Wayne Davison
65d6212d03
Got rid of hard-link message (since I don't think it was ever
...
output in older rsync versions).
2004-02-11 02:33:17 +00:00
Wayne Davison
4d4df3cd2b
Another attempt at measuring the minimum alignment for a system.
2004-02-10 23:35:12 +00:00
J.W. Schultz
62125b10c9
Simplified test for hardlink in make_backup debug message to
...
avoid core-dump.
2004-02-10 23:23:09 +00:00
Wayne Davison
81c3a3a86e
Got rid of useless extern.
2004-02-10 22:56:16 +00:00
Wayne Davison
61d35e1844
Trying a different MINALIGN because of core dumps on the sparc-64
...
build-farm machines.
2004-02-10 22:28:36 +00:00
J.W. Schultz
15f85b1f63
Revert pool_alloc's use of bomb if pool == NULL.
2004-02-10 21:11:24 +00:00
J.W. Schultz
5bf63a11f4
Keep in sync with protocol if idev data on stream but no hlink_pool.
2004-02-10 21:11:24 +00:00
Wayne Davison
97a67bdfa9
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).
2004-02-10 17:53:52 +00:00
Wayne Davison
aa0b9ca174
If we call pool_alloc() on a NULL pool, bomb out with an error.
2004-02-10 17:52:31 +00:00
Wayne Davison
b96efc2f67
Empty-line tweaks.
2004-02-10 17:35:04 +00:00
Wayne Davison
be20dc3448
Changed a while loop to a for loop.
2004-02-10 17:34:05 +00:00
Wayne Davison
cb869c26d9
Tweaked an if.
2004-02-10 17:28:59 +00:00
Wayne Davison
7cf8e8d05d
Changed flist_init() to use offsetof().
2004-02-10 17:28:31 +00:00
Wayne Davison
54fd3e5020
Added lib/pool_alloc.h to the HEADERS.
2004-02-10 17:06:11 +00:00
J.W. Schultz
3e4916822d
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)
2004-02-10 03:54:47 +00:00
J.W. Schultz
7efdcf3218
Added allocation pool code.
2004-02-10 03:26:41 +00:00
J.W. Schultz
9935066b70
Make idev, hlink and file_struct + strings use allocation
...
pools.
2004-02-10 03:23:37 +00:00
Wayne Davison
6c2e5b56e4
Die if we overflowed the args[] array when building up the remote
...
command in do_cmd().
2004-02-09 21:22:59 +00:00
Wayne Davison
2289bf64cc
The batch-options now set checksum_seed to the appropriate fixed value.
2004-02-09 18:32:54 +00:00
Wayne Davison
b1bf649cba
Set checksum_seed only if it is still zero.
2004-02-09 18:32:53 +00:00
Wayne Davison
8ee6eb7134
Made checksum_seed an extern.
2004-02-09 18:32:52 +00:00
Wayne Davison
f98c60bfa8
Use asprintf() in server_options() (plus a few more whitespace tweaks).
2004-02-09 18:10:57 +00:00
Wayne Davison
a5c1113971
Updated the sizeof syntax and tweaked some whitespace.
2004-02-09 17:45:22 +00:00
Wayne Davison
736f46d1d9
Got rid of unused true/false defines.
2004-02-07 18:40:52 +00:00
Wayne Davison
a8f7e4b835
Made a couple comments a little clearer.
2004-02-07 00:12:40 +00:00
Wayne Davison
9352b0649b
Got rid of unused string_area struct.
2004-02-06 15:33:15 +00:00
J.W. Schultz
a85906c756
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()).
2004-02-06 10:00:33 +00:00
J.W. Schultz
8aa81e06e6
Update TODO to reflect recent changes.
...
Hardlink handling is improved.
String area code is gone for other reasons.
2004-02-06 07:26:15 +00:00
Wayne Davison
1f9ae80a3e
Fixed the indentation in init_flist().
2004-02-06 07:19:57 +00:00
J.W. Schultz
71020fc3aa
Correct sizeof usage and other whitespace.
2004-02-06 04:51:09 +00:00
J.W. Schultz
7b74bba15e
Added a total memory allocated (allmem) line to
...
show_malloc_stats.
2004-02-06 01:56:25 +00:00
J.W. Schultz
e5fbaa713a
Cause all three processes to report memory stats when -vv --stats
2004-02-05 03:27:54 +00:00
Wayne Davison
6609a9f17e
Mention a couple more changes.
2004-02-05 02:56:57 +00:00
Wayne Davison
5204e853e1
Now that the long-standing chgrp bug is fixed, go back to -vvv from -vvvv.
2004-02-05 01:37:08 +00:00
Wayne Davison
01363a24e2
Fixed a problem handling GID_NONE in match_gid().
2004-02-05 01:32:38 +00:00
Wayne Davison
d49def4832
- 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.
2004-02-05 01:07:23 +00:00
Wayne Davison
4836c3eece
Added new extern.
2004-02-05 00:46:32 +00:00
Wayne Davison
9f7b8c3b8f
Only call add_uid() or add_gid() if numeric_ids is not set.
2004-02-05 00:44:11 +00:00
Wayne Davison
ade7292aee
Moved a function.
2004-02-04 20:09:21 +00:00
Wayne Davison
dbd8811b85
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).
2004-02-04 19:25:11 +00:00
Wayne Davison
05118158f4
Improved the trailing comment.
2004-02-04 18:24:41 +00:00
Wayne Davison
1df395f7c2
Use the new HAVE_GETGROUPS define.
2004-02-04 17:49:36 +00:00
Wayne Davison
5fdf2e7063
Added function check for getgroups.
2004-02-04 17:21:48 +00:00
Wayne Davison
6fe05820ff
Use MY_UID() instead of getuid().
2004-02-04 17:06:07 +00:00
Wayne Davison
670d8abf80
Use MY_GID() instead of getgid().
2004-02-04 17:05:44 +00:00
Wayne Davison
b2bffbb2ca
Added two defines: MY_UID() and MY_GID().
2004-02-04 17:04:58 +00:00
Wayne Davison
13a6d667d2
Added getegid to the functions we check.
2004-02-04 16:45:26 +00:00
Wayne Davison
1be77f8336
Added geteuid to the functions to check.
2004-02-04 16:33:34 +00:00
Wayne Davison
187e9c24f1
Another improvement to the debug info we output.
2004-02-04 16:27:47 +00:00
Wayne Davison
eddeaf76f8
Set the "max verbosity" global to 9.
2004-02-04 07:32:48 +00:00
Wayne Davison
33e9d10d2a
Use the new lp_max_verbosity() value to limit the server's "verbose"
...
value.
2004-02-04 07:32:12 +00:00
Wayne Davison
46f7dc3bf6
Added "max verbosity" global parameter that allows you to configure
...
a higher debug level instead of the default of level-l verbosity.
2004-02-04 07:31:29 +00:00
Wayne Davison
555b0e20f7
Tweaked the new debug-logging strings.
2004-02-04 07:24:13 +00:00
Wayne Davison
a57dfe710d
Turned on 4 -v options for some build-farm testing.
2004-02-04 06:15:24 +00:00
Wayne Davison
53adbd7a3d
If we encounter an error, output the rsyncd.log file, if it exists.
2004-02-04 05:34:29 +00:00
Wayne Davison
17f033b725
Temporarily switch to 4 -v options.
2004-02-04 03:58:19 +00:00
Wayne Davison
cefed3e8dc
Delay the output the (verbose > 3) list of files until we've had a
...
chance to map the uid/gid info in the receiver.
2004-02-04 03:52:51 +00:00
Wayne Davison
84fa865c0c
Output some debug info if verbose > 3.
2004-02-04 03:50:16 +00:00
Wayne Davison
f05f993eb7
If we're dumping the file list (i.e. verbose > 3), mention the uid and/or
...
gid (depending on applicability).
2004-02-04 03:28:22 +00:00
Wayne Davison
e90cdb8adf
Changed the -x code to allow -L to copy a file on another filesystem
...
that is pointed to by a symlink on our exclusive filesystem.
2004-02-04 03:25:18 +00:00
Wayne Davison
4250941710
Fixed a dropped '-'.
2004-02-04 03:01:32 +00:00
Wayne Davison
a2687b64a2
Added a little more compatibility code for non-standard systems.
2004-02-03 23:28:19 +00:00
Wayne Davison
c284f34a49
Some indentation fixes and the removal of some superfluous parens.
2004-02-03 23:04:25 +00:00
Wayne Davison
5f5be796b0
Changed a couple sizeof calls and improved some string handling in
...
the {send,recv}_exclude_list() calls.
2004-02-03 23:01:58 +00:00
Wayne Davison
5cb374364b
Modified sizeof usage and eliminated trailing whitespace.
2004-02-03 22:48:32 +00:00
Wayne Davison
f15256e156
Added some temporary code to try to figure out what is going wrong
...
on one NetBSD box in our build farm.
2004-02-03 20:01:26 +00:00
Wayne Davison
ce37eb2d83
If verbose > 2, mention it if we're setting the uid or the gid.
2004-02-03 20:00:35 +00:00
J.W. Schultz
0d6e308b51
correct sizeof usage.
2004-02-03 06:21:56 +00:00
Wayne Davison
b1dab2363a
Made hard-link sending compatible with pre-28 protocols again.
2004-02-03 04:21:15 +00:00
J.W. Schultz
bd6abc4939
Corrected sizeof usage:
...
sizeof obj
sizeof (type)
2004-02-03 03:42:49 +00:00
Wayne Davison
96eeda0324
Fix for memset bug found by buildfarm.
2004-02-02 22:35:07 +00:00
Wayne Davison
4c4266d9c9
Change to try to debug a failure on the build farm.
2004-02-02 22:18:23 +00:00
Wayne Davison
54e87b4b06
Don't warn about lack of -l support if we're the sender -- we just won't
...
send the receiver any symlinks.
2004-02-02 21:33:10 +00:00
Wayne Davison
44e9e221f3
- Call init_flist().
...
- Got rid of the symbolic-links-warning code (it was not right, and it is
now handled in options.c).
2004-02-02 21:33:06 +00:00
Wayne Davison
61dec11ae0
- Use as little memory as possible for the file_struct (saves another 3
...
bytes per file).
- Made the idev struct allocated by the group-malloc again (J.W. suggested
the proper way to align it for all systems).
- Added init_flist().
2004-02-02 21:33:03 +00:00
Wayne Davison
5009de7d2d
Added comment about the position of file_list's "flags" var.
2004-02-02 21:32:56 +00:00
Wayne Davison
67f3feebcb
Don't free link_u.idev.
2004-02-02 21:32:52 +00:00
Wayne Davison
b22260749f
Use "%H:%M:%S" instead of "%T" in strftime() call since it looks to be
...
more portable.
2004-02-02 21:02:13 +00:00
Wayne Davison
06d76beb28
Clarify the safe/unsafe symlink options in the usage text.
2004-02-02 18:25:37 +00:00
Wayne Davison
7af4227ac2
Clarify the various safe/unsafe symlink options.
2004-02-02 18:23:09 +00:00
Wayne Davison
9312b7325e
Go back to using malloc() for the hard-link data structure (for now
...
at least).
2004-02-02 07:06:54 +00:00
Wayne Davison
c6edb381f5
Free the hlink data again.
2004-02-02 07:06:50 +00:00
Wayne Davison
a1d55ad095
Make sure that the idev struct's data is 4-byte aligned.
2004-02-02 06:52:49 +00:00
Wayne Davison
a289addd96
- Changed the file-list allocation to alloc all the memory we need
...
with one call, not with several mallocs and strdups.
- Got rid of string_area() stuff (as suggested in the "@todo").
- Enhanced free_file() to optionally free the whole struct or to
clear it (since we don't need to do both).
- Don't zero out the other flist data when we're about to free it.
2004-02-02 05:06:36 +00:00
Wayne Davison
13c5b46361
Don't free the hlink data (it is not separately allocated anymore).
2004-02-02 05:06:35 +00:00
Wayne Davison
f3af206d8d
Changed args to make_file() and free_file().
2004-02-02 05:06:34 +00:00
Wayne Davison
df0054ab13
Added CLEAR_STRUCT and FREE_STRUCT defines.
2004-02-02 05:06:33 +00:00
Wayne Davison
0d162bd17c
Added some missing #if SUPPORT_HARD_LINK and #if SUPPORT_LINK directives.
2004-02-01 17:37:14 +00:00
Wayne Davison
e1add89334
- Fixed the bug where the --daemon option would squelch all option errors
...
for later parameters.
- Complain if someone passes us -l and we don't support symlinks.
2004-02-01 17:29:41 +00:00
Wayne Davison
22d49dc429
Changed the rdev code to have both an "rdev" variable (which always
...
has the full device value) and an "rdev_high" variable (which zeros
the lower byte in the last rdev value).
2004-02-01 16:28:31 +00:00
Wayne Davison
1aa4caf318
One more improvement to the 0-flag-byte avoidance algorithm.
2004-01-31 22:40:55 +00:00
Wayne Davison
306ffb8c71
A small optimization to the symlink-send code, and an extra sanity
...
check to the symlink-receive code.
2004-01-31 21:01:01 +00:00
Wayne Davison
0a98201164
Fixed the test to ensure that we don't send a flag-byte of 0 to the
...
receiver when transferring the file list.
2004-01-31 20:24:52 +00:00
Wayne Davison
e0870f1d7a
One more minor variable-name change.
2004-01-31 11:36:03 +00:00
Wayne Davison
1923b1fce4
Switched a buffer name in make_file() to make the code a little more
...
similar to what is in receive_file_entry().
2004-01-31 11:32:30 +00:00
Wayne Davison
5dc4003e63
Fixed the optional sanitization of the files_from arg.
2004-01-30 16:14:46 +00:00
Wayne Davison
37c817eb81
OK, "find ... -print0 | xargs -0 ..." wasn't portable. This is.
2004-01-28 01:39:29 +00:00
Wayne Davison
284d628a7c
Got rid of indeterminacy in the overlapping-files.
2004-01-28 00:37:55 +00:00
Wayne Davison
ff3184ca1e
A couple more unsigned char changes to silence compiler warnings
...
on signed-char systems (like Solaris).
2004-01-28 00:04:57 +00:00
Wayne Davison
12865a9762
New test to make sure that merging files from multiple directories
...
continues to work.
2004-01-27 23:56:00 +00:00
Wayne Davison
ea847c6232
Use who_am_i() to qualify some debug messages.
2004-01-27 23:13:15 +00:00
Wayne Davison
b695f2423d
Set the am_generator flag. Use who_am_i().
2004-01-27 23:13:14 +00:00
Wayne Davison
c3e5e5851b
New function: who_am_i() returns "sender", "receiver", or "generator".
2004-01-27 23:13:13 +00:00
Wayne Davison
4337c8f856
Added "am_generator".
2004-01-27 23:13:12 +00:00
Wayne Davison
4c7e46079d
Don't free lastdir! It is still needed by the flist basedir pointers.
...
Also, output the basedir pointer when dumping the flist for debugging.
2004-01-27 23:00:47 +00:00
Wayne Davison
72a6e63136
Relocated the externs.
2004-01-27 22:35:15 +00:00
Wayne Davison
37101856a6
Silenced some compiler warnings.
2004-01-27 16:27:05 +00:00
Wayne Davison
65fc84b32e
Better pid handling.
2004-01-27 08:14:33 +00:00
Wayne Davison
45e08edb08
Cast getpid() to a long for output.
2004-01-27 08:02:31 +00:00
Wayne Davison
05b7bab8e1
Better pid handling.
2004-01-27 07:57:12 +00:00
Wayne Davison
904817552d
Fixed a comment.
2004-01-27 07:48:57 +00:00
Wayne Davison
6e195fe975
Tweaked the externs.
2004-01-27 07:48:19 +00:00
Wayne Davison
3eaf615f40
Percentage of file-count output was off by one.
2004-01-27 06:51:39 +00:00
J.W. Schultz
6156e72f85
EXCLUDE PATTERNS is not just about syntax.
2004-01-27 05:00:43 +00:00
Wayne Davison
73a4bdfd77
Mention the latest -x improvement. Also improved the description of
...
one of my previous fixes.
2004-01-27 03:49:54 +00:00
Wayne Davison
4844449a5d
Optimized the -x option by removing the skip_filesystem() call and using the
...
new FLAG_MOUNT_POINT flag.
2004-01-27 01:47:41 +00:00
Wayne Davison
ae289aec1e
Added FLAG_MOUNT_POINT.
2004-01-27 01:47:40 +00:00
Wayne Davison
9e4c32ea54
Tweaked a comment.
2004-01-27 01:27:37 +00:00
Wayne Davison
a5f9cff256
Improved the differentiation of the transmit flags from the live flags
...
by naming the transmit flags with an XMIT_ prefix. Improved the names
of two other flags, got rid of the LIVE_FLAGS mask, and shortened the
flag storage in the flist struct (to save memory).
2004-01-27 01:05:14 +00:00
Wayne Davison
d01d15e096
Use the new names for the transmit-flag defines. We also make sure
...
that the FLAG_TOP_DIR flag doesn't get set in the live data for a
non-directory (when it's used as a kluge to prevent a 0x00 byte being
sent over the wire for the flag data).
2004-01-27 01:05:13 +00:00
Wayne Davison
a53426441b
Use the new names for the transmit-flag defines.
2004-01-27 01:05:12 +00:00
Wayne Davison
5d1966948e
Fixed reference to -u that should have been -o.
2004-01-26 22:35:04 +00:00
J.W. Schultz
f673ea84b2
Back out bad refactor (thanks Wayne)
2004-01-26 20:54:02 +00:00
Wayne Davison
64f21c31bf
Mention new hard-link optimization.
2004-01-26 04:21:59 +00:00
Wayne Davison
520cf41711
Added defines (FLAG_HLINK_EOL, HL_CHECK_MASTER, and HL_SKIP) and changed
...
the struct hlink to have an index into the hlink_list[] array instead of
a head pointer.
2004-01-25 22:32:11 +00:00
Wayne Davison
d38fc30563
We now link the hard-linked flist entries into a circular list, mark
...
the last item with FLAG_HLINK_EOL, and save off an index for our
master entry in the hlink_list[] array. Added the hard_link_check()
function.
2004-01-25 22:32:10 +00:00
Wayne Davison
6dff599288
Use the new hard_link_check() function to figure out which one of the
...
hard-linked files to send (when -H was specified, of course). Moved
the call to do_hard_links() and the final directory-permissions scan
into generate_files() from recv_files().
2004-01-25 22:32:09 +00:00
Wayne Davison
f746dda0a0
Moved the call to do_hard_links() and the final directory-permissions
...
scan from recv_files() into generate_files().
2004-01-25 22:32:08 +00:00
Wayne Davison
91a1e147ae
Changed F_HEAD to F_HLINDEX.
2004-01-25 22:32:07 +00:00
Wayne Davison
40da904230
Tweaked a comment.
2004-01-25 22:32:05 +00:00
J.W. Schultz
34fada3012
Tightened up code in skip_filesystem()
2004-01-25 22:11:09 +00:00
Wayne Davison
f91e01d9a5
Replaced an snprintf() call with pathjoin().
2004-01-24 22:12:58 +00:00
Wayne Davison
3048b0a8ea
The static last_in value in match_gid() needed to default to -2 so
...
that we don't accidentally return a GID of 0 when we don't have the
permissions to set it.
2004-01-24 18:36:36 +00:00
Wayne Davison
d99b4ccf93
Another improvement in the "use chroot" section.
2004-01-24 01:48:12 +00:00
Wayne Davison
58811a0a38
Refer to I/O (not IO), ID (not id), and "an rsync" (not "a rsync").
2004-01-23 16:58:24 +00:00
Wayne Davison
cb290916be
Improved the "use chroot" discussion on ID mapping.
2004-01-23 16:55:40 +00:00
Wayne Davison
a2b0471f1d
More changes to make the --owner and --group items clearer.
2004-01-23 16:40:17 +00:00
Wayne Davison
bb18e7550c
Use "an" in front of rsync, not "a".
2004-01-23 09:34:04 +00:00
Wayne Davison
db2b5cb75f
Tweaked the --help text to refer to I/O (not IO) and use "an" in
...
front of rsync (not "a").
2004-01-23 09:32:50 +00:00
Wayne Davison
fa8c787d8b
Improved the "use chroot" section to mention how to get user/group
...
preservation by name (getting rid of the erroneous bit about the
--numeric-ids option being implied).
2004-01-23 09:30:45 +00:00
Wayne Davison
ec40899bb9
Improved comments on --owner and --groups, and removed misinformation
...
on a chroot daemon (it does not imply --numeric-ids).
2004-01-23 09:29:16 +00:00
Wayne Davison
b5accabaa7
Properly punctuate "etc." and changed all occurrences of "IO" to "I/O".
2004-01-23 08:59:19 +00:00
Wayne Davison
4e308a9526
Fixed two more misspelled words.
2004-01-23 02:02:51 +00:00
Wayne Davison
4d88810810
Some spelling corrections and other simple fixes.
2004-01-23 01:36:59 +00:00
Wayne Davison
f321922214
When setting an flist entry's flags, mask it with LIVE_FLAGS.
2004-01-22 18:39:32 +00:00
Wayne Davison
cab13afe8d
A couple comment tweaks.
2004-01-22 18:37:26 +00:00
Wayne Davison
72fc7ec59b
Made the getgroups() code a little more portable. This will hopefully
...
make the chgrp test work on the NetBSD and OpenBSD systems where it is
failing.
2004-01-22 09:16:21 +00:00
Wayne Davison
58743a87b8
Improved to add the default gid if it is missing from the list.
2004-01-22 09:13:36 +00:00
Wayne Davison
54bf456e85
Removed an obsolete comment.
2004-01-22 09:05:09 +00:00
Wayne Davison
a24639bb36
Tweaked an argv-type variable so that it's a little clearer what
...
the code is doing. Also added a comment.
2004-01-22 04:40:33 +00:00
Wayne Davison
3fef53645d
Use the new f_name_to() calling syntax.
2004-01-22 04:38:18 +00:00
Wayne Davison
882e689312
- Ensure in make_file() that we can't make a name that overflows
...
our buffers (note that receive_file_entry() already does this).
- Changed f_name_to() to not do any length checking since it is
now redundant.
2004-01-22 04:38:17 +00:00
Wayne Davison
b0a93231cf
Added more missing news.
2004-01-22 02:02:00 +00:00
Wayne Davison
0c819b76d6
New news.
2004-01-22 01:23:43 +00:00
Wayne Davison
ce58b1b479
Size-check the --temp-dir string so we don't have to worry about it
...
overflowing elsewhere in the code.
2004-01-22 01:20:24 +00:00
Wayne Davison
a16d8f2b25
Improved a couple comments.
2004-01-21 02:45:10 +00:00
Wayne Davison
59187666b9
Use new push_dir() syntax.
2004-01-20 17:46:31 +00:00
Wayne Davison
808c57c343
- Use the new push_dir() and pop_dir() calling syntax.
...
- The "olddir" handling changed to accommodate the above, and to
avoid using malloc()/free().
2004-01-20 17:46:30 +00:00
Wayne Davison
4af8fe4e78
- Changed push_dir() to not take a "save" arg and to return 1 or 0
...
for success or failure instead of a string pointer. The function
also ensures that we don't overflow the curr_dir[] buffer.
- Changed pop_dir() to not free() anything and to return 1 or 0
for success or failure.
2004-01-20 17:46:29 +00:00
Wayne Davison
4034cb3f71
Use new stringjoin() function.
2004-01-20 05:35:57 +00:00
Wayne Davison
6fc048f438
Find last '@' in the user@site string, just in case the username has
...
a '@' in it.
2004-01-20 05:27:09 +00:00
Wayne Davison
5d2a707139
Use new stringjoin() and pathjoin() functions.
2004-01-20 05:24:07 +00:00
Wayne Davison
81d2b0ef9d
Use new pathjoin() function.
2004-01-20 05:15:14 +00:00
Wayne Davison
248ed45fc6
Use new pathjoin() function.
2004-01-20 05:09:36 +00:00
Wayne Davison
893c4cc056
Use new stringjoin() function.
2004-01-20 04:56:20 +00:00
Wayne Davison
a7725e6df9
Use new pathjoin() function.
2004-01-20 04:53:59 +00:00
Wayne Davison
368ad70e05
Added stringjoin() and pathjoin().
2004-01-20 04:43:49 +00:00
J.W. Schultz
b7cee9498b
Eliminate unneeded strlen after strlcpy.
2004-01-20 03:37:04 +00:00
Wayne Davison
72d45525d2
Make sure that strlcpy() returns the right value when the bufsize is 0.
2004-01-20 00:59:26 +00:00
Wayne Davison
1fb8ec4b0d
Fixed a bug in strlcat() where it would not properly detect a no-change
...
condition if called with an initial string longer than the specified
size limit (due to an unsigned var's inability to go negative).
2004-01-20 00:29:49 +00:00
Wayne Davison
beb9368481
Make sure that the batch-prefix string isn't overly long (avoiding
...
a potential problem in the batch-filename code).
2004-01-19 23:33:02 +00:00
Wayne Davison
981555bddb
Actually, let's avoid snprintf() where possible.
2004-01-19 23:28:57 +00:00
Wayne Davison
9c7527085c
Use snprintf() instead of strlcpy()+strlcat().
2004-01-18 21:22:49 +00:00
Wayne Davison
eddd5d129e
A few minor string optimizations and a new complaint if we try to
...
send a truncated filename.
2004-01-17 19:45:26 +00:00
Wayne Davison
26f76b7912
Got rid of an extra call to io_start_buffering_out().
2004-01-17 05:04:04 +00:00
Wayne Davison
32eda0961e
Unified the externs.
2004-01-17 04:58:24 +00:00
Wayne Davison
66964002df
A fix for --cvs-exclude.
2004-01-17 01:23:41 +00:00
Wayne Davison
57469f6c31
Items read from a per-directory .cvsignore file should be added to the
...
local_exclude_list, not the exclude_list.
2004-01-17 01:16:49 +00:00
Wayne Davison
13c7bcbb2b
Output an error before we die if we get a wacko message from the receiver.
2004-01-16 16:31:47 +00:00
Wayne Davison
d48c806560
Clarified the --delete-after descriptions.
2004-01-15 17:45:53 +00:00
Wayne Davison
ad1a09a509
Clarified the --delete-after help text.
2004-01-15 17:43:34 +00:00
Wayne Davison
d6631cf3a5
If we're a daemon talking with a pre-28 protocol, use FERROR for a
...
vanished-file message (not FINFO).
2004-01-15 08:56:33 +00:00
Wayne Davison
5a8543b8b8
In two places: needed to use protocol_version, not PROTOCOL_VERSION.
2004-01-15 08:39:25 +00:00
Wayne Davison
19119cbd35
Changed version to "2.6.1cvs".
2004-01-15 08:16:40 +00:00
Wayne Davison
442743b83c
Improved receiver/generator communications.
2004-01-15 07:51:37 +00:00
Wayne Davison
419896af47
- Define FULL_FLUSH and NORMAL_FLUSH.
...
- Got rid of FNONE from logcode enum.
- Created msgcode enum with MSG_DATA, MSG_REDO, MSG_DONE, etc.
2004-01-15 07:42:27 +00:00
Wayne Davison
0569a1339d
- Got rid of the f_gen pipe.
...
- Use new send_msg() call with MSG_DONE or MSG_REDO.
2004-01-15 07:42:25 +00:00
Wayne Davison
f1e3656ee2
- Call io_flush() with its new FULL_FLUSH/NORMAL_FLUSH arg.
...
- Got rid of the recv_pipe between the receiver and the generator.
- Use new send_msg(MSG_DONE,...) call to signal the generator
when the receiver is done.
- Use the new get_redo_num() call in the generator to read the
final -1 from the receiver.
2004-01-15 07:42:21 +00:00
Wayne Davison
a644fc3cc4
- Moved err_list* stuff to io.c and renamed them to msg_list*.
...
- Call the new send_msg() function to send a remote log message.
2004-01-15 07:42:19 +00:00
Wayne Davison
d17e1dd2da
- Moved the err_list* stuff here from log.c and renamed them msg_list*.
...
- Renamed log_error_fd to msg_fd_out, and io_error_fd to msg_fd_in.
- Added a redo_list* to keep track of any redo items that come over
the message channel from the receiver to the generator.
- The io_flush() and msg_list_push() functions now take an arg:
NORMAL_FLUSH or FULL_FLUSH. The latter ensures that we don't lose
any log messages that haven't gotten written from the msg_list.
- Added a send_msg() function that log.c calls to send any remote
log messages. It is also called to send the new MSG_REDO and
MSG_DONE messages.
2004-01-15 07:42:17 +00:00
Wayne Davison
b9b15fb165
We now call get_redo_num() instead of reading f_recv (which was removed).
2004-01-15 07:42:15 +00:00
Wayne Davison
ef732c3b54
Call io_flush() with its new FULL_FLUSH option.
2004-01-15 07:42:12 +00:00
Wayne Davison
baa4212ae1
If the do_lchown() fails and we weren't trying to change the user,
...
the error now says that chgrp failed, not chown.
2004-01-15 07:08:00 +00:00
Wayne Davison
0be976ec0a
Fixed a bug when a non-root user copies a GID=0 file with -g set
...
and no permissions to set group 0.
2004-01-15 07:06:45 +00:00
Wayne Davison
f7f10340d6
The HAS_INODE_DATA flag is no longer a part of the LIVE_FLAGS define.
2004-01-15 02:25:38 +00:00
Wayne Davison
68f9910d94
Explain the --progress output.
2004-01-13 18:50:40 +00:00
Wayne Davison
fb6e0ea120
Give the user an idea of how far along in the transfer we are
...
when using --progress.
2004-01-13 18:25:03 +00:00
Wayne Davison
97feb557ed
Set stats.current_file_index.
2004-01-13 18:22:43 +00:00
Wayne Davison
dc8293ff73
Added current_file_index.
2004-01-13 18:22:13 +00:00
Wayne Davison
785db4ced0
Merged a couple more f != -1 if sections.
2004-01-13 06:27:30 +00:00
Wayne Davison
5562deb169
Moved a couple externs.
2004-01-13 05:13:57 +00:00
Wayne Davison
983b1ed321
Merged some "if (f != -1)" checks, put the clean_flist() call in the
...
right spot, and moved some externs.
2004-01-13 05:11:56 +00:00
Wayne Davison
548abf96ce
Relocated some externs.
2004-01-13 04:50:45 +00:00
Wayne Davison
f8ebdf9265
More hard-link stuff.
2004-01-12 03:59:53 +00:00
Wayne Davison
aa23c22004
Changed the hard-link check.
2004-01-12 03:50:07 +00:00
Wayne Davison
1d5cda2265
Updated to perform a much more efficient hlink algorithm that doesn't
...
require any binary searching of hlink data.
2004-01-12 03:49:47 +00:00
Wayne Davison
fe70ad26d3
Added F_HEAD and F_NEXT defines.
2004-01-12 03:48:43 +00:00
Wayne Davison
0a00748901
Mention more of the latest changes.
2004-01-11 22:39:34 +00:00
Wayne Davison
03979352b4
More cleanup, fixing an error in the fatal-message strings that tried
...
to output the "filename" value when it might not be initialized.
2004-01-11 22:11:25 +00:00
Wayne Davison
cb7fb45e42
Updated a questioning comment.
2004-01-11 08:17:19 +00:00
Wayne Davison
92cc9dd7c2
Use the new dev+inode union in the flist_struct.
2004-01-11 07:56:14 +00:00
Wayne Davison
88a7fb3edd
Moved the inode & dev items out of the flist_struct. Based on a
...
preliminary patch by J.W.
2004-01-11 07:55:53 +00:00
Wayne Davison
728d092201
Use the new union-ified flist_struct values.
2004-01-11 07:28:45 +00:00
Wayne Davison
80707c983c
Put 3 flist_struct items into a union: rdev, sum, and link (all
...
mutually exclusive based on mode). Based on an idea by J.W.
2004-01-11 07:28:23 +00:00
Wayne Davison
5911fee567
A slightly better reset mechanism for send_file_entry() and
...
receive_file_entry().
2004-01-10 22:13:19 +00:00
Wayne Davison
a09f6f55da
Use the new LIVE_FLAGS define to fix a potential flag problem.
2004-01-10 21:10:04 +00:00
Wayne Davison
caf5cc9152
Added LIVE_FLAGS define.
2004-01-10 21:09:06 +00:00
Wayne Davison
58422e8393
Changed the call to write_batch_csum_info() to the latest syntax.
2004-01-10 20:16:18 +00:00
Wayne Davison
e8d3168e3a
Massive rewrite to replace the file-list read/write code with calls to
...
send_file_entry() and receive_file_entry(). Other cleanups too.
2004-01-10 20:16:13 +00:00
Wayne Davison
7b1a0c19b8
Allow the send_file_entry() and receive_file_entry() routines to be
...
called by the batch processor.
2004-01-10 20:15:55 +00:00
Wayne Davison
536492752b
Support the recent changes in the flist_struct.
2004-01-10 08:39:57 +00:00
Wayne Davison
7c4f063b13
Got rid of tmpsum[].
2004-01-09 18:35:41 +00:00
Wayne Davison
1a62c49d31
Note latest changes.
2004-01-09 18:27:15 +00:00
Wayne Davison
fea4db62bd
- Never allocate a useless sum array for a non-regular flist item.
...
- Don't transmit the sum array for non-regular files (p28 onward).
- Tweaked a couple comments.
2004-01-09 18:19:32 +00:00
Wayne Davison
4499c0eebd
A couple minor code improvements.
2004-01-09 18:10:31 +00:00
Wayne Davison
0c42946536
Added an extra comment.
2004-01-09 16:53:55 +00:00
J.W. Schultz
ab264c9e79
Added a few more devices to the devices.test to hopefully
...
test same, same high and different device numbers.
2004-01-09 14:02:00 +00:00
J.W. Schultz
dd7fb70f6e
Finished the last_* renameing and fixed a cast..
2004-01-09 13:55:56 +00:00
Wayne Davison
30f337c9ef
Updated the send_file_name() and receive_file_entry() functions to make
...
some of the variable names more logical in the new program flow. Also
improved the setting of the new last_rdev value that only remembers the
high 3 bytes.
2004-01-08 22:45:12 +00:00
Wayne Davison
9d35271938
Changed the OLD_SAME_RDEV define to SAME_RDEV_pre28.
2004-01-08 22:45:07 +00:00
Wayne Davison
bbfb1d016b
Added explicit call to AC_PROG_EGREP.
2004-01-08 18:33:38 +00:00
Wayne Davison
c4b4df4fb4
Optimized the sending of dev+inode data for hard-linking support
...
(but only when speaking protocol 28).
2004-01-08 11:29:50 +00:00
Wayne Davison
a6d89d18bf
- Added flags HAS_INODE_DATA and SAME_DEV.
...
- Changed PROTOCOL_VERSION to 28 now.
2004-01-08 11:28:07 +00:00
Wayne Davison
75bc860093
Implemented an extended-flag-byte in the transfer protocol by moving
...
the SAME_RDEV bit into the next 8 bits and adding an EXTENDED_FLAG
bit. Also modified the meaning of this bit for protocol 28 and above:
SAME_HIGH_RDEV indicates that all but the lowest byte matches. The
older protocols get OLD_SAME_RDEV set (with the old semantics) for
compatibility. Note also that protocol 28 isn't turned on yet.
2004-01-08 11:08:30 +00:00
Wayne Davison
02a279a75f
Added EXTENDED_FLAGS and SAME_HIGH_RDEV. Changed SAME_RDEV to OLD_SAME_RDEV.
2004-01-08 11:08:30 +00:00
Wayne Davison
584c7bf76d
Pass the $srcdir/wildtest.txt file on the command-line to wildtest.
2004-01-08 09:00:14 +00:00
Wayne Davison
c4cd2ca6bf
We now take a TESTFILE arg on the command-line.
2004-01-08 08:59:52 +00:00
Wayne Davison
1ef00d2072
Improved the code in send_file_entry() and receive_file_entry() to
...
make it a little easier to read and a little more optimized. Also
made the flag size in our function calls match the size of the flags
in the flist_struct. These changes will make it easier for me to
optimize the sending of the hard-link data in a future commit.
2004-01-08 04:56:27 +00:00
Wayne Davison
4dd4c72790
Made the flags in the file_struct a little smaller.
2004-01-08 04:53:16 +00:00
Wayne Davison
6aae748ea7
- No need to check S_ISREG() on files already in the hlink_list.
...
- The realloc in init_hard_links() might fail if the list is empty
(which can happen if there are no regular files in the transfer).
I changed the code to free the list in that case.
2004-01-08 03:17:07 +00:00
Wayne Davison
aa953c3201
Old-protocols.
2004-01-08 00:47:17 +00:00
Wayne Davison
3f55bd5dad
Got rid of support for protocols 17 and 18.
2004-01-08 00:45:41 +00:00
J.W. Schultz
279b1c1ebb
Noted hardlink memory footprint reduction.
2004-01-07 11:38:23 +00:00
J.W. Schultz
fa45cda1aa
Cosmetic changes to file_compare() for readability and to
...
match hlink_compare()
2004-01-07 09:11:56 +00:00
J.W. Schultz
11dc274054
Change hlink_list so we only have a list of pointers to
...
file_struct instead of a copy of the file_struct list.
2004-01-07 09:06:37 +00:00
Wayne Davison
e7bef92205
Batch-mode fix.
2004-01-06 05:35:55 +00:00
Wayne Davison
4a1991d7c5
Fixed a byte-order problem for batch-file processing on big-endian
...
systems (reported by Jay Fenlason).
2004-01-06 05:33:02 +00:00
Wayne Davison
13aefa1365
Some whitespace tweaks.
2004-01-05 03:57:15 +00:00
Wayne Davison
addf0c4a1c
A few formatting tweaks.
2004-01-05 03:56:19 +00:00
Wayne Davison
25bfc8cea1
Use new recv_generator() calling syntax.
2004-01-04 19:18:37 +00:00
Wayne Davison
dfd5ba6ab7
Changed recv_generator() to take a "struct file_struct *" instead of
...
a "struct file_list *", which allows us to call it with a copy of the
current file_struct entry that we've modified. This is better than
modifying the entry directly because the latter causes the shared
memory between the generator and the receiver to slowly vanish as
the in-memory changes happen.
2004-01-04 18:43:18 +00:00
Wayne Davison
393ba2214d
Try using "id -un" before "whoami" since the latter doesn't exist on
...
SunOS systems (and I hope the former works -- we'll see).
2004-01-04 07:07:08 +00:00
Wayne Davison
f358487f8e
Silence a compiler warning on Sun OS systems.
2004-01-04 07:06:05 +00:00
Wayne Davison
a18381aca6
Improved the text.
2004-01-03 20:50:51 +00:00
Wayne Davison
f6e54812b7
Fixed autom4te*.cache entry.
2004-01-03 19:49:52 +00:00
Wayne Davison
31e7451aa5
Mention more INTERNALS work.
2004-01-03 19:28:17 +00:00
Wayne Davison
0e36d9da42
More variable-size cleanup.
2004-01-03 19:28:03 +00:00
Wayne Davison
da9d12f5d9
Made the types used in the sum_buf and sum_struct structures consistent
...
with the variables in the code that manipulates these values.
2004-01-03 18:37:41 +00:00
J.W. Schultz
a60e2dca6b
Create GID_NONE for use gid test readability.
2004-01-03 13:17:32 +00:00
Wayne Davison
86c4601e12
Fixed a name.
2004-01-03 09:48:52 +00:00
Wayne Davison
173f5bf8cf
Fixed a size check in the new code.
2004-01-03 09:44:20 +00:00
Wayne Davison
823edc686f
Document the latest changes.
2004-01-03 09:36:30 +00:00
Wayne Davison
a3a841073e
Added support for "Basic" authentication to our proxy, based on a
...
patch by Bardur Arantsson.
2004-01-03 09:19:06 +00:00
Wayne Davison
57385128c3
Made base64_encode() non-static.
2004-01-03 08:53:36 +00:00
Wayne Davison
2990e06f29
Silence a compiler warning.
2004-01-03 01:12:10 +00:00
Wayne Davison
2ef2e822d1
Added missing '[]'s to AC_CHECK_FUNCS() calls so that this works
...
with autoconf 2.58 and above.
2004-01-03 00:40:55 +00:00
Wayne Davison
b7736c797c
Some cosmetic tweaks.
2004-01-02 23:41:32 +00:00
Wayne Davison
9b9c8aaf4d
Improved flush_write_file().
2004-01-02 18:42:33 +00:00
Wayne Davison
b0fd253afc
Applied a slightly-tweaked version of Oliver Braun's patch that
...
implements listening on multiple addresses and a fix for IPv6-only
systems.
2004-01-02 18:05:51 +00:00
Wayne Davison
e028b9ff53
Call bind() with the right ai_addr/ai_addrlen info.
2004-01-02 17:47:44 +00:00
Wayne Davison
9c07d25345
Tidied up a few things in preparation for changes.
2004-01-02 17:20:21 +00:00
Wayne Davison
7352b8736b
Moved the is_in_group() function to uidlist.c.
2004-01-02 16:52:29 +00:00
Wayne Davison
5b540e86a4
Set the file's gid to -1 if we don't have permissions to set it.
2004-01-02 16:51:54 +00:00
Wayne Davison
6744b62ddd
Fixed --link-dest's check for identicalness to ignore the uid if
...
non-root, and to ignore a gid of -1.
2004-01-02 16:50:06 +00:00
Wayne Davison
e90b8acec3
Silence some compiler warnings.
2004-01-02 08:50:25 +00:00
Wayne Davison
925c517f19
Improved the setting of cleanup_got_literal so that we know if the
...
current file received some literal data yet or not.
2004-01-02 08:38:35 +00:00
Wayne Davison
cc964a518c
Use the new f_name_to() call instead of strlcat() an f_name().
2004-01-02 08:36:58 +00:00
Wayne Davison
3309507dd3
Some minor changes to some if statements.
2004-01-02 08:33:57 +00:00
Wayne Davison
5e7dbaca50
Use buffered I/O to read the exclude list.
2004-01-02 08:31:12 +00:00
Wayne Davison
76c2194714
Applying my updated version of Craig Barratt's buffered I/O patch.
2004-01-02 08:29:49 +00:00
Wayne Davison
968c8030cf
Some name tweaks.
2004-01-02 08:19:26 +00:00
Wayne Davison
446e239e2c
Use the f_name_to() function to avoid having to strdup() the name that
...
f_name() returns. Also used in a call to recv_generator() to keep the
name safe for the duration of the call.
2004-01-02 08:18:53 +00:00
Wayne Davison
e7bc9b64a3
Use f_name_to() when producing a name for the recv_generator() call.
...
This prevents things like the hard-link code from losing the name
before we're finished with it.
2004-01-02 08:05:20 +00:00
Wayne Davison
8018edd3aa
Optimized f_name(), generating: (1) f_name_cmp(), which optimizes
...
comparing two file_struct elements without copying them first, and
(2) f_name_to() which lets us supply the destination buffer for a
f_name() call (to allow it to persist without an extra copy).
2004-01-02 07:57:02 +00:00
Wayne Davison
64c3523a6f
Got rid of /* dw */ comments.
2004-01-02 07:42:20 +00:00
Wayne Davison
310c9f30f0
Optimized hard_link_one() to not call f_name() so many times.
2004-01-02 07:34:49 +00:00
Wayne Davison
5c1b7bfd2a
No need to conditionally-compile EINTR code -- no other files do this.
2004-01-02 07:31:02 +00:00
Wayne Davison
faf11086d8
More twiddling of the wildcard verbage.
2004-01-02 07:11:32 +00:00
Wayne Davison
52fa4d7893
Improved the itemized discussion under the wildcard changes.
2004-01-01 22:37:13 +00:00
Wayne Davison
de0551020b
Allow function return values to start with "const".
2004-01-01 21:10:50 +00:00
Wayne Davison
c1456d83a7
Tweaked the date.
2004-01-01 19:00:11 +00:00
Wayne Davison
1cbbaea957
Preparing for release of 2.6.0
2004-01-01 11:36:16 +00:00
Wayne Davison
f6aeaa74d1
One more tweak to --modify-window verbage.
2003-12-30 18:17:16 +00:00
Wayne Davison
6839140eb5
Shorten some of the lines in the --help output.
2003-12-30 18:16:25 +00:00
Wayne Davison
915dd20705
Shortened a few lines, plus a couple minor tweaks.
2003-12-30 17:44:01 +00:00
Wayne Davison
c53217a2b8
Changed the VERSION section to refer to 2.x instead of 2.0.
2003-12-29 09:58:06 +00:00
Wayne Davison
b2ac00eb16
Preparing for release of 2.6.0pre2
2003-12-28 21:11:38 +00:00
Wayne Davison
45ddbf6204
Make the upper copyright year "2004".
2003-12-28 20:48:06 +00:00
Wayne Davison
276877cf77
Aged news from NEWS to OLDNEWS.
2003-12-27 00:14:21 +00:00
Wayne Davison
6b45fcf160
Undid previous change.
2003-12-26 23:04:01 +00:00
Wayne Davison
49c24eccd4
A change that wasn't needed.
2003-12-26 22:59:53 +00:00
Wayne Davison
0d7d3763f2
Use %{version} to refer to the current version.
2003-12-24 17:48:25 +00:00
Wayne Davison
241dc65eee
Getting rid of klunky *.tmpl files.
2003-12-24 17:46:46 +00:00
Wayne Davison
860bdd4571
Mention the new-backup-dir mode change.
2003-12-24 01:46:38 +00:00
Wayne Davison
55bf051bbc
Getting rid of an extra newline that accidentally crept into the code.
2003-12-24 01:46:07 +00:00
Wayne Davison
423dba8ea1
Simplified an internal function's name to remove a potentially
...
cryptic suffix.
2003-12-24 01:14:16 +00:00
Wayne Davison
517c7b4dee
Updated the copyright year.
2003-12-20 18:00:13 +00:00
Wayne Davison
18ced14631
Output a warning about the new remote-shell default if the --with-rsh
...
option wasn't used.
2003-12-20 17:57:47 +00:00
Wayne Davison
ce67256218
Output a newline before the heap statistics.
2003-12-20 16:57:24 +00:00
Wayne Davison
9e83fa99fe
- Mention the extra newlines in the verbose/stats output.
...
- Made some spelling corrections.
2003-12-20 16:56:51 +00:00
Wayne Davison
256a9e376c
Added a couple missing items from John Van Essen.
2003-12-20 16:51:13 +00:00
Wayne Davison
ef5075e092
Quiet a compiler warning.
2003-12-19 22:19:54 +00:00
Wayne Davison
65653a6596
Mention the change we made to help ssh cleanup the tty on Ctrl-C.
2003-12-19 20:21:17 +00:00
Wayne Davison
d5a0b48379
Do a small msleep() in the sig_int() handler before shutting down.
...
This kluge allows things like SIGINT to find our children before
we go throwing around SIGUSR1's at them.
2003-12-19 06:52:02 +00:00
Wayne Davison
314a74d731
Got rid of the RSYNC_RSH_IO stuff for now.
2003-12-17 09:29:35 +00:00
Wayne Davison
90e22f4b51
Backed out the RSYNC_RSH_IO support for now.
2003-12-17 09:28:45 +00:00
J.W. Schultz
ab304c268c
Removed hardlink reporting bug from TODO list -- seems to be
...
fixed.
2003-12-17 00:52:01 +00:00
J.W. Schultz
16a3fec02d
Added keword base reporting to TODO features list.
2003-12-17 00:49:50 +00:00
J.W. Schultz
abb0b532f8
Reorganized and cleaned up TODO list.
2003-12-17 00:47:39 +00:00
Wayne Davison
43cd760fc1
- Changed the places that talked about rsh being the default shell.
...
- Document the new RSYNC_RSH_IO environment variable.
2003-12-16 23:07:19 +00:00
Wayne Davison
9af87151ec
We now support an environment variable named RSYNC_RSH_IO which lets the
...
user set the blocking-IO value for the shell specified by RSYNC_RSH.
2003-12-16 23:06:25 +00:00
Wayne Davison
8dd99390f5
Added RSYNC_RSH_IO_ENV.
2003-12-16 23:04:59 +00:00
Wayne Davison
e636af6b23
Mention change to ssh.
2003-12-16 19:48:25 +00:00
Wayne Davison
e3217f1448
Tweaked an obsolete comment.
2003-12-16 18:02:15 +00:00
Wayne Davison
66b711633f
Improved the default-blocking-I/O code to discern rsh from ssh
...
properly.
2003-12-16 18:02:03 +00:00
Wayne Davison
f40f2fc8ce
Made the default remote-shell be "ssh" (override with --with-rsh=FOO).
2003-12-16 18:01:06 +00:00
Wayne Davison
e6f9e388cf
Moved the information on the single-use ssh key so that the --server
...
option wasn't being mentioned early in the rsync manpage (which has
confused at least one user trying to figure out the --daemon mode
command-line syntax).
2003-12-15 20:10:21 +00:00
Wayne Davison
3c1e2ad956
Document new error code 24.
2003-12-15 19:49:38 +00:00
Wayne Davison
e6d2799170
Updated version.
2003-12-15 19:04:04 +00:00
Wayne Davison
2cfbf4bc0e
Changed the version to 2.6.0pre1.
2003-12-15 19:00:20 +00:00
Wayne Davison
f7731f1fc2
Removed some obsolete items.
2003-12-15 18:45:27 +00:00
Wayne Davison
7d3f8ae2df
Make sure we only use blocking-I/O if blocking_io is > 0.
2003-12-15 18:45:07 +00:00
Wayne Davison
a60fdd63f4
Changed version to 2.6.0.
2003-12-15 18:25:10 +00:00
Wayne Davison
3a7dec59bc
Changed version to 2.6.0 in preparation for new release.
2003-12-15 18:22:12 +00:00
Wayne Davison
880ae34190
Got rid of setgroups() caveat for OSX -- we fixed that a while back.
2003-12-15 18:20:06 +00:00
Wayne Davison
d00daf1f3f
Mentioned the vanished-file warning enhancement.
2003-12-15 08:44:55 +00:00
Wayne Davison
17fadf7d40
Twiddled some whitespace and multi-line comments.
2003-12-15 08:14:27 +00:00
Wayne Davison
06c28400fa
New "io_error" variable handling for RERR_VANISHED support.
2003-12-15 08:10:31 +00:00
Wayne Davison
6e35c72fdb
Return new RERR_VANISHED code, as appropriate.
2003-12-15 08:08:44 +00:00
Wayne Davison
e2d22fee53
Added new IOERR_* defines.
2003-12-15 08:07:38 +00:00
Wayne Davison
1bca1de6cc
Handle new RERR_VANISHED error.
2003-12-15 08:06:52 +00:00
Wayne Davison
e0ed4e4087
Added RERR_VANISHED.
2003-12-15 08:04:14 +00:00
Wayne Davison
4a7319be12
Neatened up some whitespace issues and made multi-line comments more
...
consistent.
2003-12-15 01:45:01 +00:00
Wayne Davison
55d5937dd6
Simplified the setting of the reading_remotely variable in function
...
read_filesfrom_line() now that remote_filesfrom_file is set more
often.
2003-12-15 00:54:44 +00:00
Wayne Davison
63596e1c4a
If we're the server and --files-from is "-", set remote_filesfrom_file
...
to "-" as well (since the data is coming over the socket from the remote
side).
2003-12-15 00:53:07 +00:00
Wayne Davison
603e6b05c7
Neatened up the indentation.
2003-12-12 17:13:22 +00:00
J.W. Schultz
dfad66a838
Sanity check s2length on recept.
2003-12-06 21:35:34 +00:00
Wayne Davison
58cadc8608
Merged in the security fixes from 2.5.7.
2003-12-06 21:07:27 +00:00
J.W. Schultz
b11b50bcd0
Added reminder to update rsync.yo manpage when adding to
...
exit codes.
2003-10-25 20:02:45 +00:00
Wayne Davison
a73de5f3ba
Added exit code 0.
2003-10-25 17:53:57 +00:00
Wayne Davison
84c3645cea
Updated exit codes as Jon Jensen and J.W. suggested.
2003-10-25 16:21:41 +00:00
Wayne Davison
2a88a8cd30
Fixed an operator-precedence problem in the batch-mode code.
2003-10-13 23:46:08 +00:00
Wayne Davison
8a97fc2e1b
Tried to improve the documentation surrounding a trailing-slash
...
source-dir transfer.
2003-10-07 20:33:08 +00:00
Wayne Davison
7a2fd68b96
Tweaked the just-added error message to use my new full_fname()
...
function. Also removed some trailing whitespace from lines.
2003-09-16 05:33:09 +00:00
J.W. Schultz
6a7cc46cb2
Detect and report when open or opendir succeed but read and
...
readdir fail caused by network filesystems issues and
truncated files.
Thanks to David Norwood and Michael Brown
2003-09-16 02:49:59 +00:00
Wayne Davison
aa6dc37ccb
Mention my recent changes.
2003-09-11 05:00:52 +00:00
Wayne Davison
ea42541fe0
Improved file-related error messages by using the new
...
full_fname() function.
2003-09-11 04:53:05 +00:00
Wayne Davison
b7b2741f3a
Tweaked an error message.
2003-09-11 04:53:01 +00:00
Wayne Davison
eb61be192d
Added a new function, full_fname(), that makes a filename more complete
...
for error messages. If the path is in a module, we ensure that the
"path" setting (from the config file) is not revealed, while still
reminding the user that the path is relative to the module's root.
2003-09-11 04:48:15 +00:00
Wayne Davison
9b9114e8cd
Include a few new stubs to handle the new full_fname() function.
2003-09-11 04:48:13 +00:00
Wayne Davison
857e38bb45
Got rid of some "/* dw */" comments and fixed some line's indentation.
2003-09-11 04:48:09 +00:00
Wayne Davison
4ea812445d
Got rid of some "/* dw */" comments.
2003-09-11 04:48:07 +00:00
Wayne Davison
e80a765412
If lp_path() returns "/", set exclude_path_prefix to "" (because the
...
exclude code doesn't want any trailing slashes).
2003-09-11 04:00:19 +00:00
Wayne Davison
15089022d4
Make sure that the new slash-stripping P_PATH code doesn't turn
...
a "/" into an empty string.
2003-09-11 03:49:53 +00:00
Wayne Davison
f69204adad
Changed main() definition to avoid an extra prototype being put
...
into the proto.h file.
2003-09-10 08:27:34 +00:00
Wayne Davison
459a83c9cc
Make sure that the "path" value has any trailing slashes removed.
2003-09-10 08:08:14 +00:00
Wayne Davison
6464bdbe13
Got rid of trailing whitespace.
2003-09-10 07:31:58 +00:00
Wayne Davison
4f3e9a0fba
Added the new --protocol option.
2003-09-09 15:58:56 +00:00
Wayne Davison
8a9709dee5
Changed most instances of "remote_version" to "protocol_version", and
...
others to "remote_protocol". Downgrade the protocol_version if the
remote_protocol" is lower. Output the protocol values if the verbose
level is large enough. Exit if the user tried to force a protocol
value that is not within the range that we can handle. Fixed the
output of the "very old version of rsync" message to output the right
Client/Server string.
2003-09-09 15:58:53 +00:00
Wayne Davison
daa598df11
Changed most instances of "remote_version" to "protocol_version", and
...
others to "remote_protocol". Downgrade the protocol_version if the
remote_protocol is lower.
2003-09-09 15:58:50 +00:00
Wayne Davison
d04e9c51b4
Changed "remote_version" to "protocol_version".
2003-09-09 15:58:48 +00:00
J.W. Schultz
d89a3a313a
*** empty log message ***
2003-09-04 05:54:20 +00:00
J.W. Schultz
350e4e4dec
Allow non-dir special files to be replaced with regular
...
files and fix error that caused directories in link-dest or
compare-dest to prevent the creation of files of same path.
2003-09-04 05:49:50 +00:00
Wayne Davison
c95dcb3935
Cast various s->blength references inside of MIN() macros to OFF_T
...
so that compilers don't warn about signed/unsigned comparisons.
2003-08-22 21:26:08 +00:00
Wayne Davison
1e4f48d6c4
Whitespace tweaks.
2003-08-22 05:51:42 +00:00
Wayne Davison
fb55e28d83
Fixed the multiplying of blength*blength so that it can't overflow
...
before it gets cast to a uint64.
2003-08-22 05:42:13 +00:00
Wayne Davison
067669dac7
Made the UNUSED(parameter) macro calls read a little nicer.
2003-08-22 05:04:13 +00:00
Wayne Davison
24c906d3f7
Mark unused vars.
2003-08-22 00:31:46 +00:00
Wayne Davison
14820f635d
Make extra backup dirs mode 0700, not 0755.
2003-08-22 00:30:46 +00:00
Wayne Davison
59192f5650
Got rid of a duplicate include for malloc.h and improved the "do we
...
need malloc.h" logic a bit more. (Trying to prevent #warning and
#error problems on *BSD systems.)
2003-08-21 23:54:20 +00:00
Wayne Davison
365346ca30
Got rid of signed/unsigned-comparison warning if st_rdev is signed.
2003-08-21 23:46:10 +00:00
Wayne Davison
d01350a881
Got rid of signed/unsigned-comparison warning if st_dev is signed.
2003-08-21 23:45:49 +00:00
Wayne Davison
38b02c13d0
Let's try only including malloc.h if stdlib.h isn't around (and it
...
exists).
2003-08-21 23:32:35 +00:00
Wayne Davison
b017ec4e13
Silenced a couple compiler warnings.
2003-08-21 23:28:24 +00:00
Wayne Davison
2c873122b3
Mention some more bug fixes.
2003-08-20 23:36:45 +00:00
Wayne Davison
6969ebcfcf
Call setgroups(1, &gid) after setting the gid (rather than calling
...
setgroups(0, NULL) before).
2003-08-20 23:25:52 +00:00
Wayne Davison
1dbb94cadf
Use the AVAIL_OUT_SIZE() macro in a few more places to ensure
...
that the avail_out buffer is big enough to uncompress all the
compressed data.
2003-08-20 10:37:53 +00:00
Wayne Davison
8a78bb963d
Fixed a couple option-name typos (that had '_' instead of '-').
2003-08-18 23:52:43 +00:00
Wayne Davison
6931c13800
- Made special exclusion-handling of '.' work in -R mode (so that we
...
can't accidentally lose the '.' dir and not transfer anything at all).
- Add a trailing '.' onto all '/'-trailing names, even '/' (fixes
skipped deletions in -R mode from '/').
- Fixed loss of FLAG_DELETE on user-specified dir when unduplicating '.'
(could happen on "./." or similar).
2003-08-17 21:29:11 +00:00
J.W. Schultz
e6e3f12ffc
Whitespace and indentation cleanup. There is a lot of deep
...
indentation mostly due to read_batch but at least it is now
consistant.
2003-08-15 00:57:27 +00:00
J.W. Schultz
e2559dbedc
Make --progress imply --verbose without incrementing verbosity.
2003-08-06 06:45:14 +00:00
Wayne Davison
1f3d6cdd86
Got rid of unused OPT_* enums.
2003-08-05 17:56:54 +00:00
Wayne Davison
4a7ee79d4d
Improved the mkstemp error message.
2003-08-04 21:03:07 +00:00
Wayne Davison
0c2ef5f42d
Make sure that the error message for mkstemp() includes the full
...
path of where we're trying to create the temp file.
2003-08-04 21:00:57 +00:00
Wayne Davison
ca20c7fd62
Instead of ignoring SIG_CHLD, reap zombies in the signal handler.
2003-08-04 18:27:27 +00:00
Wayne Davison
191e40da17
Change the way we pass the --suffix option to the remote process so
...
that a string that starts with ~ doesn't get modified.
2003-08-01 20:19:51 +00:00
Wayne Davison
80ddadb7e8
Complain if the --suffix value contains slashes (which is all too easy
...
to accidentally have happen if you try to specify "~" with --backup-dir).
2003-08-01 19:40:31 +00:00
Wayne Davison
31f3b68a97
We should bump the deletion_count for backed-up deleted files too.
2003-08-01 08:20:53 +00:00
Wayne Davison
d594399c6a
Mention the --backup fix.
2003-08-01 08:01:15 +00:00
Wayne Davison
d74a2e3ed5
Properly handle the backup_suffix/backup_dir settings when deleting
...
files. Also optimized the code that calls delete_one(). Don't
neglect to mention a file being deleted with --backup set.
2003-08-01 07:58:47 +00:00
Wayne Davison
d175d7e13e
Got rid of suffix_specified and instead set backup_suffix to the
...
correct default value for the current backup_dir mode. Added two
new values: backup_suffix_len and backup_dir_len. Improved some
error-message code to not output duplicate errors.
2003-08-01 07:58:44 +00:00
Wayne Davison
daa8ce838b
Use the new backup_suffix_len and backup_dir_len variables. Got rid
...
of the suffix_specified kludge.
2003-08-01 07:58:41 +00:00
Wayne Davison
b19fd07c02
Clarify some --backup/--backup-dir/--suffix issues.
2003-08-01 00:50:23 +00:00
J.W. Schultz
47d6a60c2f
Whitespace and indentation fixes.
2003-07-31 09:32:15 +00:00
Wayne Davison
980821ebab
No longer needed (replaced by wildmatch).
2003-07-30 06:13:47 +00:00
Wayne Davison
592f4696dc
Updated the exclude/include section to mention the "**" vs "*" change.
2003-07-30 06:12:41 +00:00
Wayne Davison
8a7846f97e
Changed the "**" description to reflect its no-longer-buggy behavior.
2003-07-30 06:12:33 +00:00
Wayne Davison
87f18b6289
Include "lib/wildmatch.h", not "lib/fnmatch.h" or <fnmatch.h>.
2003-07-30 06:12:31 +00:00
Wayne Davison
28063ba5b2
Got rid of test for fnmatch.
2003-07-30 06:12:29 +00:00
Wayne Davison
fe332038c6
Call wildmatch(), not fnmatch().
2003-07-30 06:12:27 +00:00
Wayne Davison
3c0b1ebf78
Changed lib/fnmatch.o to lib/wildmatch.o.
2003-07-30 06:12:25 +00:00
Wayne Davison
f2fe4903c9
Made the list of exclude/include changes more prominent and clear.
2003-07-26 18:13:38 +00:00
Wayne Davison
3151cbae89
Some superficial tweaks I made while reading through the io.c code.
2003-07-26 17:55:07 +00:00
Wayne Davison
3c30b99059
Added one more test.
2003-07-14 15:46:34 +00:00
Wayne Davison
a7735ba085
Updated for latest character-class change.
2003-07-14 15:13:31 +00:00
Wayne Davison
d811b68901
Make sure that no character class can match a '/'.
2003-07-14 15:12:59 +00:00
Wayne Davison
1c8162a921
Optimized show_progress() to reduce the calls to gettimeofday() when
...
am_server is set. No need to check do_progress here anymore, since
we aren't called if do_progress isn't set.
2003-07-08 16:54:53 +00:00
Wayne Davison
16417f8b9d
Only call show_progress() and end_progress() if do_progress is set.
2003-07-08 16:49:10 +00:00
Wayne Davison
b49d381d05
Changed "./0123456789" to just ".0123456789".
2003-07-07 19:37:58 +00:00
Wayne Davison
7da9a16d10
I decided to go with the slightly simpler logic Thorild Selen suggested
...
in a subsequent email.
2003-07-07 18:37:38 +00:00
Wayne Davison
32f60a6e7b
Improved deficiencies in the hostname-vs-address check (reintroduced in the
...
last revision) based on the suggestions of Thorild Selen.
2003-07-07 18:25:01 +00:00
Wayne Davison
b7db090661
Commented-out a test that wasn't consistent across all platforms.
2003-07-07 07:28:02 +00:00
Wayne Davison
136c5c5ec3
Silence some compiler warnings on HP-UX.
2003-07-07 07:22:08 +00:00
Wayne Davison
85b80fbc73
A few more tests.
2003-07-07 07:10:40 +00:00
Wayne Davison
16859cdbdc
Improved the summary output to use correct English for all counts.
2003-07-07 07:08:24 +00:00
Wayne Davison
fc96552d26
Don't treat "[:" as the start of a named set if there's no ":]".
2003-07-07 07:07:16 +00:00
Wayne Davison
15bb997d0a
Added a few more items to the tests.
2003-07-06 18:54:08 +00:00
Wayne Davison
b6b42c892c
Improve the format of the --iterations output.
2003-07-06 18:29:24 +00:00
Wayne Davison
5bb920003e
- Return ABORT_ALL for a syntax error in the pattern (not FALSE).
...
- Abort if the [:class:] name is not known.
2003-07-06 18:26:34 +00:00
Wayne Davison
37ff0e344d
Added match for new "no errors" line from wildtest.
2003-07-06 17:41:37 +00:00
Wayne Davison
97d53f8c75
Switch to using an input file so that backslashes are specified
...
normally, and so that test additions and changes are easier.
2003-07-06 17:41:01 +00:00
Wayne Davison
f2ac84c36d
Added some portability code for the ctype functions.
2003-07-06 16:29:32 +00:00
Wayne Davison
c21eeef5bc
Updated for latest wildmatch.c changes.
2003-07-06 04:34:19 +00:00
Wayne Davison
e11c425119
- Added [:class:] handling to the character-class code.
...
- Use explicit unsigned characters for proper set checks.
- Made the character-class code honor backslash escapes.
- Accept '^' as a class-negation character in addition to '!'.
2003-07-06 04:33:54 +00:00
Wayne Davison
84229c7ac9
We now figure out if diff accepts -u and we'll use it instead of -c,
...
if possible.
2003-07-05 22:57:08 +00:00
Wayne Davison
c9a59880f0
Simplified the character-class code a bit.
2003-07-05 22:40:27 +00:00
Wayne Davison
9a17dddbc5
Fixed the output of popt errors and changed our one option to be
...
--iterations (-i).
2003-07-05 19:21:41 +00:00
Wayne Davison
277d99e8c9
A wildtest change to handle someone using the included popt lib.
2003-07-05 19:14:10 +00:00
Wayne Davison
2a1874cc82
Added dependencies for wildtest.o.
2003-07-05 19:06:49 +00:00
Wayne Davison
d5c973ccb7
Changed some names since "depth" wasn't really the right term.
2003-07-05 19:03:42 +00:00
Wayne Davison
37f3ce61bb
Another change to the wildtest rule to make it more portable.
2003-07-05 18:55:09 +00:00
Wayne Davison
076f60eed0
Added a --depth option to report recursion depth values.
2003-07-05 18:49:38 +00:00
Wayne Davison
20b2e9cef7
Improved the ABORT logic to allow aborting consecutive "*" wildcards
...
back to a "**" wildcard. Added optional debug code for recursion stats.
2003-07-05 18:48:34 +00:00
Wayne Davison
e37d8229f5
Changed the build rule for wildtest.
2003-07-05 18:46:02 +00:00
Wayne Davison
710faea9a4
Added in the ABORT optimization logic from a newer wildmat release,
...
adapted for our code that distinguishes "**" from "*".
2003-07-05 17:30:53 +00:00
Wayne Davison
70a6051cf1
Restored an isdigit() check in the match_address() function, but check
...
the last character in the hostname, not the first.
2003-07-05 07:39:57 +00:00
Wayne Davison
7a1f46b6ac
A couple comment tweaks.
2003-07-05 07:22:13 +00:00
Wayne Davison
7ca9250db0
Changed "diff -u" back to "diff -c" (for portability).
2003-07-05 07:09:31 +00:00
Wayne Davison
af7086c63f
Change most SAME-AS-FNMATCH "false" values to "true" (since we _should_
...
work the same as fnmatch in most cases, if fnmatch was actually working
right).
2003-07-05 07:03:56 +00:00
Wayne Davison
8808589277
Get rid of a couple compiler warnings.
2003-07-05 06:56:16 +00:00
Wayne Davison
6cd5096063
Don't define COMPARE_WITH_FNMATCH by default.
2003-07-05 06:53:41 +00:00
Wayne Davison
677cd34acd
Include lib/wildmatch.h directly for now (until we make rsync.h include
...
it for us).
2003-07-05 00:13:38 +00:00
Wayne Davison
08c5385e65
Test the new wildmatch() routine using the wildtest executable.
2003-07-05 00:08:11 +00:00
Wayne Davison
d7bf70f196
Build "wildtest" for "make check".
2003-07-05 00:07:35 +00:00
Wayne Davison
6f3cff41dd
Ignore "wildtest".
2003-07-05 00:05:33 +00:00
Wayne Davison
5de45bcadc
A testbed to stress the new wildmatch() routine.
2003-07-05 00:05:02 +00:00
Wayne Davison
446ee5b110
A new wildcard-matching routine to replace the fnmatch code.
2003-07-05 00:03:36 +00:00
Wayne Davison
d3e6fd3910
Changed "diff -c" to "diff -u".
2003-07-04 23:56:59 +00:00
Wayne Davison
6813fa7eac
Attempting to fix the snprintf() conflict on a gcc-using HPUX 11.11.
2003-07-04 15:36:39 +00:00
Wayne Davison
0f5a04e3ff
Use "return" at the end of main() to silence some compilers.
2003-07-04 15:11:46 +00:00
Wayne Davison
8801138b47
Made rprintf() of size_t value portable.
2003-07-04 15:11:44 +00:00
Wayne Davison
2473391971
Improved upon my last patch to make it clearer and cleaner.
2003-07-04 07:47:09 +00:00
Wayne Davison
7d6879328a
Changed the syntax of a comment.
2003-07-03 18:33:53 +00:00
Wayne Davison
900454132e
Mention the compression (-z) fix.
2003-07-03 17:41:08 +00:00
Wayne Davison
92b8abfe80
Fixed a problem where we might not have enough room to compress
...
unsent tokens into the obuf in a single call.
2003-07-03 17:38:12 +00:00
Wayne Davison
52e628a861
Mention the exclude changes.
2003-07-01 22:01:48 +00:00
Wayne Davison
4791825d49
Modified the glob_expand_one() function to check the args against the
...
server's config-specified exclude list. This prevents the user from
going around directory exclusions. Fixed push_dir() to not append
"/." onto the end of the current path if it is called with "." as the
"dir" arg. Made curr_dir[] exported so the exclude code can use it
(for the daemon-config absolute-path excludes).
2003-07-01 21:45:31 +00:00
Wayne Davison
d542c20c5f
New stubs to get the test setup to compile with the exclude changes.
2003-07-01 21:45:29 +00:00
Wayne Davison
4762db4fc9
Added some defines for the various exclude-function arg literals.
...
Added MATCHFLG_ABS_PATH flag for absolute-path patterns.
2003-07-01 21:45:27 +00:00
Wayne Davison
8645af1d8c
Changed add_exclude*() calls to use the revised arg syntax.
2003-07-01 21:45:23 +00:00
Wayne Davison
429f98283f
Modifications to handle the new server_exclude_list, and to use the
...
revised calling syntax and new defines for the various exclude
functions.
2003-07-01 21:45:18 +00:00
Wayne Davison
5be7fa93fc
Made make_exclude() store anchored config-file excludes with the full
...
path (clear to the root). Changed several functions to make the args
more general (to support separated lists), more consistent, and easier
to understand.
2003-07-01 21:45:16 +00:00
Wayne Davison
837cbad97f
We now put the excludes from the config file into a "server_exclude_list"
...
using the revised add_exclude_line() arg syntax.
2003-07-01 21:45:13 +00:00
Wayne Davison
af1d91c562
Call make_file() using the revised arg syntax and new defines.
2003-07-01 21:45:07 +00:00
Martin Pool
908f5a9f9f
Add a comment about using getpassphrase() or readpassphrase() rather
...
than getpass(). No code change.
2003-06-17 04:46:32 +00:00
J.W. Schultz
9b74643315
Credit where due.
2003-06-10 00:21:34 +00:00
J.W. Schultz
986066873e
Clarified EXCLUDE PATTERNS to enforce the relativity of
...
paths. Replaced undefined "base dir" with a defined "top
dir".
2003-06-10 00:11:24 +00:00
J.W. Schultz
9533e15a79
Changed write file to cope with partial writes by looping
...
until complete or errno is set.
(John Van Essen)
2003-05-22 23:24:44 +00:00
Wayne Davison
8dc74608a3
Updated the long description for the --perms option.
2003-05-16 04:23:34 +00:00
J.W. Schultz
3e85237e5f
Added AIX and OSX build workaround notes.
2003-05-14 12:54:15 +00:00
Wayne Davison
9d0523ef4c
Another MD4 fix for protocol 27 (from Christoph Bartelmus).
2003-05-12 20:38:07 +00:00
Wayne Davison
4a7144ee7e
Cleaned up whitespace/indentation.
2003-05-10 08:33:08 +00:00
Wayne Davison
c120ff37f5
Optimized away 3 calls to strcmp().
2003-05-10 00:56:08 +00:00
J.W. Schultz
83fd337d8e
Modified the (in|ex)clude [from] option descriptions to
...
better highlight the non-equivalence with client-side
--exclude.
2003-05-09 12:04:24 +00:00
Jos Backus
707c1a3085
Remove generated file config.log.
2003-05-04 19:59:47 +00:00
J.W. Schultz
8294b00c11
Added --link-dest to the --help output.
2003-05-02 23:36:10 +00:00
Wayne Davison
da2bcdd1c2
Exclude/include bug fixes.
2003-05-01 19:39:20 +00:00
Wayne Davison
093acc5dad
Changed the expected results to match the new bug-fixed behavior.
2003-05-01 19:34:01 +00:00
Wayne Davison
fd73b94d31
Tweaked the exclude_struct for our improved matching code.
2003-05-01 19:33:59 +00:00
Wayne Davison
38499c1a49
Mention that a pattern with "**" is matched against the entire path, even
...
if the pattern doesn't contain a slash.
2003-05-01 19:33:57 +00:00
Wayne Davison
170381c052
Fixed some matching bugs; made the logic of the matching code a little
...
clearer by using defined flags; added several comments; optimized the
matching of an anchored literal string.
2003-05-01 19:33:54 +00:00
Wayne Davison
8113a033dd
Mention the improved trailing-slash-in-destination handling.
2003-04-24 16:26:53 +00:00
Wayne Davison
87cc45e136
Made my last change a little better.
2003-04-24 16:26:09 +00:00
Wayne Davison
f6b8d591f7
If the user specifies a trailing slash on the destination, make sure
...
that we treat it as a directory reference.
2003-04-24 16:14:33 +00:00
J.W. Schultz
d31c09c872
Copy relative path caviat from --compare-dest to
...
--link-dest.
2003-04-23 23:17:41 +00:00
Wayne Davison
337a1a86a7
Changed one part of the exclude-test setup to test the --existing
...
option. Also tweaked a few comment lines.
2003-04-23 02:15:59 +00:00
Wayne Davison
b7dc46c0f6
Fixed a typo and added a couple clarifying phrases to the exclude
...
descriptions.
2003-04-22 18:09:22 +00:00
Wayne Davison
ff57065957
Test various exclude/include patterns.
2003-04-22 17:53:53 +00:00
Wayne Davison
0406a3a7a4
Changed test_xfail to test_fail.
2003-04-22 16:45:24 +00:00
Wayne Davison
bc3b5b2558
Fixed a problem with the test code and enabled it (since rsync's
...
duplicate-elimination code is now fixed).
2003-04-22 00:25:05 +00:00
J.W. Schultz
d1cce1dd92
Make explicit that (in|ex)clude patterns are for relative
...
paths and that the leading / is the equivalent of ^ in
regex.
2003-04-21 08:44:25 +00:00
Wayne Davison
7bb7058e8d
Made a slight tweak to the previous --stats change.
2003-04-18 20:03:41 +00:00
Wayne Davison
727fa3688f
Mention the change to the --stats output.
2003-04-17 23:46:01 +00:00
Wayne Davison
577ab12ce5
Only display the malloc stats if we're at least double-verbose (and
...
--stats was specified, of course). Also made the output of the short
(2-line) transfer summary get prefixed with an empty line in all
cases (not just with --stats).
2003-04-17 23:44:25 +00:00
Wayne Davison
0f2ac85576
Some whitespace/indentation cleanup.
2003-04-17 01:44:33 +00:00
J.W. Schultz
fab1f8898e
document bug fix for --link-dest and lack of -pgo.
2003-04-11 03:15:53 +00:00
restrict
f63d68be97
(Really mbp)
...
Test commit from restricted CVS account. No changes.
2003-04-10 04:35:12 +00:00
Wayne Davison
58665d23b4
Fixed a weird line corruption in the last check-in and tweaked the
...
format to be the same as in older releases.
2003-04-10 03:06:28 +00:00
J.W. Schultz
195bd906a2
- Per-file dynamic block size is now sqrt(file length).
...
- The per-file checksum size is determined according
to an algorythm provided by Donovan Baarda which
reduces the probability of rsync algorithm
corrupting data and falling back using the whole md4
checksums.
2003-04-10 02:04:58 +00:00
J.W. Schultz
fc1ae6582f
- for protocol version >= 27, mdfour_tail() is called when the block size
...
(including checksum_seed) is a multiple of 64. Previously it was not
called, giving the wrong MD4 checksum.
- for protocol version >= 27, a 64 bit bit counter is used in mdfour.c as
required by the RFC. Previously only a 32 bit bit counter was used,
causing incorrect MD4 file checksums for file sizes >= 512MB - 4.
-- Craig Barratt
2003-04-10 01:50:12 +00:00
J.W. Schultz
fc0257c9fd
Now support dynamic per-file checksum2 size.
...
This pushes protocol version to 27
2003-04-10 01:13:30 +00:00
J.W. Schultz
91c4da3fda
versions prior to 1.7.0 (protcol version 17) cannot talk to
...
protocol versions > 20 so bumping up the minimum protocol
version and excising the pre-17 cruft.
2003-04-10 00:13:48 +00:00
Paul Green
990ff150ef
Fix bug reported by engard.ferenc at innomed.hu whereby using the %f format
...
in sprintf with a value like 0.025 produced 0.250. We were dropping the
leading zeros before the fractional digits.
2003-04-09 21:10:18 +00:00
J.W. Schultz
e72b18a9bd
Remove tempname length problem and files-from from TODO.
2003-04-01 03:44:50 +00:00
J.W. Schultz
bc63ae3f13
Removing vestigial support for protocol versions prior to 15.
2003-03-31 17:28:34 +00:00
J.W. Schultz
6e12886393
Logic error in preserve_perms + link_dest
2003-03-31 08:09:41 +00:00
Wayne Davison
b5ca91ae4b
Fixed a typo.
2003-03-30 23:19:22 +00:00
Wayne Davison
89855e78ab
Started a new section for the next release.
2003-03-30 23:15:01 +00:00
Wayne Davison
e106de49c8
Tweaked the O_BINARY code to the latest idiom.
2003-03-30 23:00:51 +00:00
Wayne Davison
afbcc8f216
Define O_BINARY as "0" if it isn't defined.
2003-03-30 23:00:49 +00:00
Wayne Davison
f177b7cca2
Documented --files-from, --no-relative, --no-implied-dirs, and --from0.
2003-03-30 23:00:47 +00:00
Wayne Davison
ea5164d181
Support the new --files-from, --no-relative, --no-implied-dirs, and --from0
...
options. Moved the find_colon() routine here from main.c.
2003-03-30 23:00:42 +00:00
Wayne Davison
ccdff3ebbf
Open the file in BINARY fd mode, handle the normal line-ending characters
...
better than before, and add support for the new --from0 option (which changes
the line separator to a null).
2003-03-30 23:00:40 +00:00
Wayne Davison
24d0fcde7f
Support the new --files-from and --no-implied-dirs options.
2003-03-30 23:00:37 +00:00
Wayne Davison
56014c8c0a
Support the new --files-from and --from0 options.
2003-03-30 23:00:35 +00:00
Wayne Davison
7c2a9e766c
Support the new --files-from option.
2003-03-30 23:00:33 +00:00
J.W. Schultz
bb24028f51
Make link-dest aware of --perms, --owner and --group.
...
---- Chris Darroch
2003-03-26 20:26:06 +00:00
J.W. Schultz
52d3e10613
Prevent tempfile names from overflowing.
...
Debian BUG# 183667
2003-03-26 11:04:14 +00:00
J.W. Schultz
67863f46e3
Warn if 64bit value sent or received on system that doesn't
...
support 64bit integers.
2003-03-25 07:13:40 +00:00
J.W. Schultz
9c28e52628
Seperate the uint64_t macros from int64_t
2003-03-25 05:46:52 +00:00
J.W. Schultz
1b2f167546
Frustration mounting. I'll get it right eventually.
...
Thank goodness for the build farm.
2003-03-25 04:18:10 +00:00
J.W. Schultz
702d0c4529
earlier problem was a typo.
2003-03-25 04:09:43 +00:00
J.W. Schultz
51106bafc6
Another stab at uint64 because some platforms seem to have
...
problem with the unsigned off64_t
2003-03-25 03:14:27 +00:00
J.W. Schultz
42d4edc067
removed log_transfer() It was no more than a conditional
...
rprintf() with an unused param.
2003-03-25 02:28:54 +00:00
J.W. Schultz
fbc0bc4d53
Create uint64 for INO64_T and DEV64_T eliminating type mismatches.
2003-03-25 02:02:22 +00:00
J.W. Schultz
1b2db7aecb
Increased maximum protocol version.
...
Added warning for deprecated protocol versions.
2003-03-24 22:42:46 +00:00
J.W. Schultz
1ce29566e7
Minor correction to protocol annotation.
2003-03-24 22:32:47 +00:00
J.W. Schultz
3742bf3ac3
Annotated each release with protocol version and
...
added protocol version history from rsync.h log.
2003-03-24 22:13:16 +00:00
Wayne Davison
18d6b679af
The close_all() function was missing its "void" prototype.
2003-03-21 23:43:50 +00:00
Wayne Davison
dbda5fbf06
Get rid of eol whitespace.
2003-03-21 22:53:46 +00:00
Wayne Davison
2154309a54
Optimized the implied-directory code to avoid putting so many duplicate
...
dirs into the file list.
2003-03-21 22:10:44 +00:00
Wayne Davison
afb6e9450d
- Use popt to better effect for the two options that can be both
...
set and unset by the user.
- Even more whitespace cleanup.
2003-03-21 19:17:23 +00:00
Wayne Davison
dfa3248380
- Simplified the whole-file option handling.
...
- Fixed some whitespace issues.
2003-03-21 18:58:50 +00:00
Wayne Davison
2cda256088
- Simplified the whole-file option handling.
...
- Cleaned up some whitespace issues.
2003-03-21 18:53:00 +00:00
Wayne Davison
d9c7edf63f
- Fixed lots of line-indentation problems, including a really huge section
...
of non-batch-mode code that was indented at the same level as its
surrounding "if" statement.
- Moved the heavily-used am_* flags into global extern vars instead of
externing them again and again in individual functions.
- Got rid of line-ending whitespace.
2003-03-21 18:33:48 +00:00
J.W. Schultz
a151343943
Cleanup: Added header files to dependancies.
2003-03-21 07:42:19 +00:00
J.W. Schultz
85ed0aa396
Typo corrections.
...
Thanks to Paul Slootman <paul@debian.org >
2003-03-21 07:27:31 +00:00
J.W. Schultz
3019f95f37
Removing --csum-length option documentation since there is
...
no such option.
2003-03-21 04:39:11 +00:00
Paul Green
5702bc12b3
Apply patch from Steve Bonds to repair this test.
2003-02-19 16:22:50 +00:00
Paul Green
b0d791bb35
Patch from Roderick Schertler (roderick at argon.org) to ignore
...
non-POSIX directory mode bits that are used by AIX.
2003-02-18 18:07:36 +00:00
Paul Green
3903928ca0
Remove RedHat-specific .spec files in favor of the .spec files
...
maintained under packaging/lsb.
2003-02-18 16:50:25 +00:00
Wayne Davison
827c37f631
The sender no longer removes the duplicate names from the file list -- we
...
let the receiver do that, since they are the one that requests names and
we want to be sure the sender has any name the receiver may ask for.
2003-02-12 09:15:23 +00:00
David Dykstra
b45b059a3d
Back out one of the changes in log.c revision 1.62, and always send errors
...
to the client after multiplexing is enabled.
2003-02-11 19:13:51 +00:00
Paul Green
f39281ae56
Patch from jw schultz to reword "link" to "connection" in a couple of
...
spots.
2003-02-10 14:51:09 +00:00
Paul Green
e2bea9eb8d
Update packaging spec files per patch submitted by Horst von Brand.
...
In the future, we need to be sure to keep *.spec and *.spec.tmpl
identical...the release macro produces *.spec from *.spec.tmpl.
2003-02-05 18:41:53 +00:00
Paul Green
931a979904
Restored changes accidentally backed out by Dave Dykstra in previous revision.
2003-01-29 21:04:28 +00:00
Paul Green
3fccfafd30
Apply fix from Horst von Brand. See comments in rsync.spec.
2003-01-29 20:52:59 +00:00
David Dykstra
7a6fd4c1c7
preparing for release of 2.5.6
2003-01-28 05:28:42 +00:00
David Dykstra
8395d24616
Add header for 2.5.6 release.
2003-01-28 05:13:16 +00:00
David Dykstra
7d085960eb
Remove the Cygwin msleep(100) before the generator kills the receiver,
...
because it caused the testsuite/unsafe-links test to hang.
2003-01-28 05:05:53 +00:00
David Dykstra
3884317181
Change the default of --modify-window back to 0 on Cygwin.
2003-01-28 03:11:57 +00:00
David Dykstra
089a2435f8
Ack! I had accidentally ifdefed out the kill from the generator to the
...
receiver process for every platform except Cygwin.
2003-01-28 03:03:55 +00:00
David Dykstra
8ed16deb24
Change so the delay before generator signals receiver is only done on Cygwin.
2003-01-28 02:51:03 +00:00
Paul Green
a577af9067
Added a TODO item about temporary file names bumping up against the
...
maximum name length. (I have an unfinished patch that will address
this).
2003-01-27 16:33:47 +00:00
David Dykstra
59af13651b
Move the sleep to workaround the default modify-window of 1 on Cygwin to
...
the beginning of "checkit" rather than the end of "hands_setup" because
sometimes files are modified just before checkit is called and the copy
finishes within one second so they're considered to be the same time.
I don't think this would be a problem in real life, so just change the
test.
2003-01-27 04:41:30 +00:00
David Dykstra
787568f371
Insert a 100ms sleep just before sending the USR2 signal to the
...
child receiver process to prevent some hangs on Cygwin. Anthony
Heading discovered the workaround first and suggested 30ms, and
Greger Cronquist had better luck with 100ms.
2003-01-27 03:52:42 +00:00
David Dykstra
f0019fc506
Remove the "Connection reset by peer" from TODO
2003-01-27 03:36:54 +00:00
David Dykstra
9f639210ca
Prevent the "Connection reset by peer" messages often seen from Cygwin.
...
Result of a lot of discussion over the last year and a half. Based on
a patch from Randy O'Meara, cleaned up a bit by Max Bowsher.
2003-01-27 03:35:08 +00:00
David Dykstra
deec574421
Update date on man page.
2003-01-27 03:13:46 +00:00
David Dykstra
04657e42d5
Update rsyncd.conf documentation to be right for rsync server mode over a
...
remote shell.
2003-01-27 03:07:18 +00:00
David Dykstra
1b88775534
Change erroneous references to a --config-file option to the correct --config
...
option.
2003-01-27 02:48:14 +00:00
David Dykstra
7f6537557d
Change news item about handling of text mode in files to just permitting
...
any of the standard line termination styles.
2003-01-26 20:49:24 +00:00
Wayne Davison
518233ca79
Got rid of recent O_TEXT* and O_BINARY* changes.
2003-01-26 20:11:16 +00:00
Wayne Davison
bc72130d71
Got rid of O_TEXT_STR and added code to strip '\r' from the end of the
...
lines we read.
2003-01-26 20:10:23 +00:00
Wayne Davison
855decd3a7
Added back the O_BINARY #ifdef.
2003-01-26 20:09:02 +00:00
Wayne Davison
0090cbdba6
Got rid of O_TEXT_STR change.
2003-01-26 20:07:55 +00:00
Wayne Davison
73ff720972
File I/O already handles '\r', so we can remove the O_TEXT flags.
2003-01-26 19:37:54 +00:00
David Dykstra
c561e1378d
Remove a couple items I know are no longer needed.
2003-01-26 04:04:47 +00:00
David Dykstra
aa2c47d835
Better fix for infinite recursion; don't return from exit_cleanup
...
unless the nesting is already pretty deep, because there are normal
cases where exit_cleanup is nested shallowly. Patch from Marc Espie,
posted by Brian Poole.
2003-01-26 03:53:34 +00:00
David Dykstra
536b84680b
Open config files in text mode when O_TEXT is defined. This helps on
...
Cygwin when the config files are on a filesystem that is mounted in
binary mode. Patch from Ville Herva.
2003-01-26 03:46:54 +00:00
David Dykstra
7508b795bf
Tests that use hands_setup to make a test file directory and right
...
afterward make a copy were failing on cygwin because the default
--modify-windows now 1 on Cygwin. Adding a 2 second sleep at the end of
hands_setup so that hopefully the tests will succeed because the copy
will be made more than 1 second away from the original.
2003-01-26 03:34:19 +00:00
Wayne Davison
76ee1d18bf
Don't try to run daemon tests as "nobody".
2003-01-25 03:46:57 +00:00
Wayne Davison
379bc86547
Getting rid of recent "chown" since we decided to forego trying to run
...
the daemon tests as "nobody".
2003-01-25 03:45:40 +00:00
David Dykstra
066696644f
Change default of --modify-window on Cygwin from 2 to 1 because that's all
...
that's needed on FAT filesystems. NTFS filesystems can do with a window of
0, but it shouldn't hurt because it's highly unlikely that any given file
will be modified within one second of the time that rsync last copied it.
2003-01-24 22:07:22 +00:00
Paul Green
755bcd3722
Restore trailing newline character at the end of the file.
2003-01-23 17:18:20 +00:00
Paul Green
1985aa9666
Mentioned the fact that config.sub and config.guess got updated.
2003-01-22 22:59:35 +00:00
Paul Green
f4663a36da
Updated config.sub and config.guess to latest revision.
2003-01-22 22:24:53 +00:00
Wayne Davison
521e6fdcfc
Mention test-case fixes.
2003-01-21 20:25:44 +00:00
Wayne Davison
61ab574e38
Moved the chown from the download test to the upload test.
2003-01-21 20:19:53 +00:00
Wayne Davison
660cb6a085
Chown the $TO and $FROM directories to $RSYNCD_UID:$RSYNCD_GID (if we
...
can, and don't fail if we can't).
2003-01-21 20:19:53 +00:00
Wayne Davison
4274208833
Chown the $TO and $FROM directories to $RSYNCD_UID:$RSYNCD_GID (if we
...
can, and don't fail if we can't).
2003-01-21 19:30:51 +00:00
Wayne Davison
34db05b421
Put the UID and GID that rsyncd will run as into variables.
2003-01-21 19:28:29 +00:00
Wayne Davison
1657be22a3
Separated a cat "..." command out from inside a double-quoted string
...
so that we don't run afoul of some shells quoting quirks. (As Brian
Poole suggested.)
2003-01-21 19:27:11 +00:00
David Dykstra
3636b9ffaa
Change the name on the --modify-window default for Cygwin to Lapo Luchini.
2003-01-21 14:22:49 +00:00
David Dykstra
e3cd264571
Change version to working version 2.5.6pre3cvs
2003-01-21 04:23:43 +00:00
David Dykstra
69555b0943
Change version to 2.5.6pre2
2003-01-21 04:00:56 +00:00
Wayne Davison
522c05cf9a
Declare preserve_perms for latest syscall.o.
2003-01-21 01:35:23 +00:00
David Dykstra
f0b4fdaf5e
Ignore errors from chmod when --preserve-perms/-p/-a are not set.
...
Gnu cp behaves the same way.
2003-01-21 00:58:50 +00:00
Wayne Davison
ac6ce98375
Added a couple missing NEWS items.
2003-01-20 23:49:22 +00:00
David Dykstra
1b3cadaa39
Re-activate the piece of code that creates intervening directories
...
when --relative-paths is used. The code was accidentally skipped starting
in CVS version 1.32 of receiver.c. Noticed by Craig Barratt.
2003-01-20 23:32:17 +00:00
David Dykstra
61ca7d596c
Update description of hosts allow for IPv6. From Bert Vermeulen.
2003-01-20 23:10:22 +00:00
David Dykstra
688d573295
Make the default for --modify-window be 2 on cygwin.
2003-01-20 23:09:24 +00:00
Wayne Davison
ec6e0bf0c0
Backed out Paul Green's IRIX patch since it didn't seem to be a part of
...
the Makefile fix and I like the old EXE syntax better.
2003-01-20 18:26:14 +00:00
David Dykstra
184dede92f
Save the value of the test for getaddrinfo defines in the config cache.
2003-01-20 17:25:26 +00:00
David Dykstra
d2cc0323fb
Also need to include lib/getnameinfo when the getaddrinfo defines don't exist.
2003-01-20 16:59:18 +00:00
David Dykstra
3a1eefd331
Oops, lib/getaddrinfo wasn't pulled in when the system doesn't define
...
AI_PASSIVE.
2003-01-20 16:27:34 +00:00
David Dykstra
824f1c7944
Only look for a system getaddrinfo/getnameinfo if AI_PASSIVE is defined
...
by system headers. This fixes compile errors on Irix 6.5.
2003-01-20 15:04:16 +00:00
David Dykstra
7bc8218d81
Fix bug that causes messages like
...
rsync: stack overflow in function match_address
on openbsd. Patch from Brian Poole <raj@cerias.purdue.edu >.
2003-01-20 13:46:28 +00:00
David Dykstra
a405cda63c
Add unsafe-byname tests with symlink destinations ending in '..'.
2003-01-20 12:42:42 +00:00
Wayne Davison
7afa3a4a48
Optimized unsafe_symlink() to avoid malloc/free calls.
2003-01-19 21:37:11 +00:00
Wayne Davison
c80b3d8c3f
Added "extern" to io_{read,write}_phase line (they were being
...
multiply defined).
2003-01-19 05:53:07 +00:00
Wayne Davison
ef6122c622
Got rid of trailing whitespace and tweaked a few things that might
...
possibly be affecting the IRIX build (but probably not).
2003-01-18 19:11:55 +00:00
Wayne Davison
75fb17b891
Define DBL_EPSILON if it doesn't exist.
2003-01-18 19:00:07 +00:00
Wayne Davison
2abbf2498f
Trying out Paul Green's IRIX patch to see if it fixes the syntax
...
error in the Makefile.
2003-01-18 18:52:50 +00:00
Wayne Davison
b91b50c01f
Fixed the bug in clean_flist() where it did not get rid of all duplicate
...
names if there were more than 2 identical names in a row.
2003-01-18 18:00:23 +00:00
David Dykstra
06891710f2
Change rsync help for -a to show that it is equivalent to -rlptgoD.
...
I've had to go to the man page many times for that information and I
finally got sick of it.
2003-01-16 21:02:43 +00:00
David Dykstra
b765ec32b9
Prevent infinite recursion in exit_cleanup(). Patch from Sviatoslav Sviridov.
2003-01-16 20:09:31 +00:00
Wayne Davison
a70d070cc5
Make unsafe_symlink() take const args so that we don't get any
...
compiler warnings when calling it with a const char *.
2003-01-15 17:49:44 +00:00
David Dykstra
1f1fbe187e
Add news item about fix of --copy-unsafe-links
2003-01-15 16:41:51 +00:00
David Dykstra
fc63847406
Fix bug in --copy-unsafe that made it totally broken, and re-enable
...
the tests that tested it. As far as I can tell, it was always broken
since the day I put it in years ago. In my investigation into this I
was unable to figure out what in the world I was thinking back then,
to introduce a global variable with the wrong information in it rather
than using a parameter that was already available in readlink_stat
function. That still bothers me a bit but I decided to stop worrying
about it.
2003-01-15 16:14:07 +00:00
David Dykstra
f58677d123
Don't use the return value from sprintf because it doesn't work on Sunos4.
2003-01-14 21:37:08 +00:00
David Dykstra
7ab1538861
Now that the 2.5.6pre1 snapshot has been made, change the version to
...
2.5.6pre2cvs.
2003-01-13 17:21:12 +00:00
David Dykstra
7ad0f94de9
Change version to 2.5.6pre1
2003-01-13 16:40:15 +00:00
Wayne Davison
8af534a52c
Changed the alloca warning message.
2003-01-12 22:45:47 +00:00
Wayne Davison
7447419266
Use the old kludge of using malloc() if alloca() is missing.
2003-01-12 21:49:44 +00:00
David Dykstra
5216de37a4
Reduced the severity of the warning about missing alloca to a warning, and
...
changed the test to the common form of prefixing an x to both sides of
an equivalence because it didn't even notice a problem on the cray when
it was instead using test -n.
Also noticed an error in the test for ANSI c, doing a "$xac..." = xno"
when it should have been "x$ac..." = xno, so I fixed that too.
2003-01-12 04:02:25 +00:00
David Dykstra
ccc0d1eb1d
Oops, had the sense of the test for the existence of alloca() backwards.
2003-01-12 03:28:13 +00:00
David Dykstra
7fc0890881
Make configure bomb if the included popt is needed but alloca is not
...
available, as apparently is the case on Cray UNICOS. The AC_FUNC_ALLOCA
autoconf documentation talks about having an included alloca.c and
periodically calling alloca(0) to garbage collect when C_ALLOCA is defined,
but I don't know where to get the code or if there's anybody that cares
enough about the UNICOS port for it to be worth the trouble.
2003-01-12 03:11:38 +00:00
David Dykstra
b17f1d76c0
Cast the return from alloca to work better on UNICOS.
2003-01-11 19:01:31 +00:00
David Dykstra
451b5fc969
Cast the return of alloca to remove a fatal error on Cray UNICOS.
2003-01-11 14:39:41 +00:00
Wayne Davison
1e678fcab1
Yet another try at getting this to skip on cygwin.
2003-01-11 08:19:24 +00:00
Wayne Davison
48bcc6ee2b
Hopefully this version will skip correctly on cygwin.
2003-01-11 07:39:49 +00:00
Wayne Davison
32734c7c3c
Try a different tact to get cygwin to skip this test.
2003-01-11 07:22:40 +00:00
Wayne Davison
aaf375d0a5
The inet_pton() man page says we need to pass in a pointer to a
...
struct in_addr, which means passing &sin.sin_addr instead of
&sin.sin_addr.s_addr. Also changed the AF_INET6 version to pass
&sin6.sin6_addr. Hopefully this will fix UNICOS and not break
anyone else.
2003-01-11 02:05:56 +00:00
Wayne Davison
9680f811f6
Cast poptGetOptArg() to remove a compiler warning.
2003-01-11 01:29:30 +00:00
Wayne Davison
bda41fa509
+ The prototype for isc_net_pton() should have been inet_pton().
...
+ Define IN_LOOPBACKNET if it is not already defined.
2003-01-10 20:09:58 +00:00
Wayne Davison
7ea84b6890
Only refer to S_ISVTX if S_ISVTX is defined.
2003-01-10 20:08:43 +00:00
Wayne Davison
cc234d944a
+ Fixed a comment that referred to isc_net_pton() instead of inet_pton().
...
+ Only prototype inet_pton6() if INET6 is defined.
2003-01-10 20:08:12 +00:00
Wayne Davison
ac84096d1f
Don't use '#' in the dsttmp filename.
2003-01-10 19:58:51 +00:00
Wayne Davison
a1cc591b29
Paul Green's changes to add $(EXEEXT) and $(CPPFLAGS) as appropriate.
2003-01-10 19:58:16 +00:00
David Dykstra
da0405080e
The call to test_skipped if makepath failed didn't work, presumably because
...
makepath is builtin and there's some problem with it causing /bin/sh to
exit on cygwin. Parens around the call to makepath should help.
2003-01-10 18:32:59 +00:00
David Dykstra
0c0a3e2dd3
Clean up better after the testsuite check programs. Patch from J.W. Schultz.
2003-01-10 15:16:23 +00:00
David Dykstra
ad301e487c
Skip the longdir test if the long directory can't even be created, such as
...
on cygwin (maybe only on certain filesystems?).
2003-01-10 15:06:10 +00:00
Wayne Davison
b5ae4aba38
Reset the io_error_fd right before the generator kills off the receiver
...
(because the death of the receiver will close the fd and cause the
generator to fail in any subsequent IO).
2003-01-10 08:32:09 +00:00
David Dykstra
8d2aad49e3
AI_NUMERICHOST is not defined on AIX.
2003-01-09 21:30:24 +00:00
David Dykstra
bc2b4963a0
Support IPv6 addresses with "hosts allow" and "hosts deny". Patch from
...
Hideaki Yoshifuji.
2003-01-09 21:14:10 +00:00
David Dykstra
ee7118a816
Fixed bug that caused rsync to lose exit status of its child processes.
...
Based on patch submited by David R. Staples. Todd Vander Does contributed
the following test which showed the problem:
> mkdir /tmp/nowrite
> chmod -w /tmp/nowrite
> rsync /etc/group /tmp/nowrite || echo $status
mkstemp .group.cUaaeY failed
rsync error: partial transfer (code 23) at main.c(518)
23
> rsync -e ssh loki:/etc/group /tmp/nowrite || echo $status
mkstemp .group.1rayeY failed
> rsync -e ssh loki:/etc/group /tmp/nowrite && echo $status
mkstemp .group.fbaGiY failed
0
The remote copy should have returned non-zero exit code like the local copy.
2003-01-09 19:04:06 +00:00
Wayne Davison
95dd949c09
Added .svn/ to the cvs_ignore_list and some trailing slashes to the
...
other dirs in the list.
2003-01-09 03:55:57 +00:00
Wayne Davison
9326552e66
Added .svn/ to the --cvs-exclude list and some trailing slashes to the
...
other dirs in the list.
2003-01-09 03:53:24 +00:00
Jos Backus
1e34e4b7cd
Add "void" to some function definitions so that all declarations in proto.h
...
have full parameter lists. This helps unbreaking compilation on SCO UNIXWare.
Submitted by: Stephen Friedl
2002-12-24 07:42:04 +00:00
Jos Backus
06464f55e2
Change all relevant occurrences of `rsync'' and `$rsync_bin'' to the
...
canonical form ``$RSYNC'' (set in testsuite/rsync.fns). This prevents any
stray rsync binaries in the user's PATH from being picked up by the test
scripts and ensures that the newly built rsync binary is used always.
2002-12-24 07:25:25 +00:00
David Dykstra
1b85e3f1a0
When a file shows up as not existent during an rsync run, always check
...
to see if it excluded before reporting an error. Previously it was only
checking for the exclusion if copy_links was enabled, but the error can
also occur if a file disappears during an rsync run. Suggested by Eugene
V. Chupriyanov and Bo Kersey.
2002-12-11 18:48:27 +00:00
Jos Backus
eac9dc63e3
Fix the chgrp and hardlinks tests by running $RSYNC instead of relying on the
...
new rsync being in $PATH; it may pick up an old version, invalidating the
result of the tests. This is what the other tests do already.
Submitted by: Joel Shprentz <ShprentzJ@nima.mil >
2002-11-05 18:35:59 +00:00
David Dykstra
30e8c8e1e4
When using daemon mode over a remote shell program and not running as root,
...
default the config file to just "rsyncd.conf" in the current directory
instead of /etc/rsyncd.conf. Also, fix problems with logging messages when
running daemon mode over a remote shell program: it was pretty much doing
the opposite of what it should have, sending early error messages to the
log and later messages to the client. Switched it around so the very early
error messages go to the client and the later ones go to the log.
2002-08-30 23:27:26 +00:00
David Dykstra
d53d7795ee
Change wording of --compare-dest option to refer to the --link-dest option.
2002-08-30 15:12:47 +00:00
David Dykstra
59c95e4243
Add --link-dest option from J.W. Schultz.
2002-08-29 14:44:55 +00:00
David Dykstra
f8a94f0de8
Patch from J.W. Schultz to have --include-from and --exclude-from on
...
filename "-" read from standard input.
2002-08-29 14:37:20 +00:00
Wayne Davison
3b5f6214a6
* Don't call getnameinfo() if we've already populated the addr_buf.
...
* Moved some structures in client_name() so that they remain in-scope for
the entire function (since we set pointers to their storage location).
* Allow the dot-counting loop to increment to 4 instead of stopping at 3.
2002-08-02 17:11:39 +00:00
David Dykstra
542ad675b9
Put in better method of checking whether or not daemon over --rsh mode is
...
in place: simply check the "am_server" global variable, which is not set
true when the daemon is listening for connections (daemon_main is not
called in main.c if am_server is set).
2002-08-02 15:39:43 +00:00
David Dykstra
1e736b8ff7
Fix client_name to work on when INET6 is enabled but using a 4-part IPv4
...
IP address. Tested on Linux, but only with an IPv4 ssh. Somebody who has
IPv6 enabled on ssh needs to test it yet.
2002-08-02 15:05:03 +00:00
David Dykstra
a6d8c3f336
Fix last change to use correct IPv6 structure names when using INET6.
...
Doesn't yet look up names correctly on Linux with INET6 enabled, however;
needs further work but I don't have time right now.
2002-08-01 21:57:23 +00:00
Wayne Davison
bb4aa89c10
Don't pass "-l user" to the remote shell if we're starting a server-daemon
...
and the command already has a "-l user" option.
2002-08-01 20:46:59 +00:00
David Dykstra
09021eabb5
Fix to correctly identify remote IP address and host name when using
...
-e ssh and :: together. Uses $SSH_CLIENT to locate the IP address
(was attempting to before but it didn't always work) and then uses
inet_pton() on that and getnameinfo() to find the name.
2002-08-01 19:17:00 +00:00
Wayne Davison
8d69d57113
Documented that the rsync:// URL syntax is now legal in the destination.
2002-08-01 17:55:40 +00:00
Wayne Davison
eaa4c150ab
Mention the new rsync:// URL-in-the-destination syntax.
2002-08-01 17:55:11 +00:00
Wayne Davison
a125c82ad2
Allow the rsync:// URL syntax in the destination field.
2002-08-01 17:53:38 +00:00
Wayne Davison
93eff16a6a
Document more recent changes.
2002-08-01 17:53:07 +00:00
Wayne Davison
d2d9fe184d
Mention the recent commits.
2002-08-01 16:50:46 +00:00
David Dykstra
2d4ca358db
Slight change to refer to the section CONNECTING TO AN RSYNC SERVER OVER A
...
REMOTE SHELL PROGRAM from within the --rsh option.
2002-08-01 16:21:20 +00:00
Wayne Davison
39993af514
The function passed to start_accept_loop() now takes 2 fd ints (for
...
the daemon via remote-shell support).
2002-08-01 00:37:08 +00:00
Wayne Davison
bef4934045
Document the new server-daemon via remote-shell mode.
2002-08-01 00:37:06 +00:00
Wayne Davison
1312d9fc47
If daemon_over_rsh is set, we limit the generated options to just
...
--server and --daemon.
2002-08-01 00:37:01 +00:00
Wayne Davison
75aeac44e8
Handle the new server-daemon via remote-shell mode.
2002-08-01 00:36:59 +00:00
Wayne Davison
68f40ebba9
Moved the end of start_socket_client() into a new function called
...
start_inband_exchange() and made several functions take two fds
(for the daemon via remote-shell support). The start_daemon()
function is no longer static and now works on non-socket fds.
2002-08-01 00:36:56 +00:00
Wayne Davison
973007daac
Changed auth_server() to take two fds (for the daemon via remote-shell
...
support).
2002-08-01 00:36:54 +00:00
Wayne Davison
8060514230
Stefan Nehlsen's fix of a timeout problem on large files.
...
(Modified to work with the latest CVS source.)
2002-07-31 21:20:07 +00:00
Wayne Davison
b1a2f37a6e
Mention the popt upgrade.
2002-07-27 18:33:54 +00:00
Wayne Davison
7c66b86028
Check for the float.h header file (for popt).
2002-07-27 18:33:30 +00:00
Wayne Davison
cc248aae9b
Updated to version 1.6.4.
2002-07-27 18:32:25 +00:00
Wayne Davison
ca23c51aeb
- Fixed a crash in flist_find() when the last item in the flist has
...
been removed as a duplicate.
- Got rid of a compiler warning about mixed signed/unsigned types in a
conditional expression.
2002-07-27 18:01:21 +00:00
David Dykstra
fca9a9b0f0
Document in --owner and "use chroot" that --numeric-ids is implied when
...
use chroot is yes.
2002-06-27 17:51:25 +00:00
John H Terpstra
1ea15dbe05
Added Solaris PkgInfo build script from Jens Apel <jens.apel@web.de>
2002-06-22 16:52:15 +00:00
David Dykstra
8e34cd41f0
Close previously opened file descriptor when mkstemp fails in recv_files().
...
Every other failure condition in that function was alreadying doing this,
and I saw a case with a lot of "mkstemp...No space left on device" messages
started becoming "mkstemp...Too many open files" messages because of this
bug. Not that it makes a whole lot of difference, since nothing gets copied
because the disk was out of space.
2002-05-28 15:42:51 +00:00
David Dykstra
9ef1cc7cdf
Clarify the relationship of max connections and lock file.
2002-05-16 21:07:23 +00:00
Martin Pool
411acbbc2a
Better notes about handling IPv6 on old machines
2002-05-14 05:44:51 +00:00
Martin Pool
32e83406c4
Fix little mistake
2002-05-14 05:31:11 +00:00
Martin Pool
7e28fca126
Note about lchmod.
2002-05-14 05:25:46 +00:00
David Dykstra
e4ffb53900
Fix the rsync home page URL to drop a trailing "/rsync".
2002-05-13 18:34:37 +00:00
David Dykstra
7c2d381c28
Clarify that exclude/include options in rsyncd.conf apply only to files
...
sent from the server or deleted on the server.
2002-05-13 18:22:28 +00:00
Martin Pool
bde47ca7c5
Note that using the old sockets API probably will not work
...
sufficiently on some ipv6 systems.
2002-05-13 07:54:47 +00:00
Wayne Davison
ea7f8108b0
Make the -e text a little less chatty, and mention the legality of
...
command-line options in the RSYNC_RSH section.
2002-05-11 08:31:55 +00:00
Wayne Davison
98393ae2e2
Mention that the -e COMMAND can contain options.
2002-05-10 19:56:23 +00:00
David Dykstra
759ac87019
Submit enhancement from Michael Zimmerman to allow --suffix to be used
...
with --backup-dir.
2002-05-09 21:44:46 +00:00
David Dykstra
a1e0e45e01
Indicate that the exclude options in rsyncd.conf only apply when receiving
...
files to a server and not when sending files to it.
2002-05-09 19:03:40 +00:00
Wayne Davison
54170a084d
Tweaked the --rsh option's description.
2002-05-06 19:05:05 +00:00
Wayne Davison
1bbf83c07d
- Improved the references to rsh to better indicate that rsync may be
...
configured to use some other remote shell by default.
- Fixed the mention of ssh's preferred IO-blocking mode.
2002-05-06 19:02:44 +00:00
Wayne Davison
ccd2b499ed
Mention that --delete-after now implies --delete.
2002-05-06 18:47:57 +00:00
Wayne Davison
1de50993a7
Made the --delete-after option imply --delete.
2002-05-03 22:59:17 +00:00
Wayne Davison
786c36876b
Mentioned that --delete-after and --delete-excluded imply --delete.
2002-05-03 22:58:01 +00:00
Martin Pool
8bd1a73e14
Add note about resolving Debian gid problem.
2002-04-26 00:55:34 +00:00
Martin Pool
c7d692c3c3
Notes about handling machines lacking getaddrinfo().
2002-04-24 01:13:26 +00:00
Martin Pool
f9b9e2f067
Note from Alberto Accomazzi that rsync urls are broken for upload
2002-04-19 05:33:36 +00:00
Martin Pool
dafe63ca98
Doc.
2002-04-16 01:38:21 +00:00
Martin Pool
f49a7b227f
When -e is specified along with an rsyncd url, the client should get a
...
warning but it should not be treated as an error. (Bill Nottingham)
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62489
2002-04-15 07:50:18 +00:00
Martin Pool
f5e4eadb74
--no-blocking-io might be broken in the same way as --no-whole-file;
...
somebody needs to check.
2002-04-15 05:05:57 +00:00
Martin Pool
717eb9b883
Note about testing "refuse options"
2002-04-13 12:17:47 +00:00
Martin Pool
5ba268efa8
*** empty log message ***
2002-04-13 03:52:48 +00:00
Martin Pool
25ff30e804
Notes on testing, release, and todo items from the Debian paper.
2002-04-12 05:05:44 +00:00
Martin Pool
bdae761ee1
reformat
2002-04-12 04:22:52 +00:00
Martin Pool
5af50297be
Note about manual revision.
2002-04-11 02:35:25 +00:00
Martin Pool
32f761755e
Try to fix ctype issues by always calling these functions as
...
if (!isdigit(* (unsigned char *) p)) {
so that the argument is always in the range of unsigned char when
coerced to an int.
(See digit 1.)
2002-04-11 02:25:53 +00:00
Martin Pool
c4fea82ff9
Doc.
2002-04-11 02:21:41 +00:00
Martin Pool
6ded1170ac
Doxygen
2002-04-11 02:18:51 +00:00
Martin Pool
991f90f296
Receiving an @ERROR line from the server is (I think) always fatal, so
...
the client should exit upon receiving one and not be surprised that
the socket closes.
2002-04-11 02:16:34 +00:00
Martin Pool
c979dad54a
Fix old typo.
2002-04-11 02:11:50 +00:00
Martin Pool
136ac7ecec
Receiving an @ERROR line from the server is (I think) always fatal, so
...
the client should exit upon receiving one and not be surprised that
the socket closes.
2002-04-11 01:56:35 +00:00
Martin Pool
3e8369b6dc
Correction from Nelson Beebe: argument to functions such as isspace()
...
must be an int, not a char. This could cause sign-extension problems.
2002-04-09 06:32:07 +00:00
Martin Pool
a7dc44d27d
Doc.
...
Correction from Nelson Beebe: argument to functions such as isspace()
must be an int, not a char. This could cause sign-extension problems.
2002-04-09 06:18:13 +00:00
Martin Pool
07a874fd9b
Correction from Nelson Beebe: argument to functions such as isspace()
...
must be an int, not a char. This could cause sign-extension problems.
2002-04-09 06:15:13 +00:00
Martin Pool
e35080cede
long int and signedness fix from Nelson Beebe
2002-04-09 06:11:06 +00:00
Martin Pool
ce8149b6fe
long int fix from Nelson Beebe
2002-04-09 06:03:50 +00:00
Martin Pool
a86179f429
Fix type error.
2002-04-09 05:32:52 +00:00
Martin Pool
56cf38ac98
Add RERR_OK == 0
2002-04-09 05:29:26 +00:00
Martin Pool
b0f451eb3b
Doc _exit_cleanup.
2002-04-09 05:26:46 +00:00
Martin Pool
d0829892c6
Doc start_socket_client
2002-04-09 05:23:07 +00:00
Martin Pool
fdf88d7574
Doc start_socket_client
2002-04-09 05:20:30 +00:00
Martin Pool
595f2d4d97
Notes about supplementary groups and -z.
2002-04-09 05:14:59 +00:00
Martin Pool
cae95647a4
Doc.
2002-04-09 05:07:15 +00:00
Martin Pool
a254fd9798
Doc.
2002-04-09 05:03:45 +00:00
Martin Pool
805edf9d7d
A bit more support for IO phase names.
2002-04-09 05:00:03 +00:00
Martin Pool
eca2adb4b3
OK, we can now get phase messages if we fail in send_file_entry
2002-04-09 04:50:25 +00:00
Martin Pool
4eea7793ea
Doc
...
Try symlinks with an empty target
2002-04-09 04:49:42 +00:00
Martin Pool
67684d038d
long int fix from Nelson Beebe
2002-04-09 04:49:23 +00:00
Martin Pool
98b332edea
Fix typo.
...
Show io phase name in error message.
2002-04-09 04:41:03 +00:00
Martin Pool
e681e82066
Rather than a loop subtracting 1e6 to convert usecs to secs/usecs, just
...
use div/mod.
2002-04-09 04:33:32 +00:00
Martin Pool
08571358b1
Factor out bwlimit sleep code from writefd_unbuffered into its own function.
2002-04-09 04:29:46 +00:00
Martin Pool
8901a07fdb
Clarify "error writing %d bytes" message.
2002-04-09 04:23:18 +00:00
Martin Pool
880da0072e
Clean up docs.
2002-04-09 04:20:36 +00:00
Martin Pool
a83600cc82
Change error message "partial transfer" to "some files could not be
...
transferred".
I don't generally like changing that sort of thing, but I think this
one was a persistent source of confusion.
2002-04-08 09:10:50 +00:00
Martin Pool
dd0628f85f
Note code cleanups
2002-04-08 09:09:03 +00:00
Martin Pool
e66dfd1879
Doc and indent only.
2002-04-08 09:05:26 +00:00
Martin Pool
bf2daeaf2d
Remove redundant list of options. It might be nice to summarise the
...
most frequently-used ones in here.
Nelson Beebe pointed out that the information about bug tracking was
out of date.
2002-04-08 08:58:26 +00:00
Martin Pool
bd0ad74f4b
Notes on MD4 performance. This quite unnecessarily takes up 90% of
...
CPU on a local transfer, without achieving anything useful.
2002-04-08 08:39:03 +00:00
Martin Pool
79f671cc7c
Doc
2002-04-08 08:35:30 +00:00
Martin Pool
0f9c48b1d2
Doc file
2002-04-08 08:34:03 +00:00
Martin Pool
538ba24fd7
Doc match_sums.
2002-04-08 08:33:13 +00:00
Martin Pool
d37d8d7b69
Doc sum_update
2002-04-08 08:29:04 +00:00
Martin Pool
f4a0483ab8
Add manual prototype for maintainer-mode function
2002-04-08 08:24:59 +00:00
Martin Pool
f5f95a38c4
Document the perversely-named matched() function, which is called even
...
if we have not matched!
2002-04-08 08:23:50 +00:00
Martin Pool
3e7053ac59
With -vv, show state of --whole-file once at the start of the transfer.
2002-04-08 08:06:18 +00:00
Martin Pool
420ef2c419
Doc.
2002-04-08 08:02:08 +00:00
Martin Pool
9fb3f7a9ab
Doc rsync_panic_handler()
2002-04-08 07:46:34 +00:00
Martin Pool
734a94a20c
Clean up prototype.
...
Drop unused variables.
2002-04-08 07:42:54 +00:00
Martin Pool
b44be3e944
Fix prototype.
2002-04-08 07:39:56 +00:00
Martin Pool
fc0302cf07
Show panic_action in --version.
2002-04-08 07:36:05 +00:00
Martin Pool
4fdc39dde8
Allow panic_action to be configured through environment variable RSYNC_PANIC_ACTION.
2002-04-08 07:34:17 +00:00
Martin Pool
9a933bc2ce
t_unsafe needs asnprintf on some platforms.
2002-04-08 06:23:34 +00:00
Martin Pool
524dc9afd6
correct behaviour is unclear
2002-04-08 06:18:03 +00:00
Martin Pool
e4d709cbf8
Cleanup
2002-04-08 06:01:26 +00:00
Martin Pool
48c1586cd1
handle yodl and vpath
2002-04-08 05:38:51 +00:00
Martin Pool
7bd0cf5b8f
Clarify meaning of unsafe symlinks
2002-04-08 05:30:28 +00:00
Martin Pool
fcb69e5cdc
Fix copyright.
2002-04-08 05:28:31 +00:00
Martin Pool
96557d23a3
Add more test cases.
...
Turn off -x.
2002-04-08 05:22:50 +00:00
Martin Pool
4e5db0ad4a
Doc.
2002-04-08 05:21:51 +00:00
Martin Pool
c81a32f071
Add more test cases.
2002-04-08 05:19:41 +00:00
Martin Pool
6f2623fd69
Formatting cleanup.
2002-04-08 04:59:34 +00:00
Martin Pool
b4235b3165
Doc.
2002-04-08 04:48:51 +00:00
Martin Pool
d25c0e42c7
A test suite that calls unsafe_symlink() directly to see how it
...
handles different strings.
2002-04-08 04:47:01 +00:00
Martin Pool
0ecfbf27c3
Split code out into separate files and remove some global variables to
...
reduce symbol dependencies between files and therefore make it easier
to write unit tests. The diff is large, but the actual code changes
are pretty small.
2002-04-08 04:16:46 +00:00
Martin Pool
fb4c98c2c8
Test harness for unsafe_symlink: just passes in argv[].
2002-04-08 04:13:43 +00:00
Martin Pool
cd8e38b13f
Little stub module that replaces functions such as rprintf called from
...
many places with a redirector to stderr. If you just want to test a
particular routine you can link to this rather than the whole framework.
2002-04-08 04:12:31 +00:00
Martin Pool
b35d0d8e9a
Split code out into separate files and remove some global variables to
...
reduce symbol dependencies between files and therefore make it easier
to write unit tests. The diff is large, but the actual code changes
are pretty small.
2002-04-08 04:10:20 +00:00
Martin Pool
c948e309f2
Don't generate code for zlib and popt.
2002-04-08 04:00:24 +00:00
Martin Pool
d1f83bcc81
Doc.
2002-04-08 03:43:54 +00:00
Martin Pool
e0fde757fd
Doc.
2002-04-08 03:38:36 +00:00
Martin Pool
25d34a5c80
Rearrange code slightly to avoid util.c depending on main.c.
2002-04-08 03:37:19 +00:00
Martin Pool
610364e3a6
Tune doxygen output, remove warning.
2002-04-08 03:13:11 +00:00
Martin Pool
036e70b024
Document unsafe_symlink().
2002-04-08 03:10:01 +00:00
Martin Pool
ac13ad106a
Clean up comments for Doxygen.
2002-04-08 03:03:04 +00:00
Martin Pool
bd9e9eccbd
Doc.
2002-04-08 02:41:23 +00:00
Martin Pool
8ff9d697c9
Note on debugging daemon
2002-04-08 02:39:00 +00:00
Martin Pool
62b68c8046
Notes about logging.
2002-04-08 01:59:21 +00:00
Martin Pool
e4724e5c1c
Note about two small bugs.
2002-04-05 07:25:06 +00:00
Martin Pool
559e727bf7
Test more permutations.
2002-04-05 07:13:01 +00:00
Martin Pool
126642b633
Fix filenames.
2002-04-05 07:04:23 +00:00
Martin Pool
cca4e06786
Get rid of testlink after use.
2002-04-05 07:00:53 +00:00
Martin Pool
2f1faea89b
Test case for --copy-unsafe-links, contributed by VladimÃr Michl,
...
converted to the test suite. Thankyou!
It fails at the moment; I don't know if that's a test bug or an rsync bug.
2002-04-05 06:57:47 +00:00
Martin Pool
3d90ec146f
Doc
2002-04-05 06:17:50 +00:00
Martin Pool
1bc209b441
Fix completely braindead previous patch. Thanks Jos.
2002-04-03 06:55:24 +00:00
Martin Pool
1433e6da69
Patch from Zoong Pham and Albert Chin to improve detection of
...
getaddrinfo on Tru64.
Also configure.in test for mkfifo and sys/un.h, although we don't
actually use that yet.
2002-04-03 06:03:27 +00:00
Martin Pool
f8f4c862e8
Change code that writes s_count to a batch file to squish it into an
...
int first -- a stopgap for compilers that reasonably complain about a
ternary that returns either a size_t or an int.
Really we should not write an int, but rather a larger type. Somebody
more familiar with the batch code should look at it.
2002-04-03 05:55:54 +00:00
Martin Pool
226df8e717
Support Doxygen pretty-printer
2002-04-03 04:29:19 +00:00
Martin Pool
6c92af2067
Commit patch based on one from John L. Allen to fix "forward name
...
lookup failed" on AIX 4.3.3.
When doing an name->addr lookup on the client address, there's no
point including the service name, because it can't be spoofed and it
apparently causes trouble when not present in /etc/services.
2002-04-03 02:33:42 +00:00
Martin Pool
54c7298ce4
Roll over version and news.
2002-04-03 02:13:42 +00:00
Martin Pool
642a979a27
Note about --dry-run.
2002-04-03 00:10:11 +00:00
Martin Pool
e733c93423
Remove warning about "run autoconf". It tends to break too much with
...
CVS.
2002-04-02 02:00:29 +00:00
Martin Pool
ffdb58a51a
Bump to 2.5.5.
2002-04-02 01:41:58 +00:00
Martin Pool
c053133207
If configured with --enable-maintainer-mode, then on receipt of a
...
fatal signal rsync will try to open an xterm running gdb, similarly to
Samba's "panic action" or GNOME's bug-buddy.
2002-03-27 05:10:44 +00:00
Martin Pool
9098bbf3b3
Improved network error handling. (Greg A. Woods)
2002-03-27 01:03:13 +00:00
Martin Pool
68618b8810
Shell scripts should explicitly "exit 0" for portability. Thanks Jos.
2002-03-26 10:36:45 +00:00
Martin Pool
e553d27f41
Fix suggested by Jos for hands.test. Some of the functionality
...
previously built into Phil's test was clashing with the runtests.sh
framework. I think one of the core problems might be that scripts
which don't explicitly "exit 0" have return codes which vary depending
on the particular shell. (c.f. the autoconf portability guide.)
This might break the Debian test suite but I'm afraid I don't know
enough about how it works yet. Hopefully eventually it can become
just a wrapper around our 'make check'.
2002-03-26 10:28:57 +00:00
Martin Pool
d092924c63
Updated spec file from Jason Haar. Seems to mostly just change the
...
path for manuals, and bumps the version.
2002-03-26 05:15:09 +00:00
Martin Pool
34027489e0
Ignore autoconf cache. (??)
2002-03-26 01:27:24 +00:00
Martin Pool
d1239eae92
Jos points out that test -L is still broken on Solaris. Now we try up
...
front to detect a command that will work properly, and use that
consistently.
Also, in test report, show setting of $preserve_scratch.
Reset version.
2002-03-26 01:25:47 +00:00
Martin Pool
331050969b
Bump version to 2.5.5rc1.
2002-03-25 23:22:08 +00:00
Martin Pool
259c3e72b0
Add note about possible hardlink bug.
2002-03-25 23:09:31 +00:00
Martin Pool
8f7a38336d
Make the situation w.r.t. dynamically linking zlib and libpopt clear.
2002-03-25 09:42:36 +00:00
Martin Pool
999dfffc9b
Add link to Apple bug.
2002-03-25 07:29:43 +00:00
Martin Pool
527a51cec5
Doc
2002-03-25 07:07:03 +00:00
Martin Pool
20c15aead5
Hm, strange off-by-one bug.
2002-03-25 06:59:17 +00:00
Martin Pool
fb859e5674
Apparently the OS X port of gcc gags on __attribute__.
2002-03-25 06:49:08 +00:00
Martin Pool
4f2dcb1714
If we discover a hardlink with -vv say what it's a link to.
2002-03-25 06:27:44 +00:00
Martin Pool
64e74631e0
Fix from Jos for batch mode on Solaris.
2002-03-25 06:06:29 +00:00
Martin Pool
fba31efb74
Disambiguate hard link messages.
2002-03-25 05:54:31 +00:00
Martin Pool
435f1ed70d
Apparently SGI make doesn't like $< in non-implicit rules.
2002-03-25 04:36:56 +00:00
Martin Pool
94f34ca10a
Doc.
2002-03-25 04:04:23 +00:00
Martin Pool
b0633744fa
Note about mkdir bug.
2002-03-25 03:56:38 +00:00
Martin Pool
c127e8aaec
Add a test case for trim_trailing_slashes, and make it handle other cases.
2002-03-25 03:51:17 +00:00
Martin Pool
bf4e725d5d
Code that was meant to trim trailing slashes from mkdir() paths
...
actually did not; fix it.
2002-03-25 03:29:47 +00:00
Martin Pool
663717f465
Need to also delete getgroups when cleaning.
2002-03-25 03:26:28 +00:00
Martin Pool
12b159ac41
Define NGROUPS if not already done.
2002-03-25 03:18:36 +00:00
Martin Pool
9299c8f0b4
Clean testtmp*, because we now put tests in their own directories.
...
Add "make cleantests"
2002-03-25 03:16:35 +00:00
Martin Pool
dfef3f1099
Change chgrp.test to use our getgroups rather than the system's.
2002-03-25 03:01:37 +00:00
Martin Pool
fa3690f488
Initial revision.
2002-03-25 02:58:59 +00:00
Martin Pool
4acbfa2ade
Add our own little tool to call getgroups(2) because it's too hard to
...
find a portable shell command that does it.
2002-03-25 02:55:52 +00:00
Martin Pool
ef86d74736
Clean up text.
2002-03-22 22:36:22 +00:00
Martin Pool
118f39d45b
Clean up text.
2002-03-22 22:33:49 +00:00
Martin Pool
77867907ed
Doc permissions while testing.
2002-03-22 06:22:53 +00:00
Martin Pool
98c1b32565
Rather than literally "nobody", try using uid/gid = 65534 as
...
"nobody". The existing code kind-of assumes this.
2002-03-22 06:12:51 +00:00
Martin Pool
7a176e87d5
Better messages.
2002-03-22 06:09:09 +00:00
Martin Pool
79c9d8a180
Proper messages for skipped tests.
2002-03-22 06:07:50 +00:00
Martin Pool
7d8219327b
If tests are skipped, explain why.
2002-03-22 06:03:46 +00:00
Martin Pool
4ac4bdbb38
More sgml cleanups.
2002-03-22 06:02:28 +00:00
Martin Pool
f494f2864c
Doc about checkit.
2002-03-22 05:59:12 +00:00
Martin Pool
017f22b47f
Add /usr/xpg4/bin/ to PATH to help solaris.
2002-03-22 05:52:09 +00:00
Martin Pool
dec41b556b
Cope on systems without the whoami command.
2002-03-22 05:20:47 +00:00
Martin Pool
be2961da2c
If there's an error in start_socket_client, print an explanation as
...
well as failing.
Doc.
Trying to work out why daemon-gzip-download.test fails on SCO with
rsync error: unexplained error (code 190) at main.c(886)
2002-03-22 05:19:19 +00:00
Martin Pool
914cc65c9d
Doc.
2002-03-22 05:14:44 +00:00
Martin Pool
6479c2ed3f
Notes on logging etc
2002-03-22 05:11:39 +00:00
Martin Pool
c1a04ecbfd
Doc.
2002-03-22 05:08:53 +00:00
Martin Pool
69b06c50c4
Use id -G rather than groups to get a list of groups for this
...
user, so that we can cope on systems like Cygwin that tend to have
group names containing spaces.
2002-03-22 05:06:36 +00:00
Martin Pool
6aaf8d8c10
* Make "make install-strip" works properly, and "make install"
...
accepts a DESTDIR variable for help in building binary packages.
(Peter Breitenlohner)
2002-03-20 05:53:40 +00:00
Martin Pool
4cf64834ed
Patch from Paul Haas:
...
* Fix situation where failure to fork (e.g. because out of process
slots) would cause rsync to kill all processes owned by the
current user. Yes, really! (Paul Haas, Martin Pool)
Also, add a little more documentation and paranoia to make sure we
never call kill(2) with a negative pid.
2002-03-20 01:09:49 +00:00
David Dykstra
b8709f5046
Now that whole_file and no_whole_file are separate variables, have the
...
--whole-file and --no-whole-file options set/reset both variables so if
more than one option is specified the last one will be the one honored.
2002-03-19 20:16:42 +00:00
Martin Pool
24448f741f
Clean up sgml.
...
Add note about building with gcc.
2002-03-19 05:52:34 +00:00
Martin Pool
76533c52dc
todo: Versions of read() and write() that corrupt the stream, or abruptly fail
2002-03-19 05:23:04 +00:00
Martin Pool
3ff984d7a7
Fix --help layout.
2002-03-19 05:09:19 +00:00
Martin Pool
7a52790b50
Fix overly long line in version.
2002-03-19 05:01:36 +00:00
Martin Pool
7b329a2d79
Follow advice from GPL to insert a disclaimer of warranty in the
...
version and help information.
2002-03-19 05:00:05 +00:00
Martin Pool
599dc93c64
Doc: Pipe program that makes slow/jerky connections.
2002-03-19 04:14:30 +00:00
Martin Pool
8b54f00466
Include all fields in the options table to quieten gcc warnings about
...
missing initializers.
2002-03-19 04:10:07 +00:00
Martin Pool
8469faef03
Intentional test of assert :_)
2002-03-19 03:59:51 +00:00
Martin Pool
bceec82f35
Previous solution for --no-whole-file would probably break when
...
connecting to old servers that don't have --no-whole-file.
Instead, we handle no_whole_file and whole_file separately, without
the magic -1 value. We don't modify no_whole_file after
initialization.
2002-03-19 03:39:42 +00:00
Martin Pool
ed521de525
Sending --no-whole-file is no good because it will not work with old
...
versions of rsync.
2002-03-19 03:27:33 +00:00
Martin Pool
d157de203a
Typo.
2002-03-19 03:23:08 +00:00
Martin Pool
1bfbf40bd5
Fix --whole-file problem that caused it to be the default even for
...
remote connections. (Frank Schulz)
<http://lists.samba.org/pipermail/rsync/2002-March/006526.html >
Also, add documentation for whole_file and add assertions that the
value is valid.
2002-03-19 03:21:53 +00:00
Martin Pool
6d19c6742c
Need a test for "refuse options"
2002-03-16 09:26:33 +00:00
Martin Pool
a628b06977
Note about 100295@bugs.debian.org
2002-03-16 09:11:56 +00:00
Martin Pool
6b2d24de2c
Make sure that freeaddrinfo is called on all code paths leading away
...
from a call to getaddrinfo. (Dave Dykstra)
<20011219085021.A23107@lucent.com >
2002-03-16 09:00:44 +00:00
Martin Pool
e23d790fa7
Doc: Note from Dave Dykstra that getaddrinfo calls must be paired with
...
freeaddrinfo().
2002-03-16 08:23:08 +00:00
Martin Pool
2a5904a580
Add more rules for make distclean.
2002-03-16 08:21:15 +00:00
Martin Pool
4610ac79c2
"make distclean": We try to delete built files from both the source
...
and build directories, just in case somebody previously configured
things in the source directory.
2002-03-16 08:18:19 +00:00
Martin Pool
142f5be922
Note about --progress patch.
2002-03-16 00:00:43 +00:00
Martin Pool
b17dd0c435
Note about debian #28416
2002-03-15 14:01:43 +00:00
Martin Pool
3669201179
Add debian bug #
2002-03-15 13:42:42 +00:00
Martin Pool
a5c48193c7
Keep stderr and stdout properly separated (Debian #23626 )
2002-03-15 13:38:12 +00:00
Martin Pool
4366275bab
Doc: Debian uses "nogroup" instead of group "nobody", so our defaults
...
are not so good.
2002-03-15 12:53:21 +00:00
Martin Pool
c579310a00
If we've finished transferring a file, show the time taken; otherwise
...
show expected time to complete. That's kind of inconsistent, but
people can probably cope. Hopefully we'll get more consistent and
complete progress reporting soon. (Cameron Simpson)
2002-03-15 12:45:10 +00:00
Martin Pool
96553aa7ef
Typo.
2002-03-15 06:29:22 +00:00
Martin Pool
2094283b80
On Solaris, put /usr/ucb/bin at the end of the path to help find
...
utilities we might need. (Like 'whoami' in this case.)
2002-03-15 06:28:58 +00:00
Martin Pool
4c631ac621
Try to handle 'test -L' on Sun.
2002-03-15 01:22:09 +00:00
Martin Pool
d96d3893dd
Try to handle 'test -L' on Sun.
2002-03-15 01:08:53 +00:00
Martin Pool
b73b51a9e4
More notes
2002-03-15 01:04:25 +00:00
Martin Pool
3c1edccb7b
Suggestion from david.e.sewell to add --diff.
2002-03-15 01:03:24 +00:00
David Dykstra
b23c290630
Eliminate extraneous "done" messages in verbose mode. Problem reported by
...
Lee Eakin.
2002-03-14 21:20:20 +00:00
Martin Pool
c7b562becf
Correct the plural in "1 file to consider." (Greg Louis)
2002-03-14 12:00:12 +00:00
Martin Pool
5648a81936
Add phony target to run Splint.
2002-03-14 10:42:52 +00:00
Martin Pool
daa3d0e2da
"make install-strip" works. (Greg Louis)
2002-03-14 10:38:55 +00:00
Martin Pool
c9a66d41fe
Roll over news file; put in page markers.
2002-03-14 10:33:59 +00:00
Martin Pool
0ee1bd82c5
Bump version to 2.5.5cvs
2002-03-14 03:10:23 +00:00
Martin Pool
53e1f937bc
Show user name and uname -a in the test output header, to aid in bug
...
reports. (We mostly want to know if they're root or not.)
2002-03-14 03:04:36 +00:00
Martin Pool
604f343c49
Doc: "opening tcp connection to %s port %d" is kind of misleading when
...
running the test case.
2002-03-14 02:55:11 +00:00
Martin Pool
e9c4c3018b
More notes on testing.
2002-03-13 04:25:10 +00:00
Martin Pool
db1babe6a9
If a child of the rsync daemon dies with a signal, we should notice
...
that when we reap it and log a message.
2002-03-13 00:25:00 +00:00
Martin Pool
f1abcc7a4c
Bump version to 2.5.4.
2002-03-13 00:03:34 +00:00
Martin Pool
97e1254a2d
Notes on chmod.
2002-03-12 23:55:33 +00:00
Martin Pool
89b0a3d963
If we get an error writing to a socket, then we should perhaps
...
continue trying to read to see if an error message comes across
explaining why the socket is closed. I'm not sure if this would
work, but it would certainly make our messages more helpful.
2002-03-12 06:08:36 +00:00
Martin Pool
3a79260d3a
Add link to purify replacement.
2002-03-12 05:48:57 +00:00
Martin Pool
43a4dc1053
Add link to purify replacement.
2002-03-12 05:47:45 +00:00
Martin Pool
e53fe9a278
Note about TDB.
2002-03-12 05:41:25 +00:00
Martin Pool
f5a95bb50b
Notes on testing.
2002-03-12 05:39:29 +00:00
Martin Pool
0e23e41d48
Note about splint.
2002-03-12 05:33:39 +00:00
Martin Pool
ac69049ec2
Additional trivial merge patch from Jos
2002-03-12 02:07:36 +00:00
Martin Pool
b2a2dd1154
Get ready for new release.
2002-03-12 01:26:01 +00:00
Martin Pool
31837783c0
Update NEWS.
2002-03-12 01:22:56 +00:00
Martin Pool
d40fb72395
Get ready for new release.
2002-03-12 01:18:20 +00:00
Martin Pool
1c548d5e59
Bump version to 2.5.4pre1.
2002-03-12 01:15:49 +00:00
Martin Pool
be59d0ec23
Patch from Jos Backus to merge zlib-1.1.4.
2002-03-12 01:14:58 +00:00
Martin Pool
0bc467516a
Merge the zlib fix properly; back out tridge's bandaid.
2002-03-12 00:33:51 +00:00
Martin Pool
844f11f284
Clarify behaviour of installcheck.
2002-03-12 00:22:22 +00:00
Martin Pool
1cf1e7b3b4
Rename to README.testsuite, and bring it up to date.
2002-03-12 00:20:16 +00:00
Martin Pool
18b72cc829
Try to download a tree over a compressed connection to a daemon.
2002-03-12 00:11:35 +00:00
Martin Pool
271f87e5d4
This test tries to upload a file over a compressed connection to the
...
server. This ought to exercise (exorcise? :-) a bug in 2.5.3. It
ought to fail there and pass with later versions.
2002-03-12 00:09:09 +00:00
Martin Pool
2e6c7f4549
Fix generated rsyncd.conf file for testing.
2002-03-12 00:04:03 +00:00
Andrew Tridgell
6819304740
a quick fix for a segmentation fault in zlib I am getting whenever I
...
try to upload a file from rsync 2.5.2 to rsync 2.5.3
2002-03-11 18:54:51 +00:00
Martin Pool
a795ab99c7
Set version to 2.5.3.
2002-03-11 05:58:31 +00:00
Martin Pool
567e56313a
Merge zlib double-free bug forwarded by Mark J Cox.
2002-03-11 05:55:33 +00:00
Martin Pool
9e95e92bdf
Note on zlib patch merge.
2002-03-11 05:52:22 +00:00
Martin Pool
be60c7b9d1
Try to merge across changes in zlib from 1.1.2 to 1.1.3.
2002-03-11 03:56:35 +00:00
Martin Pool
7d81641065
Note about merging zlib 1.1.3.
2002-03-11 03:44:44 +00:00
Martin Pool
17d8573ef0
Bump version to 2.5.3pre3.
2002-03-11 03:40:23 +00:00
Martin Pool
e2dd78f744
Add CVE number.
2002-03-11 03:39:49 +00:00
Martin Pool
06b91d8eb9
Try to merge across changes in zlib from 1.1.2 to 1.1.3.
2002-03-11 03:35:35 +00:00
Martin Pool
9ec5422c37
Try adding some FAQs from the FoM
2002-03-11 00:58:36 +00:00
Martin Pool
1935e11c3c
Use SGML rather than texinfo.
2002-03-11 00:38:03 +00:00
Martin Pool
ec14031abd
More merges into SGML.
2002-03-11 00:36:47 +00:00
Martin Pool
024a9bafbd
Notes on processing the SGML stuff.
2002-03-11 00:27:42 +00:00
Martin Pool
27741d9fd9
Notes from Rasmus about statistics.
2002-03-08 04:41:11 +00:00
David Dykstra
e3bdb76326
Cygwin doesn't have setgroups() so probe for the function in configure
...
and don't try to call it if it doesn't exist.
2002-02-27 23:15:55 +00:00
David Dykstra
9369576459
I had accidentally deleted the case for --include-from when I added
...
the --no-blocking-io and --no-whole-file options. This adds it back in.
2002-02-27 22:49:57 +00:00
Martin Pool
8a405c6ca1
Try out DocBook SGML to see if it's easier than Texinfo.
2002-02-25 20:07:11 +00:00
Martin Pool
94ad1c6477
Start of Python code to generate likely-looking pseudo random file
...
trees to reproducibly test performance on specified size sets.
2002-02-25 18:54:27 +00:00
Martin Pool
6f039cc2ac
Merge Texinfo onto head.
2002-02-25 18:52:02 +00:00
Martin Pool
6216ca2c70
Add targets to build documentation from Texinfo.
2002-02-25 18:48:25 +00:00
Martin Pool
c6e27b608e
More discussion about zlib.
2002-02-25 18:28:37 +00:00
Martin Pool
f76584a57c
Scrappy notes on hot functions that should be fixed
2002-02-25 18:06:33 +00:00
Martin Pool
7bea78ced6
With -vv, client shows a message when opening a daemon connection via
...
an HTTP proxy. This parallels the recent addition of a log message
for opening ssh connections.
2002-02-23 01:00:33 +00:00
Martin Pool
1264288cb5
With -vv, client shows a message when opening a daemon connection.
...
This parallels the recent addition of a log message for opening ssh
connections.
2002-02-23 00:57:30 +00:00
Martin Pool
0f0ea7f779
Add UNUSED macro that expands to a parameter attribute annotation on
...
gcc, to quieten its worries about parameters that must always be
unused.
2002-02-23 00:17:50 +00:00
Martin Pool
0b4af330ce
Doc.
2002-02-23 00:12:11 +00:00
Martin Pool
6dd41b67fb
print_child_argv can be static.
2002-02-23 00:05:06 +00:00
Martin Pool
1521eefb62
Make "make proto" work for VPATH builds.
2002-02-23 00:02:07 +00:00
Martin Pool
a036a0e818
Revert 1.134 -- this breaks Net/Free BSD.
2002-02-21 00:56:11 +00:00
Martin Pool
7583ded808
Make setgroups(0,0) unconditional -- accidentally thinking we have
...
don't it on a machine that does have supplementary groups would be a
security hole. If this breaks anything we'll fix it later.
2002-02-21 00:45:48 +00:00
Martin Pool
78818f4465
Add bug # for #132272
2002-02-21 00:26:06 +00:00
Martin Pool
7a49cb5667
Patch from Albert Chin to fix getaddrinfo on Tru64 UNIX 5.x.
2002-02-19 23:40:47 +00:00
Martin Pool
23212669ac
Bump version to 2.5.3pre1
2002-02-19 02:16:37 +00:00
Martin Pool
3ce0f9a653
Clean up error message
2002-02-19 01:41:20 +00:00
Martin Pool
d834adc14f
Doc
2002-02-19 01:39:11 +00:00
Martin Pool
b84ba8967a
rsync prefix on mkdir and pushdir error messages.
2002-02-19 01:07:24 +00:00
Martin Pool
79845f2834
Doc.
2002-02-18 23:36:10 +00:00
Martin Pool
78ece130a4
Change shell syntax to try to please Solaris
2002-02-18 23:09:50 +00:00
Martin Pool
bd37c66630
Fix error handling for failing to fork after accepting a connection --
...
close fd, sleep, then try again.
2002-02-18 22:58:49 +00:00
Martin Pool
371d1c36b3
Solaris does not have diff -u.
2002-02-18 22:55:21 +00:00
Martin Pool
d0f821ad3d
Must use STRUCT_STAT not "struct stat" to be compatible with other
...
rsync functions.
2002-02-18 22:49:00 +00:00
Martin Pool
ded8347d6b
Cope with BSD systems on which mkdir() will not accept a trailing
...
slash.
<http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2734739.html >
2002-02-18 22:44:23 +00:00
Martin Pool
c4a5c57dc3
If the daemon is unable to fork a child to accept a connection, print
...
an error message. (Colin Walters)
2002-02-18 22:38:03 +00:00
Martin Pool
404e813c52
Add -vvv trace statement to set_modtime to help with Debian bug
...
#100295 .
2002-02-18 22:25:55 +00:00
Martin Pool
90d0a8db38
This test must specify --times because it compares listings that
...
include mtimes.
2002-02-18 22:14:46 +00:00
Martin Pool
956ff9ff72
Fix bug that made tls.o not be removed by 'make clean'.
2002-02-18 22:07:44 +00:00
Martin Pool
1eca49c6ed
Doc:
...
#defiine lchown chown
could be bad on systems which have no lchown and where chown
follows symbollic links. On such systems it might be better not to
try to chown symlinks at all.
2002-02-18 21:46:49 +00:00
Martin Pool
34758d5c15
Ignore SIGPIPE and allow EPIPE to get through to the program so that
...
we don't get stuck in a recursive loop trying to report a broken pipe
across that same broken pipe. Debian bug #128632 (Colin Walters)
2002-02-18 20:06:57 +00:00
Martin Pool
befbfe6115
Fix for rsync server processes hanging around after the client
...
unexpectedly disconnects. (Colin Walters) (Debian bug #128632 )
2002-02-18 19:54:00 +00:00
Martin Pool
900748fca1
rwrite: Doc.
2002-02-18 19:51:12 +00:00
Martin Pool
87ee248169
Document multiplex stuff.
2002-02-18 19:44:04 +00:00
Martin Pool
bb7c4fa361
Doc.
2002-02-18 19:10:28 +00:00
David Dykstra
c613d37048
If a daemon prints an error message of @ERROR, have the client treat the
...
message as an FERROR rather than an FINFO.
2002-02-18 18:29:48 +00:00
David Dykstra
d52a22e4db
Add item about fixing "out of memory in flist_expand" on Sunos4.
2002-02-14 15:27:55 +00:00
David Dykstra
6dfb45bcdf
Added the two most important bug fixes to NEWS to make sure they're not
...
forgotten for the next release.
2002-02-13 18:57:06 +00:00
David Dykstra
145794936f
Patch from Jos Backus <josb@cncdsl.com> to use HAVE_SOCKADDR_LEN rather
...
than HAVE_SOCK_SIN_LEN around use of sin_len. Correct usage was already
in place in clientname.c.
2002-02-13 18:45:17 +00:00
David Dykstra
301c680fd7
Suggested patch from Jim Ogilvie <jogilvie@us.ibm.com> to print out the
...
system error message when mkstemp fails.
2002-02-13 18:42:20 +00:00
David Dykstra
d27cbec598
Reversing the order of maybe_emit_filelist_progress() and
...
emit_filelist_progress() makes the native compilers on systems
including Solaris and Irix happier.
2002-02-13 18:30:27 +00:00
David Dykstra
f5be54d6ab
Some systems, notably Sunos4, do not support realloc(NULL, n), so if
...
nothing has yet been malloced in flist_expand(), call malloc instead of
realloc. Problem introduced in revision 1.106 of flist.c on January 25.
2002-02-13 18:06:36 +00:00
Martin Pool
1e19f7ba5f
At least change INO64_T and DEV64_T back to just 'int64', not
...
'unsigned int64'. This should fix some compile problems on machines
where int64 is not a simple integer type, but I'm not convinced it is
the ideal fix.
2002-02-13 02:57:55 +00:00
Martin Pool
db719fb0d7
Factor out code for filelist progress. Copy&paste considered harmful.
...
Add a little doc about potential optimization of stat() calls.
2002-02-13 02:44:31 +00:00
Martin Pool
b0d4f4c10e
Add a test that --owner correctly propagates ownership of files for a
...
local transfer as root.
2002-02-09 07:43:13 +00:00
Martin Pool
238d23d775
Add a test that --group correctly propagates groups of which the local
...
user is a member.
2002-02-09 07:42:37 +00:00
Martin Pool
c019068f06
Add $preserve_scratch and $always_log so if you want to see details
...
about successful tests, you can.
2002-02-09 03:36:33 +00:00
Martin Pool
715d1f4504
Oops -- have to call setgroups() before giving up root.
...
Doc some of the peculiarities about starting rsyncd as root vs
non-root.
2002-02-09 03:30:22 +00:00
Martin Pool
4f092bee9f
Make sure we call setgroups() after setuid(). (Ethan Benson)
2002-02-09 02:18:42 +00:00
David Dykstra
1bbd10fe07
Remove the "rsync:" prefixes on FINFO messages. Return the "building file
...
list ... done" to the way it was in 2.5.1 and before when not using -P.
Apply the file list progress messages when receiving files in addition to
sending files.
2002-02-07 16:36:12 +00:00
David Dykstra
088aac8597
Make batch mode actually work and add man page documentation. From Jos Backus.
2002-02-06 21:20:48 +00:00
Martin Pool
81c652d5d2
Merge modified --with-rsh patch: we now determine the default
...
remote-execution command as follows:
1) if --with-rsh is specified, use that.
2) otherwise if remsh is in the path, use that.
3) otherwise use rsh
If remsh is present, we always modify the order of parameters to suit
it. This is a bit strange.
2002-02-06 04:37:09 +00:00
Martin Pool
d7761c1480
Doc: Rusty's /*/* exclude hack produces spurious output with -vv.
2002-02-06 04:34:40 +00:00
David Dykstra
93689aa51a
Add --no-whole-file and --no-blocking-io options
2002-02-05 23:05:31 +00:00
Martin Pool
46e6ad492a
Only print the command used to open connections with -vv, not just -v.
2002-02-05 00:37:53 +00:00
Martin Pool
97efa5c36c
Roll over NEWS
2002-02-05 00:35:31 +00:00
Martin Pool
0b1ffe2755
Only print the command used to open connections with -vv, not just -v.
...
<Pine.LNX.4.33L2.0201301015260.11155-100000@phong.blorf.net >
2002-02-05 00:34:03 +00:00
Martin Pool
8c35542d1f
Patch from wayned so that add_exclude_list produces clearer debugging
...
output with -vvv.
2002-02-05 00:25:52 +00:00
Andrew Tridgell
0e9480317d
the signed/unsigned change seems to have caused a logic bug on some
...
systems (only those without large file support perhaps?)
this fixes it
2002-02-03 01:38:39 +00:00
David Dykstra
b695d088cf
Better explanation of --force. It is applicable whenever --delete is
...
not in effect.
2002-01-29 21:52:57 +00:00
David Dykstra
81dc5750ca
A more accurate description of --force as I know it.
2002-01-28 21:09:03 +00:00
David Dykstra
d82434cf27
Clarify the --force entry in the rsync man page.
2002-01-28 17:06:04 +00:00
Martin Pool
cd6058f3d4
Oops, version should be just 2.5.2.
2002-01-25 23:19:21 +00:00
Martin Pool
9be3ba223c
Bump version to 2.5.3.
2002-01-25 23:16:18 +00:00
Martin Pool
a261989cda
More signedness fixes; should be harmless.
2002-01-25 23:07:33 +00:00
Martin Pool
7b5c3eb05e
io_end_buffering doesn't need (or use) it's fd parameter: there's only
...
one multiplexed stream.
2002-01-25 23:01:50 +00:00
Martin Pool
0feec72eee
DEV64_t and INO64_T should probably be unsigned
2002-01-25 23:00:21 +00:00
Martin Pool
be8bd99aa4
check_name doesn't need a socklen_t, because it knows what is inside
...
each sockaddr type.
2002-01-25 22:59:37 +00:00
Martin Pool
355b8bcd73
Add test case for device nodes. This test will be skipped unless you
...
run "make check" as root.
2002-01-25 10:56:43 +00:00
Martin Pool
d58e4c273c
When comparing directories, use find . to call diff, rather than
...
diff -r. Two reasons: diff -r might not work everywhere, and it also
might complain about nonregular files.
2002-01-25 10:55:59 +00:00
Martin Pool
a217ad3095
Add test_skipped function.
2002-01-25 10:47:47 +00:00
Martin Pool
3d6feada8a
New --ignore-existing option, patch previously distributed with
...
Vipul's Razor. (Debian #124286 )
2002-01-25 10:42:23 +00:00
Martin Pool
5f78da2025
Fix for device nodes. (dann frazier) (Debian #129135 )
2002-01-25 10:39:08 +00:00
Martin Pool
a05e4fa512
Fix for device nodes. (dann frazier) (Debian #129135 )
2002-01-25 10:28:13 +00:00
Martin Pool
2119a4c462
Another DEV64_T change.
2002-01-25 10:16:11 +00:00
Martin Pool
1d5a1da9f8
With -vv, when the file list grows, show a message.
2002-01-25 10:12:36 +00:00
Martin Pool
2e7d19945c
With -vv, when the file list grows, show a message.
2002-01-25 10:12:02 +00:00
Martin Pool
5d2c5c4c73
Undo overzealous deletion.
2002-01-25 10:09:00 +00:00
Martin Pool
8694312695
Add dummy show_flist_stats().
2002-01-25 10:06:36 +00:00
Martin Pool
d9d6bc5278
Factor out code to grow the file list into a common location.
2002-01-25 10:05:49 +00:00
Martin Pool
ebed4c3af0
indent -kr -i8
2002-01-25 09:59:00 +00:00
Martin Pool
172875cf15
Add link to the message that introduced string_area.
2002-01-25 09:54:21 +00:00
Martin Pool
4d26e9e4f4
mallinfo is implemented.
2002-01-25 09:45:45 +00:00
Martin Pool
8f4455f296
Notes about flist.
2002-01-25 09:44:17 +00:00
Martin Pool
2e1d43deb2
Ignore autoconf fluff.
2002-01-25 02:53:48 +00:00
Martin Pool
6780f72000
Add code to compare sin6_addrs.
2002-01-25 02:45:09 +00:00
Martin Pool
39e01d2d4b
Back out last change -- to see whether an address is spoofed, we don't
...
want to look at the whole sockaddr, but rather just at the sin_addr
that it contains.
Also fix silly bug where ai_flags was set incorrectly for getaddrinfo.
2002-01-25 02:43:35 +00:00
Martin Pool
f75502950b
compare_addrinfo_sockaddr: Add code to compare AF_INET6 addresses.
2002-01-25 02:37:20 +00:00
Martin Pool
974f27e7e9
Split out code to compare addrinfo and sockaddr into it's own
...
function. The comparison cannot be done just byte-by-byte, because
different parts of the sockaddr will be meaningful depending on the
protocol. It looks like on some systems the library sets the unused
parts to 0, but this is not reliable. IPv6 not implemented yet.
2002-01-25 02:29:53 +00:00
Martin Pool
af32f69eb0
Doc.
2002-01-25 02:15:58 +00:00
Martin Pool
0cd2f40764
The name resolution stuff is getting complicated -- split it out into
...
its own file.
2002-01-25 02:13:04 +00:00
Martin Pool
0d95824995
Verbose messages for spoof check... doesn't work on old linux libc?
2002-01-24 09:42:52 +00:00
Martin Pool
bbc09ffba9
When doing a name->addr translation to check for spoofing, give the
...
resolver the address family of the original address as a hint, so that
we're more likely to find the correct A or AAAA record.,
2002-01-24 08:52:28 +00:00
Martin Pool
a4677968cf
Message on successful configuration.
2002-01-24 08:50:35 +00:00
Martin Pool
03b1cddc31
Fix comment.
...
Bump version to 2.5.2pre3
2002-01-24 08:42:21 +00:00
Martin Pool
9c2dd04993
Name resolution on machines supporting IPv6 is improved.
2002-01-24 08:20:51 +00:00
Martin Pool
a84a93fafe
ignore gmon.out
2002-01-24 08:19:28 +00:00
Martin Pool
5fdcc397b1
Fix getpeername call.
2002-01-24 08:16:27 +00:00
Martin Pool
5664871e5f
size_t fix.
2002-01-24 08:09:46 +00:00
Martin Pool
55d9e0fada
write_batch_csums_file: Opaque IO buffers should be void*.
2002-01-24 08:08:56 +00:00
Martin Pool
929e3011c6
Fix cast that was breaking HP/UX.
2002-01-24 08:07:35 +00:00
Martin Pool
07d70ff560
Move both calls to getpeername into a common wrapper function that
...
handles IPV4_MAPPED addresses.
2002-01-24 08:05:22 +00:00
Martin Pool
58c2960960
Must get declarations from addrinfo.h before prototypes.
2002-01-24 07:22:38 +00:00
Martin Pool
00d943d513
Another size_t warning
2002-01-24 05:57:49 +00:00
Martin Pool
71c780da06
check_name: Print out name *before* clobbering it.
2002-01-24 05:57:22 +00:00
Martin Pool
3b18cba889
Try to fix error on Solaris:
...
+ [ -f /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/referent ]
+ [ -d /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/from ]
+ [ -L /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/dangling ]
./testsuite/symlink-ignore.test: test: argument expected
Solaris says it supports -L, so I'm not sure what's happening...
2002-01-24 05:54:47 +00:00
Martin Pool
2974e20550
If name lookup fails, then show the relevant IP address in the error message.
2002-01-24 05:41:46 +00:00
Martin Pool
430d841a2c
At the connections that just get a list of modules are not logged,
...
but they should be.
2002-01-24 04:49:07 +00:00
Martin Pool
31ec50d7da
rsync_module: If host-based access fails, show the exact name/address
...
used for the check in the error message. (Just in case...)
2002-01-24 04:41:09 +00:00
Martin Pool
5ad0e46f08
Show command used to start connection child.
2002-01-24 04:36:00 +00:00
Martin Pool
1b5814e338
indent -kr -i8
2002-01-24 04:26:55 +00:00
Martin Pool
255810c0d6
Doc.
...
Oops, connection program message was in the wrong place.
2002-01-24 04:24:12 +00:00
Martin Pool
5d2640376e
Show helper program with -v when opening connection.
...
Doc.
2002-01-24 04:21:42 +00:00
Martin Pool
d02984bbb7
Doc.
2002-01-24 04:19:41 +00:00
Martin Pool
0f9555207a
Fix const
2002-01-24 04:07:07 +00:00
Martin Pool
885448d74c
Unbreak the old behavior of using UNKNOWN as a hostname if any of the
...
addr->name->addr translations fail, because people might count on this
in "hosts deny" lines.
2002-01-24 04:03:06 +00:00
Martin Pool
b14545b3ff
Fix inverted sense of error check.
2002-01-24 03:31:28 +00:00
Martin Pool
9a5a86734f
Refactor client_name() into smaller functions.
...
Better messages for DNS failure.
If we can get a reverse name for an IP address, but not confirm that
it is correct using a forward lookup then we still proceed to use the
name, but also emit a warning.
2002-01-24 03:28:20 +00:00
Martin Pool
d1d1505045
Doc.
2002-01-24 03:03:20 +00:00
Martin Pool
144ce1dc21
Bump version to 2.5.2pre2.
2002-01-24 03:01:42 +00:00
Martin Pool
aa126974ba
log_formatted: Fill the log buffer with nuls to make sure we cannot
...
accidentally leave the string unterminated.
2002-01-24 02:41:38 +00:00
Martin Pool
707de53457
Another harmless size_t warning.
2002-01-24 02:33:45 +00:00