Displaying 10 results from an estimated 10 matches for "parm_table".
2007 Nov 17
0
generate_parm_table python script bug fix
I found useful scripts generate_parm_table.
This script generate parm_table for python scripts.
But,I noticed what I could utilize as a parameter list
if I added some processing.
So, I execute it,but some strange data got.
More than one "read only" parameter was indicated a time.
I fixed generate_parm_table like this.
--- gener...
2001 Dec 28
1
(patch) memory leak in loadparm.c
...a single service. If you update this, be
+ * sure to update init_globals below!
*/
typedef struct
{
@@ -179,6 +180,7 @@
static int iNumServices = 0;
static int iServiceIndex = 0;
static BOOL bInGlobalSection = True;
+static BOOL bsDefaultInitialized = False;
#define NUMPARAMETERS (sizeof(parm_table) / sizeof(struct parm_struct))
@@ -297,6 +299,28 @@
#ifdef LOG_DAEMON
Globals.syslog_facility = LOG_DAEMON;
#endif
+ if (!bsDefaultInitialized) {
+ bsDefaultInitialized = True;
+#define maybe_init(x) if (sDefault.x != NULL) sDefault.x = strdup(sDefault.x)
+ maybe_init(name);
+ maybe...
2000 Jan 30
0
More checks for param/loadparm.c
..."
> "\"%c\", and cannot be set.\n", pszParmValue,
> pszParmValue[i]));
> return False;
> }
> return True;
> }
>
>
> /***************************************************************************
2206,2207c2324
< parm_table[parmnum].special(pszParmValue,(char **)parm_ptr);
< return(True);
---
> return parm_table[parmnum].special(pszParmValue,(char **)parm_ptr);
2273a2391
>
2011 Mar 18
1
[PATCH] s3: Add "spoolss backchannel" parameter
...static struct service sDefault = {
False, /* bAdministrative_share */
False, /* bGuest_ok */
False, /* bPrint_ok */
+ True, /* bSpoolssBackchannel */
False, /* bMap_system */
False, /* bMap_hidden */
True, /* bMap_archive */
@@ -2642,6 +2644,15 @@ static struct parm_struct parm_table[] = {
.flags = FLAG_HIDE,
},
{
+ .label = "spoolss backchannel",
+ .type = P_BOOL,
+ .p_class = P_LOCAL,
+ .ptr = &sDefault.bSpoolssBackchannel,
+ .special = NULL,
+ .enum_list = NULL,
+ .flags = FLAG_ADVANCED,
+ },
+ {
.label = "printing",
.type =...
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...;enabled"},
+ {STRICT_ALLOCATE_PARTIAL, "partial"},
+ {-1, NULL}
+};
+
/* Note: We do not initialise the defaults union - it is not allowed in ANSI C
*
* The FLAG_HIDE is explicit. Paramters set this way do NOT appear in any edit
@@ -2394,11 +2409,11 @@ static struct parm_struct parm_table[] = {
},
{
.label = "strict allocate",
- .type = P_BOOL,
+ .type = P_ENUM,
.p_class = P_LOCAL,
- .ptr = &sDefault.bStrictAllocate,
+ .ptr = &sDefault.iStrictAllocate,
.special = NULL,
- .enum_list = NULL,
+ .enum_list = enum_strict_allocate,
.flags = FL...
2013 Dec 10
1
Delayed variable expansion for P_PATH/P_STRING is missing (loadparm.c)
...oot /home/%USER%/test failed: No such file or directory (2)
<<<
That means the config parameter expansion did not work at runtime.
In loadparm.c line 668 there is a special handling of P_PATH/P_STRING
parameters:
>>>
/* now switch on the type of variable it is */
switch (parm_table[parmnum].type) {
case P_PATH:
case P_STRING:
/* delay expansion of vars */
break;
default:
/* expand any %VARS% now */
parmvalue = expand_vars(parmvalue);
break;
}
<<<
This handling delays the expansion of $USER in the path parameter...
2009 Apr 22
1
[PATCH] allow to disable SLP with runtime option
...1.orig/loadparm.c 2009-04-22 12:47:39.000000000 +0200
+++ rsync-3.0.6pre1/loadparm.c 2009-04-22 13:30:39.000000000 +0200
@@ -111,6 +111,7 @@ typedef struct
int rsync_port;
#ifdef HAVE_LIBSLP
int slp_refresh;
+ BOOL disable_slp;
#endif
} global;
@@ -305,6 +306,7 @@ static struct parm_struct parm_table[] =
{"port", P_INTEGER,P_GLOBAL,&Globals.rsync_port, NULL,0},
#ifdef HAVE_LIBSLP
{"slp refresh", P_INTEGER,P_GLOBAL,&Globals.slp_refresh, NULL,0},
+ {"disable slp", P_BOOL, P_GLOBAL,&Globals.disable_slp,...
2004 Feb 12
1
[PATCH] write only
...fault =
NULL, /* comment */
DEFAULT_LOCK_FILE, /* lock file */
True, /* read only */
+ False, /* write only */
True, /* list */
True, /* use chroot */
False, /* transfer logging */
@@ -276,6 +278,7 @@ static struct parm_struct parm_table[] =
{"lock file", P_STRING, P_LOCAL, &sDefault.lock_file, NULL, 0},
{"path", P_PATH, P_LOCAL, &sDefault.path, NULL, 0},
{"read only", P_BOOL, P_LOCAL, &sDefault.read_only, NULL, 0},
+ {"wri...
2011 Nov 28
0
RFC: [PATCH] Add TCP congestion control and Diffserv options
.../* exclude_from; */ NULL,
@@ -212,6 +215,7 @@ static const all_vars Defaults = {
/* max_verbosity; */ 1,
/* syslog_facility; */ LOG_DAEMON,
/* timeout; */ 0,
+ /* diffserv; */ 8,
/* fake_super; */ False,
/* forward_lookup; */ True,
@@ -322,6 +326,8 @@ static struct parm_struct parm_table[] =
{"auth users", P_STRING, P_LOCAL, &Vars.l.auth_users, NULL,0},
{"charset", P_STRING, P_LOCAL, &Vars.l.charset, NULL,0},
{"comment", P_STRING, P_LOCAL, &Vars.l.comment, NULL,0},
+ {"c...
2010 Aug 24
3
samba 4 questions (status, roaming profiles, etc)
I'm testing samba 4 (pulling from git) on my ubuntu 10.4 box and have a
bunch of questions I can't seem to find answers for on the web.
1) There is some problem with my roaming profile such that windows
complains and logs me in using my most recently saved profile. I've
tried moving my profile on the server out of the way, but windows
doesn't seem to recreate it. How do I make