Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 ilist in command argument must be a file, not a list of IPs

v0.1.14
closed-fixed
5
2004-07-23
2004-07-12
Thom OConnor
No

The "-i ilist" arg is confusing, as per the help page:

# /usr/bin/dk-filter
dk-filter: usage: dk-filter -p socketfile [options]
<snip>
-i ilist list of internal (signing) hosts
<snip>

The man page and docs make it seem that one can just
use a list of IP addresses, such as:

-i 10.4.4.0/24

However, upon doing this, one gets:

dk-filter: 10.4.4.0/24: fopen(): No such file or directory

In the code, it looks like the ilist is expected to
alway be a file which lists the IPs:

f = fopen(ilist, "r");
if (f == NULL)
{
fprintf(stderr, "%s: %s:
fopen(): %s\n", progname,
ilist, strerror(errno));
return EX_UNAVAILABLE;
}

So, this is probably just a doc bug. It should be made
clear that as currently implemented, ilist is a file
containing an IP list.

Discussion

  • Logged In: YES
    user_id=1048957

    The man page says:

    -i ilist
    Identifies a file of internal hosts whose mail
    should be signed
    rather than verified. Entries in this file
    follow the same form
    as those of the -a option above. If not
    specified, the default
    of "127.0.0.1" is applied.

    However, I agree the usage message is incorrect. It'll be
    corrected in v0.1.15.

     
    • assigned_to: nobody --> sm-msk
     
    • status: open --> closed-fixed