Wayne Davison
a213d1cd6e
Move some code from util.c to util2.c and add sum_as_hex().
2013-06-11 13:36:44 -07:00
Wayne Davison
fc2d6fabe7
Set number_separator the first time it gets used.
2013-06-11 13:28:45 -07:00
Wayne Davison
a508e88fcf
More NEWS changes.
2013-06-09 22:28:24 -07:00
Wayne Davison
f0da824237
Upgrading zlib to 1.2.8.
2013-06-09 22:27:33 -07:00
Wayne Davison
b74250037c
Rename lsh.pl -> lsh.
2013-06-09 19:40:56 -07:00
Wayne Davison
f93094fa9f
Rename lsh -> lsh.sh.
2013-06-09 19:40:56 -07:00
Wayne Davison
baf382d62e
Updating NEWS with the latest changes.
2013-06-09 16:02:19 -07:00
Wayne Davison
12505e02b1
Allow --password-file=- for a stdin-supplied password.
2013-06-09 12:11:53 -07:00
Wayne Davison
d6df07392e
Fix module-name splitting with --protect-args.
...
Fixes bug 8838.
2013-06-02 15:54:48 -07:00
Wayne Davison
d9ca1e4990
Tweak --checksum-seed docs.
2013-06-02 13:14:27 -07:00
Wayne Davison
0ab8e166f4
Avoid preallocation on inplace file that is already long enough.
2013-06-02 12:37:48 -07:00
Wayne Davison
1e9ee19a71
Look for got_kill_signal in a couple more spots.
2013-05-28 12:59:47 -07:00
Wayne Davison
9bf065860f
Improve logic of code vs exit_code (etc.) in cleanup.
2013-05-26 16:23:37 -07:00
Wayne Davison
5b46454364
Forward a MSG_ERROR_EXIT value to generator too.
...
Fixes bug 9882.
2013-05-26 16:23:37 -07:00
Wayne Davison
d4070db631
Avoid I/O via signal-handler thread.
...
The cleanup code will try to flush the output buffer in some
circumstances, which is not valid if we're handling an async signal
(since it might have interrupted some partial I/O in the main thread).
These signals now set a flag and try to let the main I/O handler take
care of the exit strategy. Fixes a protocol error that could happen
when trying to exit after a kill signal.
2013-05-26 16:22:56 -07:00
Wayne Davison
cb784f18ec
Improve iconvbufs() to do more buffer size checks.
...
- If iconv() returns EINVAL or EILSEQ and the error is being ignored, make
sure that there is room in the output buffer to store the erroneous char.
- When accepting an erroneous char, be sure to break if there are no more
input characters (without calling iconv() with a zero input length).
2013-05-19 23:56:34 +00:00
Wayne Davison
2dc2070992
Fix msleep() if time goes backwards. Fixes bug 9789.
2013-05-19 22:55:08 +00:00
Wayne Davison
4442f8037b
Fixed unused variable warnings in free_stat_x.
2013-05-19 22:01:29 +00:00
Wayne Davison
333e3a9ff0
Add an implementation of getpass for systems that lack one.
2013-05-19 22:01:29 +00:00
Wayne Davison
94073d20e4
Use S_IXUSR instead of the now-obsolete S_IEXEC.
2013-05-19 22:01:29 +00:00
Wayne Davison
750ec9bcdc
Updated to the version dated 2013-04-24.
2013-05-19 22:01:07 +00:00
Wayne Davison
7fdba7aaf8
Updated to the version dated 2013-05-16.
2013-05-19 22:00:44 +00:00
Wayne Davison
eec26089b1
Improve description of --max-delete.
2013-01-20 11:30:08 -08:00
Wayne Davison
76340ea44c
Fix weird error in test programs on SunOS.
2013-01-19 12:07:38 -08:00
Wayne Davison
7e1a9c4d79
Update copyright year.
2013-01-19 11:05:53 -08:00
Wayne Davison
16a9883649
Update OLDNEWS with 3.0.9 info.
2013-01-19 11:05:15 -08:00
Wayne Davison
bd7d36cc6c
Free ACL/xattr info in try_dests_reg() loop.
2013-01-19 10:25:18 -08:00
Wayne Davison
d42e7181d5
Add free_stat_x() inline function.
2013-01-19 10:25:18 -08:00
Wayne Davison
c03bb3d181
Further improve non-empty-destination --link-dest behavior:
...
- Avoid relinking a file that is already linked correctly.
- Avoid trashing the stat buffer of an existing file in try_dests_reg().
2013-01-19 10:24:46 -08:00
Wayne Davison
cee326436c
Remove -3 return from try_dests_reg() again -- let it do a local copy
...
when the dest file is unlinked and the hard link fails.
2013-01-19 09:08:39 -08:00
Wayne Davison
0ae92567ed
Align fileio's map_ptr() reads. Fixes bug 8177.
2013-01-18 15:30:08 -08:00
Wayne Davison
42f759ad9a
Reformat a few things for wider lines.
2013-01-18 15:20:43 -08:00
Wayne Davison
e1ded58983
Improve handling of existing files for alt-dest opts.
...
Fixes bug #5644 .
2013-01-18 11:57:49 -08:00
Wayne Davison
0bacaccee6
Perl version of lsh that can change user w/o sudo.
2012-10-07 16:33:30 -07:00
Wayne Davison
d46f8314b6
Fix bogus "vanished file" with "./" prefixes.
...
Fixes bug 9212.
2012-10-07 10:47:58 -07:00
Wayne Davison
7cefbf106f
Fix indentation that used expanded tabs.
2012-10-03 15:20:43 -07:00
Wayne Davison
f143b55ef1
Avoid an unused variable warning if no setvbuf.
2012-09-23 12:03:19 -07:00
Wayne Davison
ee51a745c1
Make read_args() return the full request.
...
When a daemon is sent multiple request args, they are now joined into a
single return value (separated by spaces) so that the RSYNC_REQUEST
environment variable is accurate for any "pre-xfer exec". The values
in RSYNC_ARG# vars are no longer truncated at the "." arg, so that all
the request values are also listed (separately) in RSYNC_ARG#.
2012-09-23 11:15:36 -07:00
Wayne Davison
0d34fbdf5a
Make daemon listener exit w/code 0 on SIGTERM.
2012-06-16 10:31:14 -07:00
Wayne Davison
d51a3adb4f
Set the modtime to 0 on a partial file.
...
Fixes debian bug 624826.
2012-05-05 08:01:09 -07:00
Wayne Davison
b55115ec6f
Fix --only-write-batch hang with --hard-links.
...
Fixes bug 8565.
2012-01-28 12:04:26 -08:00
Wayne Davison
f5e2b8f803
Add a slash-stripping version of rsync in support dir.
2012-01-28 10:42:01 -08:00
Wayne Davison
41c5ba641f
flist->in_progress is only needed w/inc_recurese.
2012-01-28 10:42:01 -08:00
Wayne Davison
0dfd2a64ec
Make stderr line-buffered w/--msgs2stderr.
2012-01-28 10:42:01 -08:00
Wayne Davison
6686b93a7a
Add new --outbuf=N|L|B option.
2012-01-28 10:41:58 -08:00
Wayne Davison
9510fa9ab8
Allow --max-size=0 and --min-size=0.
...
Fixes bug 7965.
2011-12-24 12:35:37 -08:00
Wayne Davison
d74512eb05
Complain if the --block-size=N value is too large.
...
Fixes bug 8036.
2011-12-24 12:35:37 -08:00
Wayne Davison
1a2704512a
Improve the handling of verbose/debug messages
...
The sender no longer allows a filelist to be sent in the middle of
parsing an incoming message, so that the directory sending doesn't block
all further input reading. The generator no longer allows recursive
reading of info/error messages when it is waiting for the message buffer
to flush. This avoids a stack overflow when lots of messages are coming
from the receiver and the sender is not reading things quickly enough.
The I/O code now avoids sending debug messages that could mess up the
I/O buffer it was in the middle of tweaking. This fixes an infinite
loop in reduce_iobuf_size() with high levels of debug enabled. Several
I/O-related messages were changed to output only when --msgs2stderr is
enabled.
2011-12-21 12:14:49 -08:00
Wayne Davison
a3b62ff4cf
Avoid double-free of xattr/acl data in real_sx.
...
Fixes bug 8665.
2011-12-16 09:07:19 -08:00
Wayne Davison
60ef397057
Mention that %a and %h are daemon-only escapes.
2011-11-24 07:55:11 -08:00