J.W. Schultz
b7cee9498b
Eliminate unneeded strlen after strlcpy.
2004-01-20 03:37:04 +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
97feb557ed
Set stats.current_file_index.
2004-01-13 18:22:43 +00:00
Wayne Davison
3f55bd5dad
Got rid of support for protocols 17 and 18.
2004-01-08 00:45:41 +00:00
Wayne Davison
25bfc8cea1
Use new recv_generator() calling syntax.
2004-01-04 19:18:37 +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
76c2194714
Applying my updated version of Craig Barratt's buffered I/O patch.
2004-01-02 08:29:49 +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
17fadf7d40
Twiddled some whitespace and multi-line comments.
2003-12-15 08:14:27 +00:00
Wayne Davison
58cadc8608
Merged in the security fixes from 2.5.7.
2003-12-06 21:07:27 +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
d04e9c51b4
Changed "remote_version" to "protocol_version".
2003-09-09 15:58:48 +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
d01350a881
Got rid of signed/unsigned-comparison warning if st_dev is signed.
2003-08-21 23:45:49 +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
31f3b68a97
We should bump the deletion_count for backed-up deleted files too.
2003-08-01 08:20:53 +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
16417f8b9d
Only call show_progress() and end_progress() if do_progress is set.
2003-07-08 16:49:10 +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
bc63ae3f13
Removing vestigial support for protocol versions prior to 15.
2003-03-31 17:28:34 +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
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
85ed0aa396
Typo corrections.
...
Thanks to Paul Slootman <paul@debian.org >
2003-03-21 07:27:31 +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
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
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
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
Martin Pool
a261989cda
More signedness fixes; should be harmless.
2002-01-25 23:07:33 +00:00
Martin Pool
fae5bb3183
Doc.
...
do_hard_links() actually only looks at the global hardlink table, so
it can be a (void) fn. (Another gcc warning...)
2002-01-23 07:42:30 +00:00
Martin Pool
9dd891bb28
Signedness security patch from Sebastian Krahmer <krahmer@suse.de> --
...
in some cases we were not sufficiently careful about reading integers
from the network.
Also, make sure log messages are always nul-terminated.
2002-01-23 04:57:18 +00:00
Martin Pool
6abd193fe3
Always use 64-bit ino_t and dev_t internally, so that we can detect
...
hardlinks if coming from a larger platform. Add heaps of comments
explaining why this is so.
2002-01-11 08:25:32 +00:00
Andrew Tridgell
8950ac03f8
imported new snprintf.c from samba, got rid of slprintf
2001-05-07 06:59:37 +00:00
Andrew Tridgell
f62c17e378
use mkstemp on systems where it is secure
2001-05-02 08:33:18 +00:00
Martin Pool
e327acece4
Better error messages when unlink fails
2000-11-08 09:32:11 +00:00
Martin Pool
4e40377ac2
Better error messages when unlink fails
2000-11-08 09:32:10 +00:00
Andrew Tridgell
ef55c686bc
add a --ignore-errors option
2000-03-21 04:06:04 +00:00
Andrew Tridgell
166aa72332
patch from David Murn to make sure the final 100% is always printed
...
when using --progress
2000-01-25 06:39:33 +00:00
Andrew Tridgell
c55f70218c
fixed a rare SEGV that can happen when a file disappears (due to
...
another program) during an update
2000-01-24 11:41:08 +00:00
Andrew Tridgell
6957ae33a9
moved file deletion to before the fork() to prevent a race condition
...
pointed out by byrnes@curl.com
2000-01-24 11:20:25 +00:00
Andrew Tridgell
66203a982b
added --backup-dir option from Bob Edwards
...
this is very useful for incremental backups
2000-01-24 04:58:53 +00:00
Andrew Tridgell
5f808dfbd7
fix a problem with files > 2GB
...
(thanks to T.J.Adye@rl.ac.uk )
2000-01-23 12:30:34 +00:00
Andrew Tridgell
0b73ca12fa
added --max-delete option
2000-01-23 11:43:04 +00:00
Andrew Tridgell
554e0a8dd0
added some really ugly code to allow errors to propogate to
...
clients when writing to a rsync server
it works like this:
- we have an extra pipe from the receiver to the generator
- the server always runs with multiplexing on
- errors from the generator go down the multiplexed connection
- errors from the receiver go over the pipe, and from there to
the multiplexed conn
it required some incredibly ugly code. damn.
2000-01-23 07:36:56 +00:00
Andrew Tridgell
57df171bc0
added --delete-after option (suggested by Jason)
1999-11-08 13:03:05 +00:00
Andrew Tridgell
4df9f36841
solved the problem of not using the right permissions when
...
preserve_perms is off.
1999-10-31 04:28:03 +00:00
Andrew Tridgell
cda2ae84b3
added "ignore errors" option in rsyncd.conf
1999-10-31 02:19:24 +00:00
Andrew Tridgell
8c9fd200f9
use do_open() instead of open() in several places to help the WinXX port
...
and O_BINARY
1999-10-25 22:04:09 +00:00
Andrew Tridgell
e78733d975
fixed a nasty bug in the handling of "local_name" when setting the
...
permissions on directories after a transfer.
1999-04-06 10:56:18 +00:00
David Dykstra
752eaba41f
Backed out the change to create missing parent directories when using
...
--compare-dest. It was due to an incomplete analysis of the problem,
sorry. I left a comment in its place indicating that normally the
parent directories should already have been created.
It turned out to actually be a bug in nsbd in which it was not always
including all the parent directories in the include list like it was
supposed to. The files themselves were still being sent but that was only
because my exclude_the_rest optimization was kicking in; if it weren't,
excluding the parent directories would have had the side effect of
excluding the files too. So it really had nothing to do with the
--compare-dest option after all, just with the requirement that if you use
--exclude '*' you need to explicitly include all parent directories of
files you include.
1999-03-24 19:28:03 +00:00
David Dykstra
1f8413449d
Fix bug with --compare-dest option where missing parent directories in the
...
target destination were not getting created. There was a case in
receiver.c to do that but it was only getting invoked when the -R option is
specified, although I don't know why it was limited to that.
It's too bad I didn't get a chance to more fully test the use of
--compare-dest by my nsbd program before releasing rsync 2.3.0. I'll
probably need to put a workaround in nsbd too until the next release
of rsync.
1999-03-23 22:20:10 +00:00