lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Windows-2K ftp-server patch


From: Gisle Vanem
Subject: lynx-dev Windows-2K ftp-server patch
Date: Sat, 27 May 2000 18:56:03 +0200 (CEST)

Thanks to MS's loadsharing of their ftp-server I noted sometimes 
"215 Windows2000" was returned from the "SYST" command.
 
This is a simple fix for this. Win2K appears to work excactly as a
"Windows_NT" in other respects.
                                               
Try e.g. ftp://ftp.microsoft.com/developr/drg/CIFS
 
 
diff.exe -B -H -u3
--- htftp.c.org   Mon Mar 27 03:14:00 2000
+++ htftp.c       Sat May 27 01:00:28 2000
@@ -154,12 +154,12 @@
 #define TCPC_SERVER        6
 #define PETER_LEWIS_SERVER 7
 #define NCSA_SERVER        8
-#define WINDOWS_NT_SERVER  9
-#define MS_WINDOWS_SERVER 10
-#define MSDOS_SERVER      11
-#define APPLESHARE_SERVER 12
-#define NETPRESENZ_SERVER 13
-#define DLS_SERVER        14
+#define WINDOWS_2K_SERVER 10
+#define MS_WINDOWS_SERVER 11
+#define MSDOS_SERVER      12
+#define APPLESHARE_SERVER 13
+#define NETPRESENZ_SERVER 14
+#define DLS_SERVER        15
 
 PRIVATE int    server_type = GENERIC_SERVER;   /* the type of ftp host */
 PRIVATE int    unsure_type = FALSE;            /* sure about the type? */
@@ -994,7 +994,12 @@
            CTRACE((tfp, "HTFTP: Treating as Window_NT server.\n"));
            set_unix_dirstyle(&server_type, &use_list);
 
+        } else if (strncmp(response_text+4, "Windows2000", 11) == 0) {
+            server_type = WINDOWS_2K_SERVER;
+            CTRACE((tfp, "HTFTP: Treating as Window_2K server.\n"));
+            set_unix_dirstyle(&server_type, &use_list);
+
         } else if (strncmp(response_text+4, "MS Windows", 10) == 0) {
            server_type = MS_WINDOWS_SERVER;
            use_list = TRUE;
            CTRACE((tfp, "HTFTP: Treating as MS Windows server.\n"));
@@ -2106,7 +2111,8 @@
        case MACHTEN_SERVER:
        case MSDOS_SERVER:
        case WINDOWS_NT_SERVER:
+       case WINDOWS_2K_SERVER:
        case NETPRESENZ_SERVER:
            /*
            **  Check for EPLF output (local times).
 
-------------------------
 
Gisle V.
 
 



; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]