1
0
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:
Michael Adam 2015-07-21 14:23:47 +02:00 committed by Jeremy Allison
parent 863f7b9360
commit b68d13ed7b
3 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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; \

View File

@ -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;
}
/*******************************************************************