Age | Commit message (Collapse) | Author |
|
Without this the server will immediatly fail because the poll timeout is 0.
Found and reported by Daniel Moch (daniel at danielmoch dot com)
|
|
inactivity. By default rsync will wait forever but this results in stuck
processes if the remote side does not answer properly as seen in rpki-client.
OK job@ benno@
|
|
The server's DNS name may yield multiple addresses of different address
families; in case the local client has no suitable address, i.e. connect(2)
fails with EADDRNOTAVAIL, do not fail hard but try the next address instead.
Report (IPv6 only client with dualstack server) and diff from Sasha Romijn.
OK job
|
|
occasionally for fatal source-code bugs are critical and must be hunted down.
It is NOT suitable to expose regular users to this on a regular basis though.
ok kn beck
|
|
This is somewhat related to the "-b bind_addr" option some programs have,
which should get some cleanup also...
input florian claudio jmc
|
|
If somebody wants to install these two manual pages describing the
protocols, it is easy to put these two links back.
Dead links reported by <Aham dot Brahmasmi at gmx dot com>.
OK jmc@ florian@
|
|
read sequentially anyway, (hash-sized) block by block. This avoids
counting potentially large files against the memory limits of the
process. Problem reported by Jan Stary, thanks.
ok deraadt@
|
|
started with -v. In normal operation rsync should only print errors.
OK benno@ deraadt@
|
|
when connecting to a rsync daemon.
OK deraadt@ benno@ naddy@ sthen@
|
|
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
ok millert nicm tb, etc
|
|
suggestions and ok naddy@ and ok previois diff florian@.
from Hiltjo Posthuma hiltjo AT codemadness DOT org and
Bjoern Ketelaars bjorn DOT ketelaars AT hydroxide DOT nl,
Thanks.
|
|
Fixes a corner case where the socket was closed twice, reported by
Hiltjo Posthuma.
ok deraadt@
|
|
|
|
a rolling computation for the fast-hash.OB With this openrsync is on
par with gpl rsync for file updates.
From kristaps
|
|
from Hiltjo Posthuma
|
|
|
|
|
|
functions.
ok deraadt@
|
|
|
|
with the current formatting.
OK benno@ naddy@
The original suggestion to delete it rather than fix it came from deraadt@:
we do not want to encourage use of --rsync-path because it is important
that the openrsync client smoothly works with the Samba rsync server.
If it doesn't, we should fix it and not fragment the ecosystem.
|
|
and behaviour is the same as GPL rsync.
Initial diff received feedback from benno@, schwarze@, deraadt@ and
florian@. Thanks!
OK deraadt@
|
|
|
|
composition code for the remote process.
ok florian naddy
|
|
tweaks and OK deraadt@ naddy@
|
|
low-utility parts of the more useful and shorter -D. Nice because it
brings the synopsis down to two lines, and because the approach buys us
additional time before the synopsis may grow disgustingly long again.
"Shrug. Probably helps." deraadt@
|
|
in the io-path, whic is done by seperating int vs uint functions variants.
reviewed by naddy, florian, and jsg
|
|
into two functions, rsync_connect() to establish a TCP connection
to the remote daemon, and rsync_socket() to run the actual protocol.
E.g.:
rsync -av --del -e 'ssh -W localhost:rsync -lanoncvs' \
rsync://anoncvs.spacehopper.org/OpenBSD-CVS/ /cvs
ok deraadt@
|
|
aliases where short or shorter forms exist; of course, the long
versions remain in the full option listing as well as in the code.
Also drop some redundant repetions of .Fl macros.
OK jmc@ deraadt@
|
|
|
|
|
|
we know later how rsync wants to behave and how it interacts with future
option development. This sequence is safest, since it drops setugid bits
in case of failure to chown..
ok florian
|
|
Drop --no-delete. The "no-" prefix is only available for options
that are implied by other options. --delete is never implied and
GPL rsync does not accept --no-delete.
ok deraadt@
|
|
|
|
(previous commit was for read-side)
|
|
Diagnosed by krw, ok florian
|
|
yet. In the meantime, make it a warning-no-op, as most usage cases
will be satisfied by this (and hopefully annoy someone to write support)
ok florian benno
|
|
casting it into a time_t. If the remote doesn't muck things up, we may
make it through 2038.. (best that can be done without protocol repair
and coordination)
ok benno
|
|
|
|
to an enum, that's just alien). Documents the return values in each
function and unifies the protocol incompatibility error message.
from kristaps
|
|
because "man rsync" still ought to show the manual page from the port.
Consistently use the name "openrsync" for now.
Issue reported by espie@; OK jmc@.
|
|
ok millert@
|
|
|
|
|
|
ok deraadt benno
|
|
themselves with using it (as front end -- it will talk to the installed
'rsync' on the remote side). this will allow folks to give it a shot,
identify weaknesses, collaborate, etc etc etc
discussed with benno
|
|
so they don't need to be constructed to return errors.
ok benno florian
|
|
read by a C++ compiler, and __* are no lonmger recommended.
https://www.gnu.org/software/libtool/manual/html_node/C-header-files.html
ok deraadt@
|
|
Document that the gid/uid list may be empty. Fixes
https://github.com/kristapsdz/openrsync/issues/10
|
|
If we don't get a uid/gid map, such as with an rsync:// address, we
might not be able to map. So fall back on numeric ids.
|