This patch ensures that local addresses under DJGPP using the special
form of path beginning "/dev/" are passed to external programs without
stripping the initial slash from the path. This special form of path
will be understood only by other DJGPP programs. Addresses of the form
"/dev/x/" are equivalent to the DOS path "x:\". Addresses of the form
"/dev/env/VARI" are equivalent to the environment variable "VARI".
                          Doug

--- lynx2.8.5dev.7/src/LYDownload.c.orig        Sun Jun  3 11:58:00 2001
+++ lynx2.8.5dev.7/src/LYDownload.c     Sun Feb 10 23:35:32 2002
@@ -91,8 +91,13 @@
     /* FIXME: use HTLocalName */
     if (!strncmp(file, "file://localhost", 16)) {
 #ifdef __DJGPP__
+           if (file[16] == '/' && file[17] == 'd' && 
+           file[18] == 'e' && file[19] == 'v' && file[20] == '/')
+                   file += 16;
+           else {
        file += 17;
        file = HTDOS_name(file);
+           }
 #else
        file += 16;
 #endif /* __DJGPP__ */

__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]



; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to