Age | Commit message (Collapse) | Author |
|
|
|
339cf5998c0c022623cd68de50722b6c14543952 Push "error trail" further into code.
baf58ce5fe1bc6ce431b3b0ac8264b83ae8c7d02 Document all arguments. Add
common -av usage. Remove bits about not supporting anything but
files/dirs.
821a811a8c80e52fb56b241fc65a16cae1b4fb2c Disambiguate as prodded by deraadt@
6c4475b8f226e9031ec0ec1b3f14f7d347132c87 Add -h to usage string
4d344ae6156873b44c95de0c1ed629e637c2d7ab Clarify error message
language, use service name instead of port, specify that the socket is
SOCK_STREAM. From deraadt@. Tweaked for lowercase messages.
f3ec049e76257fc96bcdc872f1d3b967b98f3eb6 In consideration to benno@'s
comments, let the mktemp functions propogate an errno handled by the
caller. Also keep the original line lengths. While in mktemp.c, make
some defines into an enum.
e116c2bd00e634b56e4276120135915ceaa31cf2 Put the FSM of the sender
into its own function. Put dry_run ack and end of phase ack into the
send buffer too, further reducing the possibility of deadlock.
c7745aa4c7394ca89d841f8ee76782256d694340 Make the sender write loop be
fully non-blocking. This frees us of deadlocking the protocol because
the sender will always be able to pull down data.
93c7b4843e80aeac2ec6ae6ffc395df4deaf4a31 Remove "yoda" notation to be
more in tune with OpenBSD. Most found by deraadt@.
|
|
|
|
339cf5998c0c022623cd68de50722b6c14543952 Push "error trail" further into code.
baf58ce5fe1bc6ce431b3b0ac8264b83ae8c7d02 Document all arguments. Add
common -av usage. Remove bits about not supporting anything but
files/dirs.
821a811a8c80e52fb56b241fc65a16cae1b4fb2c Disambiguate as prodded by deraadt@
6c4475b8f226e9031ec0ec1b3f14f7d347132c87 Add -h to usage string
4d344ae6156873b44c95de0c1ed629e637c2d7ab Clarify error message
language, use service name instead of port, specify that the socket is
SOCK_STREAM. From deraadt@. Tweaked for lowercase messages.
f3ec049e76257fc96bcdc872f1d3b967b98f3eb6 In consideration to benno@'s
comments, let the mktemp functions propogate an errno handled by the
caller. Also keep the original line lengths. While in mktemp.c, make
some defines into an enum.
e116c2bd00e634b56e4276120135915ceaa31cf2 Put the FSM of the sender
into its own function. Put dry_run ack and end of phase ack into the
send buffer too, further reducing the possibility of deadlock.
c7745aa4c7394ca89d841f8ee76782256d694340 Make the sender write loop be
fully non-blocking. This frees us of deadlocking the protocol because
the sender will always be able to pull down data.
93c7b4843e80aeac2ec6ae6ffc395df4deaf4a31 Remove "yoda" notation to be
more in tune with OpenBSD. Most found by deraadt@.
|
|
|
|
real rsync only supports numbers, but this supports service names also
ok florian benno
|
|
weak sauce EXIT_SUCCESS / EXIT_FAILURE model (in our tree very few programs
use this failed concept, almost as bad as sysexits.h)
|
|
|
|
|
|
possible on failure.
looked at by florian
|
|
ok florian
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ok florian
|
|
Remove spaces at end of line.
|
|
Make sender mostly nonblocking for writes. This takes a lot of logic once
in blocks.c and puts it directly into sender.c. It allows running openrsync
against itself without deadlocks.
|
|
Add the lowbuffer routines. I'll use this in subsequent commits, but they
pre-add the multiplexing frame instead of doing so during write. While here,
clean up a lot of ERRX -> ERRX1 and add documentation.
|
|
Use a static single block instead of multiple writes.
|
|
Make sender have reentrant sending and prioritised reading. This way,
the sender gets data off the wire as quickly as possible. While here,
remove dead wood from blocks.c (blk_merge).
|
|
Remove superfluous includes.
|
|
Fast-track reads back into a read loop to avoid the buffer with writes while
there are still reads pending. This resolve some bottlenecking.
|
|
|
|
ok benno
|
|
|
|
From kristaps, thanks!
|
|
|
|
"you snooze, you get collisions" deraadt@
|
|
We set permissions either when we create a new file or when the
-p flag is set.
"you snooze, you get collisions" deraadt@
|
|
mkstempat() works exactly like mkstemp(3) except that it replaces
open(2) with openat(2) so that it can be used in rsync_downloader()
to easily deal with relative paths.
mkstemplinkat() works somewhat like mkdtemp() to create a template
symlink.
Use the mkstemplinkat() to create or update symlinks and overwrite
existing objects including empty directories that might exist under
the destination name.
"you snooze, you get collisions" deraadt@
|
|
"you snooze, you get collisions" deraadt@
|
|
|
|
than 1 sec resolution
ok benno
|
|
lines telling them.
|
|
|
|
Put back stray -o passed into child and add missing pledge.
|
|
Document the -e splice, bring long line, put variable at top of
function block.
|
|
Enable -o.
|
|
Only preserve uids if we're root.
|
|
Put permission-setting code into its own function, as we'll need to call it
from several places. Also enable that -o sets the owner.
|
|
-o isn't finished yet...
|
|
Document preserving user ids.
|
|
Protocol-level support for -o. The actual sharing itself is more or less a
copy of the existing -g code. I've refactored a lot of the ids.c code to be
generic and only accept a "isgid", as the rest is the same. So there's some
churn as I make all references to "group" be generic.
|
|
|
|
ok benno, deraadt
|