From ccce5a7c40c325f3e0628fe14f10be82ab5a7c77 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Windows 11)" <rob@synchro.net> Date: Sat, 2 Mar 2024 15:45:52 -0800 Subject: [PATCH] Initialize sbbs_t::client and call client_on() as expected for logins See sbbs_t::logon() for example Note: the client.protocol is still "SSH" here (not "SFTP"). Perhaps that should be changed? Does any client actually support simultaneous "SSH" and "SFTP" sessions over the same socket? --- src/sbbs3/answer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sbbs3/answer.cpp b/src/sbbs3/answer.cpp index ee5a9aae40..67c11c1557 100644 --- a/src/sbbs3/answer.cpp +++ b/src/sbbs3/answer.cpp @@ -427,6 +427,9 @@ bool sbbs_t::answer() mouse_mode = MOUSE_MODE_OFF; autoterm = 0; sys_status |= SS_USERON; + SAFECOPY(client.user, useron.alias); + client.usernum = useron.number; + client_on(client_socket, &client,/* update: */TRUE); } else { lprintf(LOG_NOTICE, "%04d Trying to create new user over sftp, disconnecting.", client_socket); -- GitLab