Displaying 6 results from an estimated 6 matches for "ic_send".
2008 Feb 20
1
[PATCH] build fix without iconv support
...--git a/clientserver.c b/clientserver.c
index 2d7c28f..694a72d 100644
--- a/clientserver.c
+++ b/clientserver.c
@@ -806,6 +806,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
exit_cleanup(RERR_UNSUPPORTED);
}
+#ifdef ICONV_OPTION
if (!iconv_opt) {
if (ic_send != (iconv_t)-1) {
iconv_close(ic_send);
@@ -816,6 +817,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
ic_recv = (iconv_t)-1;
}
}
+#endif
if (!numeric_ids
&& (use_chroot ? lp_numeric_ids(i) != False : lp_numeric_ids(i) == True))
diff...
2007 Nov 12
3
DO NOT REPLY [Bug 5075] New: Syncing with --iconv may yield protocol error
...a multiplexed stream. If this fails, rsync exits. */
static void mplex_write(int fd, enum msgcode code, const char *buf, size_t len,
int convert)
{
char buffer[BIGPATHBUFLEN]; /* Oversized for use by iconv code. */
size_t n = len;
#ifdef ICONV_OPTION
if (convert && ic_send == (iconv_t)-1)
#endif
convert = 0;
#ifdef ICONV_OPTION
/* We need to convert buf before doing anything else so that we
* can include the (converted) byte length in the message header.
*/
if (convert) {
xbuf outbuf, inbuf;...
2008 Mar 04
1
when rsync is called with -4 or -6, pass that on to ssh [PATCH]
...the ssh process. It checks that the remote shell
program is something that looks like ssh. Perhaps that could be done
cleaner...
Paul Slootman
--- a/main.c 2008-03-01 21:01:41.000000000 +0100
+++ b/main.c 2008-03-04 18:55:10.933488013 +0100
@@ -82,6 +82,7 @@
#ifdef ICONV_OPTION
extern iconv_t ic_send;
#endif
+extern int default_af_hint;
uid_t our_uid;
int local_server = 0;
@@ -381,6 +382,23 @@
*t++ = '\0';
}
+#ifdef AF_INET
+ if (default_af_hint == AF_INET) {
+ if (strncmp(cmd, "ssh", 3) == 0 || strstr(cmd, "/ssh") != N...
2008 Feb 26
4
rsync-3.0.0pre10 and iconv
Hello,
I am trying to get rsync-3.0.0pre10 --iconv option working between two linux hosts in local network.
The client host is running Fedora Core 4 (kernel 2.6.17) and is using iso8859-1 character set. LANG=en_US
The daemon host is running Centos 5 (kernel 2.6.18) and is using utf-8 character set. LANG=en_US.UTF-8
Rsync is transferring files properly without --iconv switch:
fc4: (connected
2008 Feb 15
4
Revised flags patch
...:33:09 2008
@@ -44,6 +44,7 @@ extern int protocol_version;
extern int protect_args;
extern int preserve_uid;
extern int preserve_gid;
+extern int preserve_fileflags;
extern int preserve_acls;
extern int preserve_xattrs;
extern int need_messages_from_generator;
@@ -60,7 +61,7 @@ extern iconv_t ic_send, ic_recv;
#endif
/* These index values are for the file-list's extra-attribute array. */
-int uid_ndx, gid_ndx, acls_ndx, xattrs_ndx, unsort_ndx;
+int uid_ndx, gid_ndx, fileflags_ndx, acls_ndx, xattrs_ndx, unsort_ndx;
#ifdef ICONV_OPTION
int filesfrom_convert = 0;
@@ -124,6 +125,8 @@ vo...
2015 Jul 11
2
C coding tips please / Localisation
...ndif
flist.c
-------
Below a lot of "extern" declarations, I added the following line ...
#define _(String) gettext (String)
... so that the code becomes as follows.
extern struct filter_list_struct daemon_filter_list;
#ifdef ICONV_OPTION
extern int filesfrom_convert;
extern iconv_t ic_send, ic_recv;
#endif
#define PTR_SIZE (sizeof (struct file_struct *))
/* Following line added for Localisation. This requires libintl.h to be
included in the main.c file.*/
#define _(String) gettext (String)
int io_error;
With the above modifications, when I use "make" to compile rsync, t...