diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-23 07:36:56 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-23 07:36:56 +0000 |
commit | 554e0a8dd0079cd8d28dbb30ffd90010f2f97933 (patch) | |
tree | 6d739945244b9889fde61556e54f77dd4ab53c8e /receiver.c | |
parent | b0f3f5784c8635fe08d5d8e397f476a0c9ccba66 (diff) | |
download | android_external_rsync-554e0a8dd0079cd8d28dbb30ffd90010f2f97933.tar.gz android_external_rsync-554e0a8dd0079cd8d28dbb30ffd90010f2f97933.tar.bz2 android_external_rsync-554e0a8dd0079cd8d28dbb30ffd90010f2f97933.zip |
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.
Diffstat (limited to 'receiver.c')
-rw-r--r-- | receiver.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -468,7 +468,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen) finish_transfer(fname, fnametmp, file); cleanup_disable(); - + if (!recv_ok) { if (csum_length == SUM_LENGTH) { rprintf(FERROR,"ERROR: file corruption in %s. File changed during transfer?\n", |