]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail storage service: Some flag enums were missing FLAG_ in the middle.
authorTimo Sirainen <tss@iki.fi>
Wed, 16 Dec 2009 01:28:14 +0000 (20:28 -0500)
committerTimo Sirainen <tss@iki.fi>
Wed, 16 Dec 2009 01:28:14 +0000 (20:28 -0500)
--HG--
branch : HEAD

src/lib-storage/mail-storage-service.c
src/lib-storage/mail-storage-service.h
src/lmtp/main.c
src/util/script.c

index 16d494fe1d143367bf243e9443e3dac5c04fd4fa..f5d84473e2a6872a6b3212043ac84896b0d9d7ee 100644 (file)
@@ -496,7 +496,7 @@ mail_storage_service_init(struct master_service *service,
 
        /* 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 mail_storage_service_ctx *ctx,
 
        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 mail_storage_service_ctx *ctx,
                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) {
index bb6539eb89d66f25c029ea07abc170f4446e09c8..a00dc45e30814e0fd399cdd00c37584734d53de2 100644 (file)
@@ -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
 };
index d1bf6be312535ed656aa3de889585cf94fbf945f..5936098fba179df2a90ec419572913133b654ad1 100644 (file)
@@ -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;
 
index ad88962cbf97a112e21d7c1af98fac8d017d421c..d8cfc8ced81ffd15aec9e8722586d2b1f760f260 100644 (file)
@@ -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;