if (pid == 0)
{
- exim_setugid(exim_uid, exim_gid, FALSE,
- US"calling tls_validate_require_cipher");
+ /* in some modes, will have dropped privilege already */
+ if (!geteuid())
+ exim_setugid(exim_uid, exim_gid, FALSE,
+ US"calling tls_validate_require_cipher");
errmsg = tls_validate_require_cipher();
if (errmsg)
rc = waitpid(pid, &status, 0);
} while (rc < 0 && errno == EINTR);
-DEBUG(D_all)
+DEBUG(D_tls)
debug_printf("tls_validate_require_cipher child %d ended: status=0x%x\n",
(int)pid, status);