mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
param: turn 'min receivefile size' into a generated function
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
863f7b9360
commit
b68d13ed7b
@ -1,7 +1,6 @@
|
||||
<samba:parameter name="min receivefile size"
|
||||
type="integer"
|
||||
context="G"
|
||||
generated_function="0"
|
||||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||
<description>
|
||||
<para>This option changes the behavior of <citerefentry><refentrytitle>smbd</refentrytitle>
|
||||
|
@ -249,7 +249,6 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
|
||||
#define LOADPARM_EXTRA_GLOBALS \
|
||||
struct parmlist_entry *param_opt; \
|
||||
char *realm_original; \
|
||||
int min_receivefile_size; \
|
||||
char *szPrintcapname; \
|
||||
int CupsEncrypt; \
|
||||
char *szIdmapUID; \
|
||||
|
@ -4287,10 +4287,12 @@ void lp_set_posix_default_cifsx_readwrite_locktype(enum brl_flavour val)
|
||||
|
||||
int lp_min_receive_file_size(void)
|
||||
{
|
||||
if (Globals.min_receivefile_size < 0) {
|
||||
int min_receivefile_size = lp_min_receivefile_size();
|
||||
|
||||
if (min_receivefile_size < 0) {
|
||||
return 0;
|
||||
}
|
||||
return Globals.min_receivefile_size;
|
||||
return min_receivefile_size;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user