dovecot-2.0: mail storage service: Some flag enums were missing ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Dec 16 03:28:20 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/569206178c09
changeset: 10498:569206178c09
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 15 20:28:14 2009 -0500
description:
mail storage service: Some flag enums were missing FLAG_ in the middle.

diffstat:

4 files changed, 8 insertions(+), 7 deletions(-)
src/lib-storage/mail-storage-service.c |    6 +++---
src/lib-storage/mail-storage-service.h |    4 ++--
src/lmtp/main.c                        |    2 +-
src/util/script.c                      |    3 ++-

diffs (70 lines):

diff -r 3907cc4ecc4b -r 569206178c09 src/lib-storage/mail-storage-service.c
--- a/src/lib-storage/mail-storage-service.c	Tue Dec 15 20:27:07 2009 -0500
+++ b/src/lib-storage/mail-storage-service.c	Tue Dec 15 20:28:14 2009 -0500
@@ -496,7 +496,7 @@ mail_storage_service_init(struct master_
 
 	/* do all the global initialization. delay initializing plugins until
 	   we drop privileges the first time. */
-	if ((flags & MAIL_STORAGE_SERVICE_NO_LOG_INIT) == 0) {
+	if ((flags & MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT) == 0) {
 		master_service_init_log(service,
 					t_strconcat(service->name, ": ", NULL));
 	}
@@ -658,7 +658,7 @@ mail_storage_service_load_modules(struct
 
 	if (*user_set->mail_plugins == '\0')
 		return;
-	if ((ctx->flags & MAIL_STORAGE_SERVICE_NO_PLUGINS) != 0)
+	if ((ctx->flags & MAIL_STORAGE_SERVICE_FLAG_NO_PLUGINS) != 0)
 		return;
 
 	mail_set = mail_user_set_get_driver_settings(user_info, user_set,
@@ -774,7 +774,7 @@ int mail_storage_service_next(struct mai
 		return -1;
 	}
 
-	if ((ctx->flags & MAIL_STORAGE_SERVICE_NO_LOG_INIT) == 0)
+	if ((ctx->flags & MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT) == 0)
 		mail_storage_service_init_log(ctx->service, user);
 
 	if ((ctx->flags & MAIL_STORAGE_SERVICE_FLAG_NO_RESTRICT_ACCESS) == 0) {
diff -r 3907cc4ecc4b -r 569206178c09 src/lib-storage/mail-storage-service.h
--- a/src/lib-storage/mail-storage-service.h	Tue Dec 15 20:27:07 2009 -0500
+++ b/src/lib-storage/mail-storage-service.h	Tue Dec 15 20:28:14 2009 -0500
@@ -22,9 +22,9 @@ enum mail_storage_service_flags {
 	/* Enable core dumps even when dropping privileges temporarily */
 	MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS	= 0x40,
 	/* Don't initialize logging or change log prefixes */
-	MAIL_STORAGE_SERVICE_NO_LOG_INIT		= 0x80,
+	MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT		= 0x80,
 	/* Don't load plugins in _service_lookup() */
-	MAIL_STORAGE_SERVICE_NO_PLUGINS			= 0x100,
+	MAIL_STORAGE_SERVICE_FLAG_NO_PLUGINS		= 0x100,
 	/* Don't close auth connections because of idling. */
 	MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT	= 0x200
 };
diff -r 3907cc4ecc4b -r 569206178c09 src/lmtp/main.c
--- a/src/lmtp/main.c	Tue Dec 15 20:27:07 2009 -0500
+++ b/src/lmtp/main.c	Tue Dec 15 20:28:14 2009 -0500
@@ -57,7 +57,7 @@ int main(int argc, char *argv[])
 		MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT |
 		MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP |
 		MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP |
-		MAIL_STORAGE_SERVICE_NO_LOG_INIT |
+		MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT |
 		MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT;
 	int c;
 
diff -r 3907cc4ecc4b -r 569206178c09 src/util/script.c
--- a/src/util/script.c	Tue Dec 15 20:27:07 2009 -0500
+++ b/src/util/script.c	Tue Dec 15 20:28:14 2009 -0500
@@ -23,7 +23,8 @@ static bool drop_privileges = FALSE;
 
 static void client_connected(const struct master_service_connection *conn)
 {
-	enum mail_storage_service_flags flags = MAIL_STORAGE_SERVICE_NO_PLUGINS;
+	enum mail_storage_service_flags flags =
+		MAIL_STORAGE_SERVICE_FLAG_NO_PLUGINS;
 	string_t *instr, *keys;
 	const char **args, *key, *value, *error;
 	struct mail_storage_service_ctx *service_ctx;


More information about the dovecot-cvs mailing list