Moving servers

Florian Schlichting fschlich at CIS.FU-Berlin.DE
Fri Mar 4 09:34:20 UTC 2011


Hello,

On Thu, Mar 03, 2011 at 10:53:56PM +0100, Julien ÉLIE wrote:
> The "Numerical argument out of domain" error reported by innxmit
> would be explained with:
>     <hostname>:::
> 
> It is exactly EDOM and generated by lib/sendpass.c here, during the
> parsing of the file:
> 
>             if (strcmp(style, "authinfo") != 0) {
> 	                errno = EDOM;
> 	                break;

ah, I didn't know that. But it's not a very telling error message, given
that we're not dealing with anything numeric here?! How about E2BIG, 
'Argument list too long'? (EINVAL is already used earlier)

...or just convert passwd.nntp to the new configuration file syntax and
parser, with detailed error messages and line numbers and...

> 
> but with:
>     <hostname>::
> 
> I still do not understand the error.

Well, it could be any line prior to a matching <hostname>, which is not
empty or starts with a hash, but contains a third colon somewhere that
is not followed by "authinfo"

BTW inncheck doesn't catch this kind of error. Small improvement:

--- a/scripts/inncheck.in
+++ b/scripts/inncheck.in
@@ -876,7 +876,7 @@ passwd_nntp
     input: while ( <$IN> ) {
        next input if &spacious($file, ++$line);
 
-       unless ( ($name, $pass) = /[\w\-\.]+:(.*):(.*)(:authinfo)?$/ ) {
+       unless ( ($name, $pass) = /[\w\-\.]+:([^:]*):([^:]*)(:authinfo)?$/ ) {
            eprint "$file:$line: malformed line.\n";
            next input;
        }


Florian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5557 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20110304/5157ae28/attachment.bin>


More information about the inn-workers mailing list