Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
email_mirror_server: Fix the logfile path which is checked.
Alex Vandiver17fd249a628e
diff --git a/zerver/lib/email_mirror_server.py b/zerver/lib/email_mirror_server.pyindex 9965bac5a80..2857a729ee1 100644--- a/zerver/lib/email_mirror_server.py+++ b/zerver/lib/email_mirror_server.py@@ -177,7 +177,7 @@ class PermissionDroppingUnthreadedController(UnthreadedController): # nocoverag# We may have a logfile owned by root, from before we# fixed it to be owned by zulip; chown it if it exists, so# we don't fail below.- if os.path.exists(settings.EMAIL_LOG_PATH):+ if os.path.exists(settings.EMAIL_MIRROR_LOG_PATH):os.chown(settings.EMAIL_MIRROR_LOG_PATH, self.user_id, self.group_id)logger.info("Dropping privileges to uid %d / gid %d", self.user_id, self.group_id)