[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] -dump/-source vrs .newsauth: bug or feature?
From: |
aw585 |
Subject: |
Re: [Lynx-dev] -dump/-source vrs .newsauth: bug or feature? |
Date: |
Wed, 13 May 2009 21:29:41 GMT |
Thomas Dickey wrote:
>
> 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));
> ...............
I tried adding the changes, and ran this:
$ lynx.dev -trace -dump nntp://news.lafn.org/comp.lang.forth
parse_arg(arg_name=-dump, mask=1, count=2)
parse_arg lookup(dump)
..skip (mask 1/4)
parse_arg(arg_name=nntp://news.lafn.org/comp.lang.forth, mask=1, count=3)
parse_arg startfile:nntp://news.lafn.org/comp.lang.forth
Connecting to NewsHost ...
Looking up news.lafn.org
Making NNTP connection to news.lafn.org
lynx: Can't access startfile nntp://news.lafn.org/comp.lang.forth
With Lynx.trace output:
--
Lynx Trace Log (2.8.7pre.1)
LYAllocHistory 8 vs 0
..LYAllocHistory 8 vs 20
TCP: Local host name is swapper
parse_arg(arg_name=-trace, mask=2, count=1)
parse_arg lookup(trace)
..skip (mask 2/1)
parse_arg(arg_name=-dump, mask=2, count=2)
parse_arg lookup(dump)
..skip (mask 2/4)
parse_arg(arg_name=nntp://news.lafn.org/comp.lang.forth, mask=2, count=3)
parse_arg startfile:nntp://news.lafn.org/comp.lang.forth
lynx_setup_colors
lynx_map_color(0)
lynx_map_color(1)
lynx_map_color(2)
lynx_map_color(3)
lynx_map_color(4)
lynx_map_color(5)
lynx_map_color(6)
lynx_map_color(7)
LYNX_SIG_FILE set to '/home/dallas/.lynxsig'
HTMLDTD: Copying strict DTD element info of size 6664, 119 * 56
Loading cfg file '/etc/lynx-cur/lynx.cfg'.
opening config file /etc/lynx-cur/lynx.cfg
UCGetLYhndl_byAnyName(iso-8859-1)
LYNX_SIG_FILE set to '/home/dallas/.lynxsig'
lynx_chg_color(color=1, fg=2, bg=0)
lynx_map_color(1)
lynx_chg_color(color=4, fg=1, bg=0)
lynx_map_color(4)
lynx_chg_color(color=5, fg=1, bg=15)
lynx_map_color(5)
lynx_chg_color(color=6, fg=9, bg=0)
lynx_map_color(6)
Loading cfg file '/etc/lynx-cur/local.cfg'.
opening config file /etc/lynx-cur/local.cfg
Loading cfg file '~/.lynx/colors'.
opening config file /home/dallas/.lynx/colors
lynx.cfg file not found as '~/.lynx/colors'
Loading cfg file '~/.lynx/keymap'.
opening config file /home/dallas/.lynx/keymap
lynx.cfg file not found as '~/.lynx/keymap'
Loading cfg file '~/.lynx/viewers'.
opening config file /home/dallas/.lynx/viewers
lynx.cfg file not found as '~/.lynx/viewers'
Loading cfg file '~/.lynx/external'.
opening config file /home/dallas/.lynx/external
lynx.cfg file not found as '~/.lynx/external'
opening config file /etc/lynx-cur/lynx.lss
read_rc opened /home/dallas/.lynxrc
UCGetLYhndl_byAnyName(Western (ISO-8859-1))
LYFindLocaleCharset(0)
Found name "UTF-8" -> 43
HTParse: aName:`http://www.lafn.org/~aw585/crackle/portal.html'
relatedName:`'
want: punc anchor path host access
HTParse: (ABS)
HTParse: result:`http://www.lafn.org/~aw585/crackle/portal.html'
parse_arg(arg_name=-trace, mask=4, count=1)
parse_arg lookup(trace)
..skip (mask 4/1)
parse_arg(arg_name=-dump, mask=4, count=2)
parse_arg lookup(dump)
parse_arg(arg_name=nntp://news.lafn.org/comp.lang.forth, mask=4, count=3)
parse_arg startfile:nntp://news.lafn.org/comp.lang.forth
HTMLSetCharacterHandling: LYRawMode changed OFF -> ON
LYTildeExpand ~/.lynx_cookies
expanded path /home/dallas/.lynx_cookies
LYSystem(expr "`/usr/bin/tty`" : '/dev/(tty|vc/)[0-9][0-9]*' >/dev/null 2>&1 ||
expr
"$STY" : '[0-9][0-9]*.tty[0-9][0-9]*.'`hostname`'$' >/dev/null 2>&1)
HTFormat: Looking up presentation for text/plain to www/present
FindPresentation: found exact match: text/plain -> www/present
HTFormat: Looking up presentation for text/html to www/present
FindPresentation: found exact match: text/html -> www/present
HTFilterPresentations (AcceptMedia 0x1)
HTParse: aName:`nntp://news.lafn.org/comp.lang.forth'
relatedName:`'
want: punc anchor path host access
HTParse: (ABS)
HTParse: result:`nntp://news.lafn.org/comp.lang.forth'
LYMain: User in REMOTE domain
HTAddGotoURL nntp://news.lafn.org/comp.lang.forth
dumping 1:1 nntp://news.lafn.org/comp.lang.forth
Entering mainloop, startfile=nntp://news.lafn.org/comp.lang.forth
getfile: getting nntp://news.lafn.org/comp.lang.forth
HTParse: aName:`nntp://news.lafn.org/comp.lang.forth'
relatedName:`'
want: host
HTParse: result:`news.lafn.org'
Entered HTAnchor_findAddress
New anchor 0x85773e0 has hash 141 and address
`nntp://news.lafn.org/comp.lang.forth'
HTAccess: loading document nntp://news.lafn.org/comp.lang.forth
get_physical nntp://news.lafn.org/comp.lang.forth
HTParse: aName:`nntp://news.lafn.org/comp.lang.forth'
relatedName:`file:'
want: access
HTParse: result:`nntp'
HTParse: aName:`nntp://news.lafn.org/comp.lang.forth'
relatedName:`'
want: host
HTParse: result:`news.lafn.org'
HTParse: aName:`nntp://news.lafn.org/comp.lang.forth'
relatedName:`'
want: access
HTParse: result:`nntp'
HTParse: aName:`nntp://news.lafn.org/comp.lang.forth'
relatedName:`'
want: access
HTParse: result:`nntp'
HTNews: Looking for nntp://news.lafn.org/comp.lang.forth
HTNews: NNTPSERVER defined as `textnews.news.cambrium.nl'
HTParse: aName:`nntp://news.lafn.org/comp.lang.forth'
relatedName:`'
want: host
HTParse: result:`news.lafn.org'
start HTML_new
News: doing HTDoConnect on 'nntp://news.lafn.org/'
Connecting to NewsHost ...
HTParse: aName:`nntp://news.lafn.org/'
relatedName:`'
want: host
HTParse: result:`news.lafn.org'
Looking up news.lafn.org
Making NNTP connection to news.lafn.org
TCP: Error 115 in `SOCKET_ERRNO' after call to this socket's first connect()
failed.
Operation now in progress
TCP: Error 115 in `SOCKET_ERRNO' after call to this socket's first select()
failed.
Operation now in progress
HTNews: Connected to news host news.lafn.org.
NNTP Response: 200 news.lafn.org InterNetNews NNRP server INN 2.4.5 ready
(posting ok).
NNTP command to be sent: mode reader
NNTP Response: 200 news.lafn.org InterNetNews NNRP server INN 2.4.5 ready
(posting ok).
NNTP command to be sent: GROUP comp.lang.forth
NNTP Response: 480 Authentication required for command
HTAccess: status=-29999
HTAccess: `nntp://news.lafn.org/comp.lang.forth' has been accessed, No data
loaded.
--
Regards, Dallas E. Legan II / address@hidden / address@hidden
http://isthereanotherquestion.blogspot.com
************************************************************************
"Tekeli-li! Tekeli-li!"
- "At the Mountains of Madness", H.P.
Lovecraft
---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/