Viktor Dukhovni:
> On Sat, Sep 27, 2014 at 11:41:08AM -0400, b...@bitrate.net wrote:
> 
> > you read my mind.  thanks for this detail.
> 
> If nevertheless it is desirable to have "postconf -n" suppress any
> "external" value of "config_directory" for the primary instance,
> then the patch below may do the job.  It is not clear that having
> config_directory reported for secondary instances and not reported
> for the primary instance is an improvement.  Suppression in secondary
> instances would require code changes out of proportion to any
> plausible benefit.
...
> +    if ((config_dir = safe_getenv(CONF_ENV_PATH)) != 0 &&
> +      strcmp(config_dir, DEF_CONFIG_DIR) != 0) {

If prefer not to lie in software. Thus, config_dir will show up in
"postconf -n" output when there is any override, regardless of
whether it comes from main.cf, MAIL_CONF, or -c options, even
if inherited from a multi-instane manager (if that is a problem
then one needs to get outside more often).

        Wietse

Reply via email to