Displaying 20 results from an estimated 48 matches for "poptoption".
2004 Feb 20
1
[patch] fix for "refuse options" ignored due to popt
Hello,
I found the reason why "refuse options" is ignored on the server
side. When then 5th argument (int val) in the poptOption struct is
set to zero, the parsing function poptGetNextOpt() just continues
with the next arg, without returning. So check_refuse_options() is
simply not called in such cases.
The attached patch makes "refuse options" work with checksum and
compress. These are the most obvious options...
2004 May 02
0
rsync 2.6.2: clean up compilation warnings
...10:27:05.000000000 -0600
+++ rsync-2.6.2/popt/popthelp.c 2004-05-02 13:23:52.000000000 -0500
@@ -63,7 +63,7 @@
/**
* @param table option(s)
*/
-/*@observer@*/ /*@null@*/ static const char *const
+/*@observer@*/ /*@null@*/ static const char *
getTableTranslationDomain(/*@null@*/ const struct poptOption *table)
/*@*/
{
@@ -81,7 +81,7 @@
* @param opt option(s)
* @param translation_domain translation domain
*/
-/*@observer@*/ /*@null@*/ static const char *const
+/*@observer@*/ /*@null@*/ static const char *
getArgDescrip(const struct poptOption * opt,
/*@-paramuse@*/ /* FIX: wazzup? *...
2007 Aug 21
1
DO NOT REPLY [Bug 4907] New: --disable-ipv6 disables -4 option
...cripts every time I happen to run different rsync.
# So why not let -4 option exist even when someone has done --disable-ipv6 ?
#
--- rsync-2.6.9/options.c.bak 2006-11-07 16:25:52.617307000 +0200
+++ rsync-2.6.9/options.c 2007-08-21 21:12:17.462669790 +0300
@@ -533,8 +533,8 @@ static struct poptOption long_options[]
{"rsh", 'e', POPT_ARG_STRING, &shell_cmd, 0, 0, 0 },
{"rsync-path", 0, POPT_ARG_STRING, &rsync_path, 0, 0, 0 },
{"temp-dir", 'T', POPT_ARG_STRING, &tmpdir, 0, 0, 0 },
-#ifdef INET6
{"...
2002 Jan 07
2
rsync-2.5.1 / popt patches
...idth: 8; indent-tabs-mode: t; c-basic-offset: 4
-*- */
/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
@@ -26,7 +27,7 @@
} ;
-/*@observer@*/ /*@null@*/ static const char *const
+/*@observer@*/ /*@null@*/ static const char *
getTableTranslationDomain(const struct poptOption *table)
{
const struct poptOption *opt;
@@ -41,7 +42,7 @@
return NULL;
}
-/*@observer@*/ /*@null@*/ static const char *const
+/*@observer@*/ /*@null@*/ static const char *
getArgDescrip(const struct poptOption * opt, const char
*translation_domain)
{
if (!(opt->argInfo &a...
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...****
OPT_DELETE_AFTER, OPT_EXISTING, OPT_MAX_DELETE, OPT_BACKUP_DIR,
OPT_IGNORE_ERRORS, OPT_BWLIMIT, OPT_BLOCKING_IO,
OPT_NO_BLOCKING_IO, OPT_WHOLE_FILE, OPT_NO_WHOLE_FILE,
! OPT_MODIFY_WINDOW, OPT_READ_BATCH, OPT_WRITE_BATCH,
OPT_IGNORE_EXISTING};
static struct poptOption long_options[] = {
/* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
--- 289,296 ----
OPT_DELETE_AFTER, OPT_EXISTING, OPT_MAX_DELETE, OPT_BACKUP_DIR,
OPT_IGNORE_ERRORS, OPT_BWLIMIT, OPT_BLOCKING_IO,
OPT_NO_BLOCKING_IO, OPT_WHOLE_FILE, OPT_NO_WHOLE_FILE...
2005 Nov 01
2
request: add TCP buffer options to rsync CLI?
Dear rsync folks,
I'd like to request/suggest that cli options to set TCP send/receive buffers
be added to rsync client-side.
Summary:
I'm aware that a daemon's config-file can set socket options for
the server side
(e.g. SO_SNDBUF, SO_RCVBUF). That is useful.
But when trying to get high-throughput rsync over
long paths (i.e. large bandwidth*delay product), since
2020 Feb 09
3
[draft PATCH] whitelist support for refuse options
...options.c | 114 +++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 82 insertions(+), 32 deletions(-)
diff --git a/options.c b/options.c
index e5b0cb68..02d1b174 100644
--- a/options.c
+++ b/options.c
@@ -1133,39 +1133,101 @@ static void set_refuse_options(char *bp)
{
struct poptOption *op;
char *cp, shortname[2];
- int is_wild, found_match;
+ int is_wild, found_match, whitelist_mode, archive_whitelisted;
shortname[1] = '\0';
+ whitelist_mode = 0;
+ archive_whitelisted = 0;
+ /* We flag options for refusal by abusing the "descrip" field of
+ * struct po...
2002 May 04
1
A simpler move-files patch
...DIR,
OPT_IGNORE_ERRORS, OPT_BWLIMIT, OPT_BLOCKING_IO,
- OPT_NO_BLOCKING_IO, OPT_WHOLE_FILE, OPT_NO_WHOLE_FILE,
+ OPT_NO_BLOCKING_IO, OPT_WHOLE_FILE, OPT_NO_WHOLE_FILE, OPT_MOVE_FILES,
OPT_MODIFY_WINDOW, OPT_READ_BATCH, OPT_WRITE_BATCH, OPT_IGNORE_EXISTING};
static struct poptOption long_options[] = {
@@ -365,6 +367,7 @@
{"hard-links", 'H', POPT_ARG_NONE, &preserve_hard_links , 0, 0, 0 },
{"read-batch", 0, POPT_ARG_STRING, &batch_prefix, OPT_READ_BATCH, 0, 0 },
{"write-batch", 0, POPT_ARG_STRING, &b...
2002 Mar 28
1
(no subject)
...t.h, Line = 117
A type qualifier on a return type is meaningless.
/*@observer@*/ const char *const poptStrerror(const int error);
^
cc-3303 c89: WARNING File = popt/popthelp.c, Line = 30
A type qualifier on a return type is meaningless.
getTableTranslationDomain(const struct poptOption *table)
^
cc-3303 c89: WARNING File = popt/popthelp.c, Line = 45
A type qualifier on a return type is meaningless.
getArgDescrip(const struct poptOption * opt, const char *translation_domain)
^
c89 -mips3 -O2 -I. -I. -g -DHAVE_CONFIG_H -I./popt -c popt/poptparse.c -o popt/poptparse...
2008 Mar 11
1
[PATCH] Add --no-y.
...-
When a bunch of --no-* options were added (852e763b), --no-y was
forgotten. Here it is.
Matt
options.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/options.c b/options.c
index 4ac8846..82597bf 100644
--- a/options.c
+++ b/options.c
@@ -577,6 +577,7 @@ static struct poptOption long_options[] = {
{"link-dest", 0, POPT_ARG_STRING, 0, OPT_LINK_DEST, 0, 0 },
{"fuzzy", 'y', POPT_ARG_VAL, &fuzzy_basis, 1, 0, 0 },
{"no-fuzzy", 0, POPT_ARG_VAL, &fuzzy_basis, 0, 0, 0 },
+ {"no-y",...
2005 Jan 27
1
Modifying SWAT views for general users
I'm looking at having my general Samba users change their own passwords on
my Linux server using SWAT. Is there a way that I can have them have
access to the password changing view and not be able to see the
configuration and status information. Is there an easy way for those
"button" to not appear on the web page?
Roy Costa
roycosta at us.ibm.com
2013 Jun 03
1
Adding arguments to the options
...developing an application which uses the Rsync. I have added an
option for HTTPS in rsync code like '-v' for "--verbose".
But now I want to make that option to take the arguments. For that in
options.c file, I have added the entry in the array of structure as,
> static struct poptOption long_options[] = {
> /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
> {"xxxx", 'x', xxxxxxx, x, xxxxx, x, x},
> {"https", 'N', POPT_ARG_VAL, &https_port
> _s
> , 0, 0, 0}}
So for getting the value of the argument of op...
2003 Oct 26
0
Patches for samba 3.0.0 client/client.c
Patch against samba 3.0.0 client/client.c
Mainly for -L parameter options
1.) Add a configurable connection delay. The default is too long.
Add items to long_options of poptOption for help message, however I
just put something "i.e. CONNSETUP" to the last parameter of
long_options. It seems for use of documentation ????
2.) Remark the code that require list_servers must using port 139.
It seems that 445 can also used.. Also a user may be forced to make a
conne...
2003 Feb 01
0
Fw: Re: [Apt-rpm] I: [PATCH] 0.5.4cnc9: rsync method support
...ns.c 2003-01-28 17:38:39 +0300
@@ -127,6 +127,8 @@ static int modify_window_set;
* address, or a hostname. **/
char *bind_address;
+/** Print information needed for APT rsync method */
+int apt_support = 0;
static void print_rsync_version(enum logcode f)
{
@@ -370,6 +372,7 @@ static struct poptOption long_options[]
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET , 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 , 0, 0 },
#endif
+ {"apt-support", 0, POPT_ARG_NONE, &apt_support, 0, 0, 0 },
{0,0,0,0, 0, 0,...
2019 Jun 26
2
Allow "--in-place" as an alternative option name for "--inplace"
...t Glaw <jbglaw at lug-owl.de>
Date: Wed Jun 26 22:49:31 2019 +0200
Allow "--in-place" as an alternative option name for "--inplace".
diff --git a/options.c b/options.c
index e5b0cb68..7ff0c51d 100644
--- a/options.c
+++ b/options.c
@@ -926,6 +926,7 @@ static struct poptOption long_options[] = {
{"no-S", 0, POPT_ARG_VAL, &sparse_files, 0, 0, 0 },
{"preallocate", 0, POPT_ARG_NONE, &preallocate_files, 0, 0, 0},
{"inplace", 0, POPT_ARG_VAL, &inplace, 1, 0, 0 },
+ {"in-place",...
2004 Apr 27
1
rsync-2.6.1 close() fixes
...quot; -u, --update update only (don't overwrite newer files)\n");
rprintf(F," -l, --links copy symlinks as symlinks\n");
rprintf(F," -L, --copy-links copy the referent of all symlinks\n");
@@ -332,6 +334,7 @@ static struct poptOption long_options[]
{"safe-links", 0, POPT_ARG_NONE, &safe_symlinks, 0, 0, 0 },
{"help", 'h', POPT_ARG_NONE, 0, 'h', 0, 0 },
{"backup", 'b', POPT_ARG_NONE, &make_backups, 0, 0, 0 },
+ {...
2004 Jan 17
1
--delete-sent-files (AKA --move-files)
..._AFTER, OPT_DELETE_EXCLUDED, OPT_LINK_DEST,
- OPT_INCLUDE, OPT_INCLUDE_FROM, OPT_MODIFY_WINDOW,
+ OPT_DELETE_AFTER, OPT_DELETE_EXCLUDED, OPT_DELETE_SENT_FILES,
+ OPT_INCLUDE, OPT_INCLUDE_FROM, OPT_LINK_DEST, OPT_MODIFY_WINDOW,
OPT_READ_BATCH, OPT_WRITE_BATCH};
static struct poptOption long_options[] = {
@@ -313,6 +316,7 @@ static struct poptOption long_options[]
{"ignore-existing", 0, POPT_ARG_NONE, &opt_ignore_existing, 0, 0, 0 },
{"delete-after", 0, POPT_ARG_NONE, 0, OPT_DELETE_AFTER, 0, 0 },
{"delete-excluded"...
2023 May 17
1
[PATCH] Add --omit-{device,special}-times options
...42.000000000 -0600
@@ -66,6 +66,8 @@ int preserve_atimes = 0;
int preserve_crtimes = 0;
int omit_dir_times = 0;
int omit_link_times = 0;
+int omit_device_times = 0;
+int omit_special_times = 0;
int trust_sender = 0;
int update_only = 0;
int open_noatime = 0;
@@ -646,6 +648,10 @@ static struct poptOption long_options[] = {
{"omit-link-times", 'J', POPT_ARG_VAL, &omit_link_times, 1, 0, 0 },
{"no-omit-link-times",0, POPT_ARG_VAL, &omit_link_times, 0, 0, 0 },
{"no-J", 0, POPT_ARG_VAL, &omit_link_times, 0, 0, 0 },
+ {&quo...
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
...tions.c
+++ b/options.c
@@ -129,6 +129,8 @@ int need_messages_from_generator = 0;
int max_delete = INT_MIN;
OFF_T max_size = -1;
OFF_T min_size = -1;
+int max_age = 0;
+int min_age = 0;
int ignore_errors = 0;
int modify_window = 0;
int blocking_io = -1;
@@ -698,6 +700,8 @@ static struct poptOption long_options[] = {
{"ignore-existing", 0, POPT_ARG_NONE, &ignore_existing, 0, 0, 0 },
{"max-size", 0, POPT_ARG_STRING, &max_size_arg,
OPT_MAX_SIZE, 0, 0 },
{"min-size", 0, POPT_ARG_STRING, &min_size_arg,
OPT_MIN_SIZE, 0,...
2009 Jan 24
2
[patch] Replace illegal characters in filenames for FAT (switch)
...lenames are legal on fat filesystems\n");
rprintf(F," -4, --ipv4 prefer IPv4\n");
rprintf(F," -6, --ipv6 prefer IPv6\n");
rprintf(F," --version print version number\n");
@@ -990,6 +992,7 @@ static struct poptOption long_options[] = {
{"iconv", 0, POPT_ARG_STRING, &iconv_opt, 0, 0, 0 },
{"no-iconv", 0, POPT_ARG_NONE, 0, OPT_NO_ICONV, 0, 0 },
#endif
+ {"fat-filenames", 0, POPT_ARG_NONE, &fat_filenames, 0, 0, 0 },
{"ipv4",...