aboutsummaryrefslogtreecommitdiff
path: root/net/csync2/files/patch-rsync.c
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2007-05-30 18:48:50 +0000
committerAaron Dalton <aaron@FreeBSD.org>2007-05-30 18:48:50 +0000
commit5a42f0702e495e6b9d8454e0a9028e6982411a04 (patch)
treedf5cf6f8c072649ed2beefbb70a457dd2e5fc380 /net/csync2/files/patch-rsync.c
parent4f9587b2f462144a96a427c12c7accc34662522e (diff)
downloadports-5a42f0702e495e6b9d8454e0a9028e6982411a04.tar.gz
ports-5a42f0702e495e6b9d8454e0a9028e6982411a04.zip
Notes
Diffstat (limited to 'net/csync2/files/patch-rsync.c')
-rw-r--r--net/csync2/files/patch-rsync.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/csync2/files/patch-rsync.c b/net/csync2/files/patch-rsync.c
new file mode 100644
index 000000000000..008f073598a9
--- /dev/null
+++ b/net/csync2/files/patch-rsync.c
@@ -0,0 +1,11 @@
+--- rsync.c.orig Wed May 16 10:59:08 2007
++++ rsync.c Wed May 16 10:59:17 2007
+@@ -82,7 +82,7 @@
+ long size;
+
+ if ( !conn_gets(buffer, 100) || sscanf(buffer, "octet-stream %ld\n", &size) != 1 ) {
+- if (!strcmp(buffer, "ERROR\n")) { errno=ENODATA; return -1; }
++ if (!strcmp(buffer, "ERROR\n")) { errno=EIO; return -1; }
+ csync_fatal("Format-error while receiving data.\n");
+ }
+