Let /dev/null have normal permissions.
[exim.git] / src / src / readconf.c
index 118ccf5feb6e68de64df20a4aab24aa0a0a953a4..0b78958e4f0e6222bca6c3dea52bc851f0a8b231 100644 (file)
@@ -2875,9 +2875,9 @@ else
   }
 
 /* Check the status of the file we have opened, if we have retained root
-privileges. */
+privileges and the file isn't /dev/null (which *should* be 0666). */
 
-if (trusted_config)
+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",