[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] -dump/-source vrs .newsauth: bug or feature?
From: |
Thomas Dickey |
Subject: |
Re: [Lynx-dev] -dump/-source vrs .newsauth: bug or feature? |
Date: |
Wed, 13 May 2009 20:56:07 -0400 (EDT) |
On Wed, 13 May 2009, address@hidden wrote:
...........
good.
I have a handful of other fixes to investigate for pre.3 (have been
busy on other projects...), and will have this in pre.3
.............
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Anything I can do (test?) to help on the .newsauth problem?
It should be reading the file in WWW/Library/Implementation/HTNews.c
around line 175:
LYAddPathToHome(fname, sizeof(fname), NEWS_AUTH_FILE);
if ((fp = fopen(fname, "r")) != 0) {
I had in mind to add
CTRACE((tfp, "Reading authentication file %s\n", fname));
before the fopen, just so it's clear what's read. Something like
diff -u -r1.59 HTNews.c
--- HTNews.c 2009/05/10 22:53:23 1.59
+++ HTNews.c 2009/05/14 00:53:47
@@ -173,6 +173,7 @@
LYAddPathToHome(fname, sizeof(fname), NEWS_AUTH_FILE);
if ((fp = fopen(fname, "r")) != 0) {
+ CTRACE((tfp, "loading NNTP authinfo \"%s\"\n", fname));
while (fgets(buffer, sizeof(buffer), fp) != 0) {
char the_host[LINE_LENGTH + 1];
char the_pass[LINE_LENGTH + 1];
@@ -190,10 +191,16 @@
StrAllocCopy(auth->pass, the_pass);
StrAllocCopy(auth->user, the_user);
+ CTRACE((tfp,
+ "adding authinfo host=\"%s\" user=\"%s\" pass=\"%s\"\n",
+ the_host, the_pass, the_user));
+
HTList_appendObject(NNTP_AuthInfo, auth);
}
}
fclose(fp);
+ } else {
+ CTRACE((tfp, "did not find NNTP authinfo \"%s\"\n", fname));
}
}
It could be reading the file properly, but not using - there are several
uses of NNTP_AuthInfo scattered around in the file...
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net