mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
param: Use the correct flag locations with lpcfg_parm_is_cmdline
s3 flags are no longer being stored in the param table anymore. They shouldn't be used in this manner anymore. Change-Id: Ib97492fd9149e30d7756ca603f79321d7516f19b Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
4fa98737f4
commit
622e54fc49
@ -770,14 +770,6 @@ bool lpcfg_parm_is_cmdline(struct loadparm_context *lp_ctx, const char *name)
|
||||
{
|
||||
int parmnum;
|
||||
|
||||
if (lp_ctx->s3_fns) {
|
||||
struct parm_struct *parm = lp_ctx->s3_fns->get_parm_struct(name);
|
||||
if (parm) {
|
||||
return parm->flags & FLAG_CMDLINE;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
parmnum = lpcfg_map_parameter(name);
|
||||
if (parmnum == -1) return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user