search for: sdefault

Displaying 20 results from an estimated 26 matches for "sdefault".

Did you mean: default
2002 Feb 24
2
Write-only option
...149,6 +150,7 @@ NULL, /* comment */ DEFAULT_LOCK_FILE, /* lock file */ True, /* read only */ + False, /* write only */ True, /* list */ True, /* use chroot */ False, /* transfer logging */ @@ -265,6 +267,7 @@ {"lock file", P_STRING, P_LOCAL, &sDefault.lock_file, NULL, 0}, {"path", P_STRING, P_LOCAL, &sDefault.path, NULL, 0}, {"read only", P_BOOL, P_LOCAL, &sDefault.read_only, NULL, 0}, + {"write only", P_BOOL, P_LOCAL, &sDefault.write_only, NULL...
2004 Feb 12
1
[PATCH] write only
...+++ rsync-2.6.0/loadparm.c Thu Feb 12 11:48:11 2004 @@ -119,6 +119,7 @@ typedef struct char *comment; char *lock_file; BOOL read_only; + BOOL write_only; BOOL list; BOOL use_chroot; BOOL transfer_logging; @@ -151,6 +152,7 @@ static service sDefault = 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_...
2001 Dec 28
1
(patch) memory leak in loadparm.c
...ure describes a single service. + * This structure describes 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) s...
2003 Feb 12
2
rsync & ldap authentication
...P_GLOBAL, &Globals.ldap_root, NULL, 0}, + {"ldap root passwd", P_STRING, P_GLOBAL, &Globals.ldap_root_passwd,NULL,0}, + {"ldap suffix", P_STRING, P_GLOBAL, &Globals.ldap_suffix, NULL, 0}, {"timeout", P_INTEGER, P_LOCAL, &sDefault.timeout, NULL, 0}, {"max connections", P_INTEGER, P_LOCAL, &sDefault.max_connections,NULL, 0}, @@ -279,6 +310,13 @@ {"log format", P_STRING, P_LOCAL, &sDefault.log_format, NULL, 0}, {"refuse options", P_STRING, P_LOCAL, &sDefa...
2003 May 03
0
Storing rsync secrets in LDAP
...P_GLOBAL, &Globals.ldap_root, NULL, 0}, + {"ldap root passwd", P_STRING, P_GLOBAL, &Globals.ldap_root_passwd,NULL,0}, + {"ldap suffix", P_STRING, P_GLOBAL, &Globals.ldap_suffix, NULL, 0}, {"timeout", P_INTEGER, P_LOCAL, &sDefault.timeout, NULL, 0}, {"max connections", P_INTEGER, P_LOCAL, &sDefault.max_connections,NULL, 0}, @@ -284,6 +315,13 @@ {"log format", P_STRING, P_LOCAL, &sDefault.log_format, NULL, 0}, {"refuse options", P_STRING, P_LOCAL, &sDefa...
2002 Mar 15
1
disabling offline caching from samba
I'm preparing to roll out a bunch of win XP clients and and am running down all the quirks that come up in the application log on my test box. 1) AutoEnrollement fails - samba is not an active directory so this makes sense it must be disabled by editing the group policy with gpedit.msc computer configuration->windows settings -> security settings -> public key policies ->
2007 Oct 10
0
patch for rsync: provides "nice = N" option
...BOOL ignore_nonreadable; @@ -196,6 +197,7 @@ /* max_verbosity; */ 1, /* syslog_facility; */ LOG_DAEMON, /* timeout; */ 0, + /* nice; */ 0, /* ignore_errors; */ False, /* ignore_nonreadable; */ False, @@ -327,6 +329,7 @@ {"syslog facility", P_ENUM, P_LOCAL, &sDefault.syslog_facility,enum_facilities,0}, {"temp dir", P_PATH, P_LOCAL, &sDefault.temp_dir, NULL,0}, {"timeout", P_INTEGER,P_LOCAL, &sDefault.timeout, NULL,0}, + {"nice", P_INTEGER,P_LOCAL, &sDefault.niceva...
2003 Mar 11
0
PATCH: rsyncd.conf permission options
...tions */ - False /* ignore nonreadable */ + False, /* ignore nonreadable */ + 07777, /* create mask (~S_IFMT) */ + 0, /* force create mode */ + 07777, /* directory mask */ + 0 /* force directory mode */ }; @@ -295,6 +303,10 @@ {"log format", P_STRING, P_LOCAL, &sDefault.log_format, NULL, 0}, {"refuse options", P_STRING, P_LOCAL, &sDefault.refuse_options,NULL, 0}, {"dont compress", P_STRING, P_LOCAL, &sDefault.dont_compress,NULL, 0}, + {"create mask", P_OCTAL, P_LOCAL, &sDefault.create_mask,...
2002 Jun 18
2
rsyncd + scripting
Hey all, Like a lot of folks, I use rsync to pull content out to production web servers. Tastes great, less filling. Here's what I'd like to be able to do: Sometimes a web tree is not ready to sync, for whatever reason. I have many modules available, so stopping ryncd is not an option. I'd like to be able to tell rsync in daemon mode "this particular module is not available at
2000 Jan 28
1
PATCH: 'source environment' param and % token subs for 'netbios name'
Attached please find unified diffs against Samba 2.0.6. I'm hoping that others will find it useful and that it may even find its way into Samba 2.0.7 This patch does two things: - Modifies the handling of the 'netbios name' parameter so that standard_sub_basic() is run on its value when the 'netbios name' parameter is processed. This has to be done this way because
2009 Apr 22
2
[Code study] lp_motd_file defination? Help
Dear List, Currently, I read this in clientserver.c, line 148. motd = lp_motd_file(); I have googled, but didn't the definition of char *lp_motd_file(void). Can anyone help to explain the following code segment. Many thanks. #line 147 ~ 160, in clientserver.c, version 3.0.5 > if (!am_client) { > motd = lp_motd_file(); > if (motd && *motd) { > FILE *f =
2009 Jan 14
1
Improving loadparm design to fix bug in configuration reloading
...he avoid-reverse-lookup patches, I found a flaw in the daemon's behavior of reloading the configuration on each connection. If I remove a module parameter (in my case, "hosts allow") from the global section, the removal does not take effect. This is because loadparm.c does not reset sDefaults to the application defaults before reloading the configuration. I'll work on a fix for this. I think I'll take the opportunity to improve the design a bit by actually adding a section structure representing the global values of section parameters to the global structure; this is essentia...
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...urce/param/loadparm.c +++ b/source/param/loadparm.c @@ -445,7 +445,7 @@ struct service { bool bWidelinks; bool bSymlinks; bool bSyncAlways; - bool bStrictAllocate; + int iStrictAllocate; bool bStrictSync; char magic_char; struct bitmap *copymap; @@ -588,7 +588,7 @@ static struct service sDefault = { True, /* bWidelinks */ True, /* bSymlinks */ False, /* bSyncAlways */ - False, /* bStrictAllocate */ + STRICT_ALLOCATE_OFF, /* iStrictAllocate */ False, /* bStrictSync */ '~', /* magic char */ NULL, /* copymap */ @@ -861,6 +861,21 @@ static const struct enum_li...
2011 Mar 18
1
[PATCH] s3: Add "spoolss backchannel" parameter
...644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -450,6 +450,7 @@ struct service { bool bAdministrative_share; bool bGuest_ok; bool bPrint_ok; + bool bSpoolssBackchannel; bool bMap_system; bool bMap_hidden; bool bMap_archive; @@ -594,6 +595,7 @@ 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 =...
2003 Jun 07
1
patch to rsync to add options for pre- and post-transfer commands
..., /* timeout */ 0, /* max connections */ ! False, /* ignore nonreadable */ ! ! NULL, /* pre-transfer script */ ! NULL, /* post-transfer script */ }; *************** *** 295,300 **** --- 300,307 ---- {"log format", P_STRING, P_LOCAL, &sDefault.log_format, NULL, 0}, {"refuse options", P_STRING, P_LOCAL, &sDefault.refuse_options,NULL, 0}, {"dont compress", P_STRING, P_LOCAL, &sDefault.dont_compress,NULL, 0}, + {"pretransfer script", P_STRING, P_LOCAL, &sDefault.prescript...
2004 Sep 28
1
[Patch] rsync-2.6.2: Allow 'port = N' in rsyncd.conf
...P_GLOBAL, &Globals.pid_file, NULL, 0}, {"max verbosity", P_INTEGER, P_GLOBAL, &Globals.max_verbosity, NULL, 0}, + {"port", P_INTEGER, P_GLOBAL, &Globals.rsync_port, NULL, 0}, {"timeout", P_INTEGER, P_LOCAL, &sDefault.timeout, NULL, 0}, {"max connections", P_INTEGER, P_LOCAL, &sDefault.max_connections,NULL, 0}, @@ -350,6 +352,7 @@ FN_GLOBAL_STRING(lp_socket_options, &Globals.socket_options) FN_GLOBAL_INTEGER(lp_syslog_facility, &Globals.syslog_facility) FN_GLOBAL_INTEGER(lp_max...
2005 Jul 29
2
segment fault with 2.6.6 or CVS
...) definitions of lp_name first in t_stub.c char *lp_name(UNUSED(int mod)) { return NULL; } and second in loadparm.c FN_LOCAL_STRING(lp_name, name) where #define FN_LOCAL_STRING(fn_name,val) \ char *fn_name(int i) {return((LP_SNUM_OK(i)&&pSERVICE(i)->val)?pSERVICE(i)->val : (sDefault.val?sDefault.val:""));} #2 0x0806b9e5 in start_accept_loop (port=873, fn=0x80706a0 <start_daemon>) at socket.c:512 #3 0x0807181a in daemon_main () at clientserver.c:675 #4 0x08058cbf in main (argc=0, argv=0x0) at main.c:1154 Any help is greatly appreciated, Helmut. -- He...
2004 Mar 10
4
HFS+ resource forks: WIP patch included
...2003 +++ rsync-2.6.0-dar/loadparm.c Sat Mar 6 16:35:39 2004 @@ -135,6 +135,7 @@ char *include; char *include_from; char *log_format; + char *hfs_mode; char *refuse_options; char *dont_compress; int timeout; @@ -293,6 +294,7 @@ {"transfer logging", P_BOOL, P_LOCAL, &sDefault.transfer_logging,NULL,0}, {"ignore errors", P_BOOL, P_LOCAL, &sDefault.ignore_errors,NULL,0}, {"log format", P_STRING, P_LOCAL, &sDefault.log_format, NULL, 0}, + {"HFS mode", P_STRING, P_LOCAL, &sDefault.hfs_mode, NULL,...
2002 Jul 14
2
Precedence of usernames w/Winbind
I might be missing obvious here, but here goes: Samba 2.2.4. Using "winbind use default domain = <DOMAIN>" option usernames map correctly, however, when logging on from an W2K machine I still get the autogenerated UID instead of my NIS (Or /etc/passwd) UID. Both nis and files precede winbind in /etc/nsswitch.conf Commenting out winbind from /etc/nsswitch.conf works, which
2001 Dec 03
2
Bug in rsyncd 2.5.0 while handling config file string values
...nly=1) at loadparm.c:747 #8 0x08063095 in daemon_main () at clientserver.c:506 #9 0x0805225a in main (argc=0, argv=0x0) at main.c:817 #10 0x400476ef in __libc_start_main () from /lib/libc.so.6 (gdb) select 1 (gdb) p s $1 = (char **) 0x807ace4 (gdb) p *s $2 = 0x807680c "nobody" (gdb) p sDefault $3 = {name = 0x0, path = 0x0, comment = 0x0, lock_file = 0x8076813 "/var/run/rsyncd.lock", read_only = 1, list = 1, use_chroot = 1, transfer_logging = 0, ignore_errors = 0, uid = 0x807680c "nobody", gid = 0x807680c "nobody", hosts_allow = 0x0, hosts_deny = 0x0,...