Displaying 9 results from an estimated 9 matches for "poptgetnextopt".
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 the server admin may
want to reject. Well, there may be oth...
2020 Oct 13
0
Lookup sid with libsmbclient (invoked from c# on mono)
...8b3, 0x5559134010c4, 0x7f3e4e0da668, 0x746e65696c636370) = 1
20582 poptGetContext(0x555913401189, 6, 0x7ffff4a0f998, 0x7ffff4a0f6e0) = 0x55591473b310
20582 poptSetOtherOptionHelp(0x55591473b310, 0x5559133fd270, 0x7f3e4d985b11, 0) = 0x5559147328d0
20582 poptGetNextOpt(0x55591473b310, 0x5559133fd270, 30, 17) = 99
20582 poptGetNextOpt(0x55591473b310, 0x55591473bae0, 17, 0) = 0xffffffff
20582 poptGetArg(0x55591473b310, 0x55591474a120, 0x5559146fd010, 0) = 0x7ffff4a1108b...
2004 Nov 13
1
Archive Delete Mode
Patch to add an archive mode that includes deletion.
-Rob
-------------- next part --------------
Adds an archive mode that includes the delete option.
--- orig/options.c 2004-09-23 13:39:05.000000000 -0400
+++ options.c 2004-11-13 09:56:27.000000000 -0500
@@ -39,6 +39,7 @@
int whole_file = -1;
int archive_mode = 0;
+int archive_delete_mode = 0;
int keep_dirlinks = 0;
int copy_links = 0;
2008 Mar 11
2
$ char in password
...78
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE
=======================================================
I add some printf in net.c:
=======================================================
int main(int argc, const char **argv)
{
......
while((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
......
case 'U':
opt_user_specified = True;
d_fprintf(stderr, "%s(): opt_user_name is %s\n", __FUNCTION__, opt_user_name); //xq...
2016 Aug 24
3
[Bug 12173] New: memory leak around poptGetOptArg()
https://bugzilla.samba.org/show_bug.cgi?id=12173
Bug ID: 12173
Summary: memory leak around poptGetOptArg()
Product: rsync
Version: 3.0.6
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter:
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
Typical example:
Here is some search & export for libsmbclient:
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep
cli_rpc_pipe_open_noauth_transport
<nothing>
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep
cli_rpc_pipe_open
U cli_rpc_pipe_open_noauth
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0
2004 Apr 10
0
patches for copying atimes
...ile listing program for portably checking rsync\n");
+ poptContext pc;
+ const char **extra_args;
+ char err_buf[100];
+ int opt;
+
+ pc = poptGetContext(PROGRAM, argc, (const char **)argv,
+ long_options, 0);
+ while ((opt = poptGetNextOpt(pc)) != -1) {
+ switch (opt) {
+ case 'h':
+ tls_usage();
+ return 0;
+ default :
+ snprintf(err_buf, sizeof err_buf,
+ "%s: %s\n",
+...
2004 Apr 20
1
improved atime patch
...ile listing program for portably checking rsync\n");
+ poptContext pc;
+ const char **extra_args;
+ char err_buf[100];
+ int opt;
+
+ pc = poptGetContext(PROGRAM, argc, (const char **)argv,
+ long_options, 0);
+ while ((opt = poptGetNextOpt(pc)) != -1) {
+ switch (opt) {
+ case 'h':
+ tls_usage();
+ return 0;
+ default :
+ snprintf(err_buf, sizeof err_buf,
+ "%s: %s\n",
+...
2002 Jan 29
1
Solaris 2.8/2.5.2 build issues
...lifiers ignored on function return type
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c popt/popt.c -o
popt/popt.o
In file included from popt/system.h:55,
from popt/popt.c:5:
popt/popt.h:117: warning: type qualifiers ignored on function return type
popt/popt.c: In function `poptGetNextOpt':
popt/popt.c:447: warning: implicit declaration of function `alloca'
popt/popt.c: In function `poptAddAlias':
popt/popt.c:673: warning: unused parameter `flags'
popt/popt.c: At top level:
popt/popt.c:713: warning: type qualifiers ignored on function return type
gcc -I. -I. -g -O2 -...