mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 21:12:32 +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
|
int
|
||||||
wmain(int argc, WCHAR *argv[])
|
main(int argc, CHAR *argv[])
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
SERVICE_TABLE_ENTRY ServiceTable[2] =
|
SERVICE_TABLE_ENTRY ServiceTable[2] =
|
||||||
{
|
{
|
||||||
{SERVICE_NAME, ServiceMain},
|
{SERVICE_NAME, ServiceMain},
|
||||||
|
@ -71,6 +72,7 @@ wmain(int argc, WCHAR *argv[])
|
||||||
DPRINT("TelnetD: main() started\n");
|
DPRINT("TelnetD: main() started\n");
|
||||||
|
|
||||||
StartServiceCtrlDispatcher(ServiceTable);
|
StartServiceCtrlDispatcher(ServiceTable);
|
||||||
|
#endif
|
||||||
|
|
||||||
telnetd_main();
|
telnetd_main();
|
||||||
|
|
||||||
|
|
|
@ -262,6 +262,8 @@ static DWORD WINAPI UserLoginThread(LPVOID data)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
received = ReceiveLine(client->socket, password, sizeof(password), Password );
|
received = ReceiveLine(client->socket, password, sizeof(password), Password );
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (received < 0) {
|
if (received < 0) {
|
||||||
closesocket(client->socket);
|
closesocket(client->socket);
|
||||||
free(client);
|
free(client);
|
||||||
|
@ -271,18 +273,20 @@ static DWORD WINAPI UserLoginThread(LPVOID data)
|
||||||
*terminator = '\0';
|
*terminator = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* TODO: do authentication here */
|
/* TODO: do authentication here */
|
||||||
|
|
||||||
|
|
||||||
printf("User '%s' logged on\n", userID);
|
printf("User '%s' logged on\n", userID);
|
||||||
|
#if 0
|
||||||
strcpy(client->userID, userID);
|
strcpy(client->userID, userID);
|
||||||
if (send(client->socket, logonPrompt, strlen(logonPrompt), 0) < 0) {
|
if (send(client->socket, logonPrompt, strlen(logonPrompt), 0) < 0) {
|
||||||
closesocket(client->socket);
|
closesocket(client->socket);
|
||||||
free(client);
|
free(client);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
RunShell(client);
|
RunShell(client);
|
||||||
return 0;
|
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="reactos"></include>
|
||||||
<include base="telnetd">..</include>
|
<include base="telnetd">..</include>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue