RFC: reduce number of alias parameters
Björn JACKE
bjacke at samba.org
Wed Jan 10 17:19:02 UTC 2018
On 2018-01-10 at 17:57 +0100 Stefan Metzmacher via samba-technical sent off:
> Just something like this:
>
> diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
> index a18407d..4fbac7a 100644
> --- a/lib/param/loadparm.c
> +++ b/lib/param/loadparm.c
> @@ -1823,6 +1823,11 @@ bool lpcfg_do_global_parameter(struct
> loadparm_context *lp_ctx,
> pszParmName));
> }
>
> + if (parm_table[parmnum].flags & FLAG_SYNONYM) {
> + DEBUG(1, ("WARNING: The \"%s\" alias option is
> deprecated\n",
> + pszParmName));
> + }
> +
> parm_ptr = lpcfg_parm_ptr(lp_ctx, NULL, &parm_table[parmnum]);
>
> return set_variable(lp_ctx->globals->ctx, NULL, parmnum, parm_ptr,
ah, this is the confusion. The intention was not to deprecate *all* alias
parameters, only those dedicated ones listed in the if statements. And
deprecating aliases is not possible without doing it manually currently.
Deprecating all aliases was at least not what I proposed initially. Anyway, I
would also agree going that way and getting rid of all alias parameters for
the upcoming 4.8 release.
Björn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180110/4895d53c/signature.sig>
More information about the samba-technical
mailing list