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:
Steven Edwards 2009-02-04 06:35:57 +00:00
parent bf53811ef2
commit e84a9a9093
3 changed files with 9 additions and 3 deletions

View file

@ -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();

View file

@ -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;
}

View file

@ -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>