mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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"
|
||||
context="S"
|
||||
type="boolean"
|
||||
generated_function="0"
|
||||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||
<description>
|
||||
<para>This parameter controls whether or not links
|
||||
|
@ -238,7 +238,6 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
|
||||
char *szCopy; \
|
||||
char *szService; \
|
||||
char *szInclude; \
|
||||
bool wide_links; \
|
||||
bool bAvailable; \
|
||||
struct parmlist_entry *param_opt; \
|
||||
struct bitmap *copymap; \
|
||||
|
@ -4296,19 +4296,13 @@ int lp_min_receive_file_size(void)
|
||||
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)
|
||||
{
|
||||
if (lp_allow_insecure_wide_links()) {
|
||||
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. "
|
||||
"These parameters are incompatible. "
|
||||
"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)
|
||||
|
Loading…
Reference in New Issue
Block a user