Subject: INN 1.5 inews: won't work for users with passwords

From: [email-masked] (Jonathan I. Kamens)
Date: 12 Dec 1996 20:35:35 GMT

(Posted and mailed as shown in the header.)

INN 1.5's inews won't work for users who have passwords in passwd.nntp,
since nnrpd in INN 1.5 requires authentication for the "list" command,
and inews doesn't send the password before executing that command.

Here's a patch:

--- inews.c	1996/12/12 16:36:59	1.1.1.1
+++ inews.c	1996/12/12 20:27:22
@@ -1331,7 +1331,11 @@
 	}
 
     /* Check the newsgroups. */
-    if ((F = CAlistopen(FromServer, ToServer, (char *)NULL)) != NULL) {
+    if ((F = CAlistopen(FromServer, ToServer, (char *)NULL)) == NULL) {
+	if (NNTPsendpassword((char *)NULL, FromServer, ToServer) >= 0)
+	    F = CAlistopen(FromServer, ToServer, (char *)NULL);
+    }
+    if (F != NULL) {
 	if (!ValidNewsgroups(HDR(_newsgroups), F, article)) {
 	    CAclose();
 	    QuitServer(1);

-- 
Jonathan Kamens  |  OpenVision Technologies, Inc.  |   [email-masked]