[ros-diffs] [sedwards] 39380: 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

sedwards at svn.reactos.org sedwards at svn.reactos.org
Wed Feb 4 07:35:57 CET 2009


Author: sedwards
Date: Wed Feb  4 00:35:57 2009
New Revision: 39380

URL: http://svn.reactos.org/svn/reactos?rev=39380&view=rev
Log:
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
    

Modified:
    trunk/rosapps/applications/sysutils/telnetd/serviceentry.c
    trunk/rosapps/applications/sysutils/telnetd/telnetd.c
    trunk/rosapps/applications/sysutils/telnetd/telnetd.rbuild

Modified: trunk/rosapps/applications/sysutils/telnetd/serviceentry.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/telnetd/serviceentry.c?rev=39380&r1=39379&r2=39380&view=diff
==============================================================================
--- trunk/rosapps/applications/sysutils/telnetd/serviceentry.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/telnetd/serviceentry.c [iso-8859-1] Wed Feb  4 00:35:57 2009
@@ -57,8 +57,9 @@
 
 
 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 @@
     DPRINT("TelnetD: main() started\n");
 
     StartServiceCtrlDispatcher(ServiceTable);
+#endif
 
 	telnetd_main();
 

Modified: trunk/rosapps/applications/sysutils/telnetd/telnetd.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/telnetd/telnetd.c?rev=39380&r1=39379&r2=39380&view=diff
==============================================================================
--- trunk/rosapps/applications/sysutils/telnetd/telnetd.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/telnetd/telnetd.c [iso-8859-1] Wed Feb  4 00:35:57 2009
@@ -262,6 +262,8 @@
     return 0;
   }
   received = ReceiveLine(client->socket, password, sizeof(password), Password );
+
+#if 0
   if (received < 0) {
     closesocket(client->socket);
     free(client);
@@ -271,18 +273,20 @@
       *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;
 }

Modified: trunk/rosapps/applications/sysutils/telnetd/telnetd.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/telnetd/telnetd.rbuild?rev=39380&r1=39379&r2=39380&view=diff
==============================================================================
--- trunk/rosapps/applications/sysutils/telnetd/telnetd.rbuild [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/telnetd/telnetd.rbuild [iso-8859-1] Wed Feb  4 00:35:57 2009
@@ -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>
 



More information about the Ros-diffs mailing list