[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev LYDownload.c [PATCH]
From: |
Doug Kaufman |
Subject: |
lynx-dev LYDownload.c [PATCH] |
Date: |
Sun, 10 Feb 2002 23:41:48 -0800 (PST) |
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: address@hidden
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev LYDownload.c [PATCH],
Doug Kaufman <=