🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16118

Re: Control message from Rice (was Re: what the hell is this?)

#16118
From: Joerg Lehners
Date: Thu, 20 Mar 1997 00:00
43 lines
2073 bytes
In <5gpq5n$rmi$1@joe.rice.edu> cathyf@brazos.is.rice.edu (Catherine Anne Foulston) writes:
> [...]

Perhaps more sites should patch their Src/inn/nnrpd/post.c with something like:

    if (EQ(ctrl, "cancel")) {
        for (q = p + 1; ISWHITE(*q); q++)
            continue;
        if (*q == '\0')
            return "Message-ID missing in cancel";
    }
    else if (EQ(ctrl, "sendsys") || EQ(ctrl, "senduuname")
          || EQ(ctrl, "version") || EQ(ctrl, "checkgroups")
          || EQ(ctrl, "ihave") || EQ(ctrl, "sendme")
          || EQ(ctrl, "newgroup") || EQ(ctrl, "rmgroup"))
# if 1		/* patch starts */
    {
        /* Do not allow control messages other than cancel, JL */
        (void)sprintf(Error, "control \"%s\" is not allowed", ctrl);
        return Error;
    }
# else
        /* SUPPRESS 530 *//* Empty body for statement */
        ;
# endif		/* patch ends */
    else {
        (void)sprintf(Error, "\"%s\" is not a valid control message",
                ctrl);
        return Error;
    }
    *p = save;
    return NULL;
}


  Joerg Lehners
-- 
Mail: Joerg.Lehners@arbi.Informatik.Uni-Oldenburg.DE
Real: Joerg Lehners, FB 10 Informatik ARBI, Uni Oldenburg, D-26111 Oldenburg
Unwoerter: Kostensenkung - Gewinnmaximierung - billig, billig, billig

Technical Details
Message-ID: <5gsbqq$2vl@news.Informatik.Uni-Oldenburg.DE>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <vjlfg5.s5g.ln@localhost> <5gjabh$8c@news.IAEhv.nl> <5gpbuc$7q9@tribune.meitca.com> <5gpmd7$n9p$1@news.cmc.net> <5gpq5n$rmi$1@joe.rice.edu>

Show Full Headers
Complete Article Headers
Message-ID: <5gsbqq$2vl@news.Informatik.Uni-Oldenburg.DE>
Subject: Re: Control message from Rice (was Re: what the hell is this?)
Date: Thu, 20 Mar 1997 00:00:00 +0000
From: "Joerg Lehners" <Joerg.Lehners@Informatik.Uni-Oldenburg.DE>
References: <vjlfg5.s5g.ln@localhost> <5gjabh$8c@news.IAEhv.nl> <5gpbuc$7q9@tribune.meitca.com> <5gpmd7$n9p$1@news.cmc.net> <5gpq5n$rmi$1@joe.rice.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 227239588
Organization: C. v. Ossietzky Universitaet Oldenburg - Fachbereich Informatik
Newsgroups: news.software.nntp