From: Nishi Date: Fri, 11 Oct 2024 21:09:56 +0000 (+0000) Subject: send messages X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9a681bcb1e21a36b471b14ae139e2519296f45a0;p=rbuild.git send messages git-svn-id: file:///raid/svn-personal/rbuild/trunk@15 c68d3453-7f82-0740-9748-1d72386a946b --- diff --git a/Server/server.c b/Server/server.c index e838fbc..8353c66 100644 --- a/Server/server.c +++ b/Server/server.c @@ -189,6 +189,7 @@ void rbs_server_handler(void* sockptr) { break; } section = cm_strdup(arg); + rbs_write(sock, "SUCCESS\n", 8); } else if(strcmp(cmd, "USER") == 0 && arg != NULL) { if(section == NULL || user != NULL) { rbs_write(sock, "FAIL\n", 5); @@ -196,6 +197,7 @@ void rbs_server_handler(void* sockptr) { break; } user = cm_strdup(arg); + rbs_write(sock, "SUCCESS\n", 8); } else if(strcmp(cmd, "PASS") == 0 && arg != NULL) { if(user == NULL || pass != NULL) { rbs_write(sock, "FAIL\n", 5); @@ -222,6 +224,7 @@ void rbs_server_handler(void* sockptr) { break; } } else { + rbs_write(sock, "FAIL\n", 5); free(line); break; }