| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
<krahmer@suse.de> -- in some cases we were not sufficiently careful
about reading integers from the network.
Possibly some other changes are required.
|
|
|
|
|
| |
do_hard_links() actually only looks at the global hardlink table, so
it can be a (void) fn. (Another gcc warning...)
|
|
|
|
|
|
|
| |
in some cases we were not sufficiently careful about reading integers
from the network.
Also, make sure log messages are always nul-terminated.
|
|
|
|
|
| |
hardlinks if coming from a larger platform. Add heaps of comments
explaining why this is so.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
when using --progress
|
|
|
|
| |
another program) during an update
|
|
|
|
| |
pointed out by byrnes@curl.com
|
|
|
|
| |
this is very useful for incremental backups
|
|
|
|
| |
(thanks to T.J.Adye@rl.ac.uk)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
preserve_perms is off.
|
| |
|
|
|
|
| |
and O_BINARY
|
|
|
|
| |
permissions on directories after a transfer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
--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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
executable is busy on HPUX), rename it instead to .rsyncNNN. Most of
the code was submitted by Ketil Kristiansen <ketil-k@osc.no>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
other access resulted in group and other access being left off when the
'-p' option was not used. This fixes it by reintroducing the ACCESSPERMS
mask and setting permissions to (file->mode & ACCESSPERMS) if preserve_perms
is off. I decided to change the mask INITPERMMASK to INITACCESSPERMS at
the same time. When preserve_perms is off, rsync is restored to the
previous behavior of having the permissions of the original file with the
umask and setuid/setgid bits shut off.
Also, I decided that a check for "(updated && (file->mode & ~ACCESSPERMS))"
is no longer needed since as far as I can tell that would have only affected
permissions when not running as root and when a chgrp was done to a group
the user was not a member of, using system V chgrp semantics. This is no
longer allowed.
|
|
|
|
|
|
|
| |
an obscure race-condition security hole where a file may for a short time
have the wrong group. Could have used 707 instead but that's just too weird
of a permission. The define name used to be ACCESSPERMS but that is defined
as 777 on Linux, so changed the name to INITPERMMASK.
|
|
|
|
|
|
|
|
| |
in receiver.c because it confuses people when they do something like
rsync /etc/passwd /tmp/nonexistentdir/passwd
and it printed out something like
open /tmp/noniexistentdir/.passwd.a004d5 : No such file or directory
Reported by kurt_granroth@pobox.com in PR #1253.
|
|
|
|
| |
suggested patch from Kanai Makoto (kanai@hallab.co.jp).
|
|
|
|
|
|
| |
OpenBSD functions of the same name.
changed slprintf() to take buffer length rather than buffer length -1
|
|
|
|
| |
mkstemp.
|
|
|
|
| |
different exit codes for different conditions.
|
|
|
|
|
| |
how many bytes were needed to be transferred for each file. I added %b
and %c log format options to cover this. See the man page for details.
|
|
|
|
|
| |
a 4 byte integer type (short is 8 bytes). I needed to use a new md4
implementation (I used the portable one I wrote for Samba).
|
|
|
|
|
|
|
| |
Jason Andrade convinced me to add ftpd style logging of transfers,
enabled with a "transfer logging" option in rsyncd.conf
you can customise the format in log.c
|
|
|
|
|
| |
for comparisons when syncing. Useful for syncing into a scratch area and
doing a flash-cutover when it is completed.
|
| |
|
|
for the 3 logical stages of rsync; generator, sender and receiver.
|