aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-02-06 18:41:32 +0000
committerWayne Davison <wayned@samba.org>2006-02-06 18:41:32 +0000
commit5974c662ff09825ebfedb84ad300b113618f45f9 (patch)
tree579b87e1e5cdc891f2f3840d41afe77fa8163826 /options.c
parentaa0bec8a522cf3bed47cced46b6ac5fa9951e9c6 (diff)
downloadandroid_external_rsync-5974c662ff09825ebfedb84ad300b113618f45f9.tar.gz
android_external_rsync-5974c662ff09825ebfedb84ad300b113618f45f9.tar.bz2
android_external_rsync-5974c662ff09825ebfedb84ad300b113618f45f9.zip
Added the --8-bit (-8) option.
Diffstat (limited to 'options.c')
-rw-r--r--options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.c b/options.c
index 50a820b5..55395cb5 100644
--- a/options.c
+++ b/options.c
@@ -79,6 +79,7 @@ int orig_umask = 0;
int relative_paths = -1;
int implied_dirs = 1;
int numeric_ids = 0;
+int allow_8bit_chars = 0;
int force_delete = 0;
int io_timeout = 0;
int allowed_lull = 0;
@@ -354,6 +355,7 @@ void usage(enum logcode F)
rprintf(F," --sockopts=OPTIONS specify custom TCP options\n");
rprintf(F," --blocking-io use blocking I/O for the remote shell\n");
rprintf(F," --stats give some file-transfer stats\n");
+ rprintf(F," -8, --8-bit leave high-bit chars unescaped in output\n");
rprintf(F," -h, --human-readable output numbers in a human-readable format\n");
rprintf(F," --si like human-readable, but use powers of 1000\n");
rprintf(F," --progress show progress during transfer\n");
@@ -510,6 +512,7 @@ static struct poptOption long_options[] = {
{"ipv4", '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
{"ipv6", '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },
#endif
+ {"8-bit", '8', POPT_ARG_NONE, &allow_8bit_chars, 0, 0, 0 },
{"address", 0, POPT_ARG_STRING, &bind_address, 0, 0, 0 },
{"port", 0, POPT_ARG_INT, &rsync_port, 0, 0, 0 },
{"sockopts", 0, POPT_ARG_STRING, &sockopts, 0, 0, 0 },