[links-list] Bugs in file browsing mode

Alexander Mai st002279 at hrzpub.tu-darmstadt.de
Sat Feb 17 12:19:53 PST 2001


Hello,

the current version of links has a few bugs in local file browsing mode.
One is that it does crunch blanks out of file names which makes it
impossible to access those directories.
Below is patch supposedly from Kevin Everets <flynn at engsoc.queensu.ca>
which fixes one of the bugs - namely when the user inputs a local file name.
It does not fix the bug while browsing (just enter an empty URL to
get this mode).
Also links offers a ".." on an OS/2 root directory. Instead it might
list the other drives, e.g.
Unfortunately I haven't been able to locate the related code.
I ran across a few functions which should be the culprits, but
I've never managed to actually find the bugs. Anyone with
more success on this?


--- orig/links-0.92/html.c	Tue Jun 27 05:21:57 2000
+++ links-0.92/html.c	Sun Jul 23 10:16:06 2000
@@ -128,7 +128,8 @@
 	if (!(pp = get_attr_val(e, name))) return NULL;
 	p = pp; q = pp;
 	while (1) {
-		if ((*p = *q) != ' ') p++;
+		/* This function otherwise breaks directory & file names with spaces */
+		/* if ((*p = *q) != ' ') p++; */
 		if (!*q) break;
 		q++;
 	}


---
Alexander Mai
st002279 at hrzpub.tu-darmstadt.de



_______________________________________________
links-list mailing list
links-list at appwatch.com
http://mailman.appwatch.com/listinfo/links-list



More information about the links-list mailing list