after xpath

Kenichi Okada okada at opaopa.org
Sat Apr 21 20:59:11 UTC 2001



Hi all,

If I send a command "xpath", innd will refuse every command after it.

| % telnet 127.0.0.1 119
| Trying 127.0.0.1...
| Connected to 127.0.0.1.
| Escape character is '^]'.
| 200 sakana InterNetNews server INN 2.4.0 (20010301 prerelease) ready
| xpath
| 500 Syntax error or bad command
| help
| 500 Syntax error or bad command
| quit
| 500 Syntax error or bad command

It happens on a command "list" with "nolist: true", too.

p.s. I think it is better to call "NC_unimp".

Regards,

-- 
Kenichi Okada
mailto:okada at opaopa.org

--- inn-CURRENT-20010301-ORIG/innd/nc.c Thu Mar  1 19:00:45 2001
+++ inn-CURRENT-20010301/innd/nc.c      Sun Apr 22 05:51:29 2001
@@ -573,13 +573,14 @@
     char               *trash;
     char               *end;
 
+    for (p = cp->In.Data + cp->Start + STRLEN("list"); ISWHITE(*p); p++)
+       continue;
+    cp->Start = cp->Next;
     if (cp->Nolist) {
        NCwritereply(cp, NCbadcommand);
        return;
     }
-    for (p = cp->In.Data + cp->Start + STRLEN("list"); ISWHITE(*p); p++)
-       continue;
-    cp->Start = cp->Next;
+
     if (caseEQ(p, "newsgroups")) {
        trash = p = ReadInFile(cpcatpath(innconf->pathdb, _PATH_NEWSGROUPS),
                                NULL);
@@ -681,6 +682,7 @@
 NCxpath(CHANNEL *cp)
 {
     /* not available for storageapi */
+    cp->Start = cp->Next ;
     NCwritereply(cp, NNTP_BAD_COMMAND);
     return;
 }


More information about the inn-patches mailing list