Package: csync2
Severity: important
Version: 1.33-2
Tags: patch
Hi,
the current version fails to build on GNU/kFreeBSD.
rsync.c uses value for errno, which is not defined
on GNU/kFreeBSD. Please choose another one from
basic POSIX errors for signaling protocol error.
It would also be nice if you can inform
upstream about this issue.
Thanks in advance
Petr
--- rsync.c~ 2006-12-05 13:41:38.000000000 +0100
+++ rsync.c 2006-12-05 13:41:38.000000000 +0100
@@ -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=EINVAL; return -1; }
csync_fatal("Format-error while receiving data.\n");
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]