mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
param: turn 'wide links' into a generated funcion
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b7172b8f7c
commit
866fd3b889
@ -1,7 +1,6 @@
|
|||||||
<samba:parameter name="wide links"
|
<samba:parameter name="wide links"
|
||||||
context="S"
|
context="S"
|
||||||
type="boolean"
|
type="boolean"
|
||||||
generated_function="0"
|
|
||||||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||||
<description>
|
<description>
|
||||||
<para>This parameter controls whether or not links
|
<para>This parameter controls whether or not links
|
||||||
|
@ -238,7 +238,6 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
|
|||||||
char *szCopy; \
|
char *szCopy; \
|
||||||
char *szService; \
|
char *szService; \
|
||||||
char *szInclude; \
|
char *szInclude; \
|
||||||
bool wide_links; \
|
|
||||||
bool bAvailable; \
|
bool bAvailable; \
|
||||||
struct parmlist_entry *param_opt; \
|
struct parmlist_entry *param_opt; \
|
||||||
struct bitmap *copymap; \
|
struct bitmap *copymap; \
|
||||||
|
@ -4296,19 +4296,13 @@ int lp_min_receive_file_size(void)
|
|||||||
even after a configuration file reload.
|
even after a configuration file reload.
|
||||||
********************************************************************/
|
********************************************************************/
|
||||||
|
|
||||||
static bool lp_widelinks_internal(int snum)
|
|
||||||
{
|
|
||||||
return (bool)(LP_SNUM_OK(snum)? ServicePtrs[(snum)]->wide_links :
|
|
||||||
sDefault.wide_links);
|
|
||||||
}
|
|
||||||
|
|
||||||
void widelinks_warning(int snum)
|
void widelinks_warning(int snum)
|
||||||
{
|
{
|
||||||
if (lp_allow_insecure_wide_links()) {
|
if (lp_allow_insecure_wide_links()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lp_unix_extensions() && lp_widelinks_internal(snum)) {
|
if (lp_unix_extensions() && lp_wide_links(snum)) {
|
||||||
DEBUG(0,("Share '%s' has wide links and unix extensions enabled. "
|
DEBUG(0,("Share '%s' has wide links and unix extensions enabled. "
|
||||||
"These parameters are incompatible. "
|
"These parameters are incompatible. "
|
||||||
"Wide links will be disabled for this share.\n",
|
"Wide links will be disabled for this share.\n",
|
||||||
@ -4329,7 +4323,7 @@ bool lp_widelinks(int snum)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return lp_widelinks_internal(snum);
|
return lp_wide_links(snum);
|
||||||
}
|
}
|
||||||
|
|
||||||
int lp_server_role(void)
|
int lp_server_role(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user