X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Freadconf.c;h=0b78958e4f0e6222bca6c3dea52bc851f0a8b231;hb=33191679e1a86ba6d9c38a74d0795d00c300f2c5;hp=08030583409e77ffeedbd66ffd6a718e41b3d4c2;hpb=c1d94452b1b7f3620ee3cc9aa197ad98821de79f;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/readconf.c b/src/src/readconf.c index 080305834..0b78958e4 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 and the file isn't /dev/null (which *should* be 0666). */ -if (!config_changed) +if (trusted_config && Ustrcmp(filename, US"/dev/null")) { if (fstat(fileno(config_file), &statbuf) != 0) log_write(0, LOG_MAIN|LOG_PANIC_DIE, "failed to stat configuration file %s",