--- lynx2-8-2/WWW/Library/Implementation/HTNews.c.dist Wed Jul 7 01:58:25 1999 +++ lynx2-8-2/WWW/Library/Implementation/HTNews.c Thu Jul 8 23:11:06 1999 @@ -343,12 +343,6 @@ int status, tries; /* - ** Make sure we have an interactive user and a host. - FM - */ - if (dump_output_immediately || !(host && *host)) - return NNTPAUTH_ERROR; - - /* ** Check for an existing authorization entry. - FM */ if (NNTP_AuthInfo != NULL) { @@ -368,6 +362,14 @@ } /* + ** Use -auth user name and password in -dump mode, if possible - AL + */ + if (dump_output_immediately && UserName == NULL && PassWord == NULL) { + UserName = authentication_info[0]; + PassWord = authentication_info[1]; + } + + /* ** Handle the username. - FM */ buffer[511] = '\0'; @@ -375,6 +377,12 @@ while (tries) { if (UserName == NULL) { + /* + ** Make sure we have an interactive user and a host. - FM + */ + if (dump_output_immediately || !(host && *host)) + return NNTPAUTH_ERROR; + if ((msg = (char *)calloc(1, (strlen(host) + 30))) == NULL) { outofmem(__FILE__, "HTHandleAuthInfo"); }