]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-login: Don't reset process title after successful login
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Dec 2025 09:11:00 +0000 (11:11 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Dec 2025 09:11:00 +0000 (11:11 +0200)
The login_server_conn_unref() function was unconditionally calling
login_server_proctitle_refresh(), which would reset the process title
to "[idling]". This happened even after a successful login, overwriting
the process title set by the service (e.g., imap, pop3).

src/lib-login/login-server.c

index 6dcebfcc9a55f61f0c46c637cd219d288f437019..b2c3e448f567bce87bb41179bb1a870d680e8156 100644 (file)
@@ -586,10 +586,10 @@ static void login_server_conn_unref(struct login_server_connection **_conn)
        o_stream_unref(&conn->output);
 
        DLLIST_REMOVE(&conn->server->conns, conn);
-       login_server_proctitle_refresh(conn->server);
-
-       if (!conn->login_success)
+       if (!conn->login_success) {
+               login_server_proctitle_refresh(conn->server);
                master_service_client_connection_destroyed(conn->server->service);
+       }
        event_unref(&conn->event);
        i_free(conn);
 }