X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/c1d94452b1b7f3620ee3cc9aa197ad98821de79f..e2f5dc151e2e79058e93924e6d35510557f0535d:/src/src/readconf.c diff --git a/src/src/readconf.c b/src/src/readconf.c index 080305834..118ccf5fe 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -2874,10 +2874,10 @@ else "configuration file %s", filename)); } -/* Check the status of the file we have opened, unless it was specified on -the command line, in which case privilege was given away at the start. */ +/* Check the status of the file we have opened, if we have retained root +privileges. */ -if (!config_changed) +if (trusted_config) { if (fstat(fileno(config_file), &statbuf) != 0) log_write(0, LOG_MAIN|LOG_PANIC_DIE, "failed to stat configuration file %s",