=- Thomas Dickey wrote on Thu 17.May'07 at 19:17:23 -0400 -=
> * modify IsOurFile() to allow its parameter to be a symbolic link
> to one of the user's files (report by Rado Smiljanic) -TD
Oh, I was too early with my joy: it fails when the symlink is not
absolute!
I tried to patch (attached) it so that it works for me. ;)
Improvements welcome.
The patch also includes the solution that I had in mind for
HTFwriter.c (before I didn't know the details, now I've overcome my
lazyness to figure out).
--
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.
diff -ur lorg/src/LYUtils.c lgo/src/LYUtils.c
--- lorg/src/LYUtils.c Fri May 18 00:53:22 2007
+++ lgo/src/LYUtils.c Mon May 28 12:38:56 2007
@@ -5888,6 +5888,17 @@
buffer[used] = '\0';
}
if (buffer != 0) {
+ if (buffer[0]!='/') {
+ char *cutoff,*clone;
+ StrAllocCopy(clone,name);
+ if (cutoff = strrchr(clone,'/')) {
+ *(++cutoff) = 0;
+ clone = realloc( clone , size *= 2);
+ strcat(clone,buffer);
+ FREE(buffer);
+ buffer = clone;
+ }
+ }
CTRACE2(TRACE_CFG, (tfp, "IsOurSymlink(%s -> %s)\n", name, buffer));
result = IsOurFile(buffer);
FREE(buffer);
diff -ur lorg/src/HTFWriter.c lgo/src/HTFWriter.c
--- lorg/src/HTFWriter.c Fri May 18 00:53:22 2007
+++ lgo/src/HTFWriter.c Mon May 28 12:58:15 2007
@@ -314,8 +314,10 @@
if (!dump_output_immediately) {
/*
* Tell user what's happening. - FM
+ * HTInfoMsg2(WWW_USING_MESSAGE, addr);
+ * but only in the history, not on screen -RS
*/
- HTInfoMsg2(WWW_USING_MESSAGE, addr);
+ LYstore_message2(WWW_USING_MESSAGE, addr);
}
if (skip_loadfile) {
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev