mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
Hacks to get telnetd to work in XP and Wine
- turn off unicode in rbuild file and serviceentry.c Its not unicode yet anyway - Disable authentication stuff svn path=/trunk/; revision=39380
This commit is contained in:
parent
bf53811ef2
commit
e84a9a9093
3 changed files with 9 additions and 3 deletions
|
@ -57,8 +57,9 @@ ServiceMain(DWORD argc, LPTSTR *argv)
|
|||
|
||||
|
||||
int
|
||||
wmain(int argc, WCHAR *argv[])
|
||||
main(int argc, CHAR *argv[])
|
||||
{
|
||||
#if 0
|
||||
SERVICE_TABLE_ENTRY ServiceTable[2] =
|
||||
{
|
||||
{SERVICE_NAME, ServiceMain},
|
||||
|
@ -71,6 +72,7 @@ wmain(int argc, WCHAR *argv[])
|
|||
DPRINT("TelnetD: main() started\n");
|
||||
|
||||
StartServiceCtrlDispatcher(ServiceTable);
|
||||
#endif
|
||||
|
||||
telnetd_main();
|
||||
|
||||
|
|
|
@ -262,6 +262,8 @@ static DWORD WINAPI UserLoginThread(LPVOID data)
|
|||
return 0;
|
||||
}
|
||||
received = ReceiveLine(client->socket, password, sizeof(password), Password );
|
||||
|
||||
#if 0
|
||||
if (received < 0) {
|
||||
closesocket(client->socket);
|
||||
free(client);
|
||||
|
@ -271,18 +273,20 @@ static DWORD WINAPI UserLoginThread(LPVOID data)
|
|||
*terminator = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* TODO: do authentication here */
|
||||
|
||||
|
||||
printf("User '%s' logged on\n", userID);
|
||||
#if 0
|
||||
strcpy(client->userID, userID);
|
||||
if (send(client->socket, logonPrompt, strlen(logonPrompt), 0) < 0) {
|
||||
closesocket(client->socket);
|
||||
free(client);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
RunShell(client);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<module name="telnetd" type="win32cui" installbase="system32" installname="telnetd.exe" allowwarnings="true" unicode="yes">
|
||||
<module name="telnetd" type="win32cui" installbase="system32" installname="telnetd.exe" allowwarnings="true" unicode="no">
|
||||
<include base="reactos"></include>
|
||||
<include base="telnetd">..</include>
|
||||
|
||||
|
|
Loading…
Reference in a new issue