Menu

#18 Failure to add number to blacklist

v1.0_(example)
closed
None
1
2016-02-14
2016-01-16
Reece
No

Attempting to add spam call to blacklist by number through ncid client, ncidd.log reports the following and fails to add the number.

REQ: INFO 2153099020&&PENNSYLVANIA&&POTS
403 Start of data defining permitted requests
INFO: alias NOALIAS NOALIAS
Checked Whitelist for match flag=1 ret=0 nmbrmatch=0
Checked Blacklist for match flag=1 ret=0 nmbrmatch=0
INFO: neither
411 End of response
REQ: black add "2153099020" ""
/usr/bin/ncidutil --ignore1--regex "/etc/ncid/ncidd.blacklist" Blacklist add "2153099020" "" 2>&1
402 Start of data showing status of handled request
RESP: Unknown option: ignore1--regex
RESP: Usage:
RESP: ncidutil [--help|-h] [--man|-m] [--version|-V]
RESP:
RESP: ncidutil [--multi "<blacklist and="" or="" whitelist="" file="" names="">"]</blacklist>
RESP: [--regex|-R] [--ignore1|-i] <arguments>
RESP:
411 End of response</arguments>

$ ncidutil --version
ncidutil (NCID) 1.3
$ ncidd --version
ncidd (NCID) 1.3
API: 1.2 Feature Set 1 2 3 4

1 Attachments

Discussion

  • Todd Andrews

    Todd Andrews - 2016-01-16

    Reece, thank you for reporting this.

    John, the problem appears to be at line 2880 in ncidd.c. It's missing a space before the double-dash:

    if (regex) strcat(opt, "--regex");
    
     
  • John L. Chmielewski

    Thanks Tod, you were correct. The problem is a missing space in ncidd.c line 2880. It should be:

    if (regex) strcat(opt, " --regex");
    

    The fix will be in NCID v1.4.

    Reece, if you make the above change, and recompile ncidd, you can replace the defective one. Not sure which OS you are using. If ncidd is in /usr/sbin:

    cd ncid/server
    make local prefix=/usr prefix2=
    sudo cp ncidd /usr/sbin/.
    

    If ncidd is in /usr/local/sbin, the make in ncid/server is simpler:

    cd ncid/server
    make local
    sudo cp ncidd /usr/local/sbin/.
    
     
  • John L. Chmielewski

    • status: open --> closed
    • assigned_to: John L. Chmielewski
     
  • John L. Chmielewski

    Fix given for source and will be in NCID release 1.4

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB