[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8016) silence on wrong envflags for lmdb-backend
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8016) silence on wrong envflags for lmdb-backend
- From: hyc@symas.com
- Date: Mon, 05 Jan 2015 09:27:31 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
leo@yuriev.ru wrote:
> This is a multi-part message in MIME format.
> --------------080401010006020303000400
> Content-Type: text/plain; charset=windows-1251; format=flowed
> Content-Transfer-Encoding: 7bit
>
> Please review and merge.
>
> Leonid.
>
> ---
>
> The attached files is derived from OpenLDAP Software. All of the
> modifications
> to OpenLDAP Software represented in the following patch(es) were
> developed by
> Peter-Service LLC, Moscow, Russia. Peter-Service LLC has not assigned
> rights
> and/or interest in this work to any party. I, Leonid Yuriev am
> authorized by
> Peter-Service LLC, my employer, to release this work under the following
> terms.
>
> Peter-Service LLC hereby places the following modifications to OpenLDAP
> Software
> (and only these modifications) into the public domain. Hence, these
> modifications may be freely used and/or redistributed for any purpose
> with or without attribution and/or other notice.
>
>
>
> --------------080401010006020303000400
> Content-Type: text/x-patch;
> name="its8016.patch"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: attachment;
> filename="its8016.patch"
>
> commit 36ecfd44559d3b89a7dd5bcbfb6a22d8aeb8142b
> Author: Leo Yuriev <leo@yuriev.ru>
> Date: 2015-01-04 09:05:36 +0300
>
> fix: report about wrong envflags in lmdb-backend instead of silently ignore them.
>
> diff --git a/servers/slapd/back-mdb/config.c b/servers/slapd/back-mdb/config.c
> index bb9be73..68009b6 100644
> --- a/servers/slapd/back-mdb/config.c
> +++ b/servers/slapd/back-mdb/config.c
> @@ -620,8 +620,10 @@ mdb_cf_gen( ConfigArgs *c )
> }
> mdb->mi_dbenv_flags |= mdb_envflags[j].mask;
> } else {
> - /* unknown keyword */
> - rc = 1;
> + fprintf( stderr, "%s: "
> + "unknown keyword \"%s\" in \"envflags\".\n",
> + c->log, c->argv[i] );
> + return 1;
> }
> }
> }
>
> --------------080401010006020303000400--
Use of fprintf(stderr) for config errors is deprecated. New code should
only be using c->cr_msg.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/