Displaying 10 results from an estimated 10 matches for "iconv_option".
Did you mean:
conv_options
2008 Feb 20
1
[PATCH] build fix without iconv support
diff --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) != Fal...
2007 Nov 12
3
DO NOT REPLY [Bug 5075] New: Syncing with --iconv may yield protocol error
...a possible rewrite:
/* Write an message to 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) {...
2009 Jan 24
2
[patch] Replace illegal characters in filenames for FAT (switch)
...ght place,
but here goes. It's a tiny patch at any rate.
--
Jonas H?ggqvist
rasher(at)rasher(dot)dk
-------------- next part --------------
diff --git a/options.c b/options.c
index 8b67275..bfcb3e6 100644
--- a/options.c
+++ b/options.c
@@ -197,6 +197,7 @@ int need_unsorted_flist = 0;
#ifdef ICONV_OPTION
char *iconv_opt = ICONV_OPTION;
#endif
+int fat_filenames = 0;
struct chmod_mode_struct *chmod_modes = NULL;
@@ -779,6 +780,7 @@ void usage(enum logcode F)
#ifdef ICONV_OPTION
rprintf(F," --iconv=CONVERT_SPEC request charset conversion of filenames\n");
#endif
+ rprint...
2007 Oct 07
2
DO NOT REPLY [Bug 5012] New: iconv: client charset used by server process
https://bugzilla.samba.org/show_bug.cgi?id=5012
Summary: iconv: client charset used by server process
Product: rsync
Version: 3.0.0
Platform: PPC
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: kaarle@web.de
2008 Sep 23
1
error receiving files from protocol 29 server
In debian bug #493559 (http://bugs.debian.org/493559) the problem is
that when requesting a file from an older version rsync, the remote
server gives an error:
$ rsync rsync://rsync.blackholes.us/zones/countries/countries.rbl /tmp
rsync: on remote machine: -: unknown option
rsync error: requested action not supported (code 4) at clientserver.c(517)
rsync: connection unexpectedly closed (4 bytes
2008 Mar 04
1
when rsync is called with -4 or -6, pass that on to ssh [PATCH]
...b at passing
the option on to 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...
2013 Oct 21
1
use_safe_inc_flist not set for 3.1.0 client -> 3.0.9 daemon
...been specifically disabled (?), here's a
patch to enable safe incremental file lists between a 3.1.0 client and
a pre 3.1.0 daemon (protocol version 30)
--- options.c.ORIG 2013-06-12 06:28:45.000000000 +1000
+++ options.c 2013-10-21 12:46:25.251082555 +1100
@@ -2477,6 +2477,8 @@
#ifdef ICONV_OPTION
argstr[x++] = 's';
#endif
+ if (protocol_version == 30)
+ argstr[x++] = 'f';
}
if (x >= (int)sizeof argstr) { /* Not possible... */
thanks,
/Per Lundqvist
2006 Oct 29
3
rsync+iconv
Wayne Davison wrote:
> On Fri, Oct 27, 2006 at 04:19:06PM +0600, Yakov Hrebtov wrote:
>> This test compiles and executes without "failed" message. Hence
>> iconv_open("UTF-8","CP1251") succeeded.
>
> Check to see if the two programs are linking differently. Perhaps
> configure decided that it needed -liconv when that that library
>
2008 Feb 15
4
Revised flags patch
...ssages_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 @@ void setup_protocol(int f_out,int f_in)
uid_ndx = ++file_extra_cnt;
if (preserve_gid)
gid_ndx = ++file_extra_cnt;
+ if (preserve_fileflags)
+ fileflags_ndx = ++file_extra_cnt;
if (preserve_acls && !am_sender)
acls_ndx = ++file_ex...
2015 Jul 11
2
C coding tips please / Localisation
...r/share/locale");
textdomain("rsync");
#endif
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 modificat...